Previous | Index | Next |
Cocoa to AppleScript conversion methods
ASifyInListFrom:forTypes:
As above, but returns the result in a single-item list.See ASIfyInList.
Typical use: set theData to item 1 of ((current application's SMSForder's ASifyFrom:anNSData forTypes:"data") as list)
+ (id)ASifyInListFrom:(id)anItem forTypes:(NSString *)typesString
anItem =
typesString =
An array containing the AS item; see summary
Version 1.0.0
If possible, use BridgePlus script library’s ASify from command instead.
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set anItem to current application's NSDate's |date|()
set theResult to current application's SMSForder's ASifyInListFrom:anItem forTypes:"dates, files"
item 1 of (theResult as list)
--> date "Monday, 23 November 2015 at 12:17:05 PM"