Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring counting methods

Method

characterCountOfString:

Summary

"character" means "composed character sequence", as in AppleScript. Useful when you have an NSString.

Signature

+ (NSUInteger)characterCountOfString:(NSString *)aString

Parameters

aString = a string

Result

An integer

Availability

Version 1.0.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set aString to "A 😀 string."

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

--> 11


Click here to open script in a script editor