Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring extraction methods

Method

charactersOfString:

Summary

"character" means "composed character sequence", as in AppleScript. Useful if you have an NSString, so you don’t have to convert to a string first.

Signature

+ (NSArray *)charactersOfString:(NSString *)aString

Parameters

aString = Typically an NSString

Result

An array of strings

Availability

Version 1.0.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set aString to "This is a string"

set theResult to current application's SMSForder's charactersOfString:aString

ASify from theResult

--> {"T", "h", "i", "s", " ", "i", "s", " ", "a", " ", "s", "t", "r", "i", "n", "g"}

theResult as list

--> {"T", "h", "i", "s", " ", "i", "s", " ", "a", " ", "s", "t", "r", "i", "n", "g"}


Click here to open script in a script editor