Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Cocoa to AppleScript conversion methods

Method

ASifyInListFrom:forTypes:

Summary

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)

Signature

+ (id)ASifyInListFrom:(id)anItem forTypes:(NSString *)typesString

Parameters

anItem =

typesString =

Result

An array containing the AS item; see summary

Availability

Version 1.0.0

Notes

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

Sample

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"


Click here to open script in a script editor