Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Specialist conversion methods

Method

URLsFrom:

Summary

Pass a list or array of aliases, files, HFS paths or POSIX paths, and an array of NSURLs will be returned.

Signature

+ (NSArray *)URLsFrom:(NSArray *)aliasesFilesOrPaths

Parameters

aliasesFilesOrPaths = list or array of aliases, files, HFS paths or POSIX paths

Result

An array of NSURLs

Availability

Version 1.3.0

Notes

If possible, use BridgePlus script library’s Cocoaify command instead.

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set theResult to current application's SMSForder's URLsFrom:{path to desktop, "/Applications", "~/Documents"}

--> (NSArray) {(NSURL) file:///Users/shane/Desktop/, (NSURL) file:///Applications/, (NSURL) file:///Users/shane/Documents/}


Click here to open script in a script editor