Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

URL and File related methods

Method

UTIForExtension:

Summary

Pass an extension and get back the UTI.

Signature

+ (NSString *)UTIForExtension:(NSString *)extension

Parameters

extension = a file extension (no dot)

Result

UTI as a string

Availability

Version 1.3.0

Notes

 

Sample

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"


Click here to open script in a script editor