Previous | Index | Next |
URL and File related methods
UTIForExtension:
Pass an extension and get back the UTI.
+ (NSString *)UTIForExtension:(NSString *)extension
extension = a file extension (no dot)
UTI as a string
Version 1.3.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set theResult to current application's SMSForder's UTIForExtension:"jpg"
ASify from theResult
--> "public.jpeg"
theResult as text
--> "public.jpeg"