Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring extraction methods

Method

localizedSentencesOfString:

Summary

Splits a string into sentences. Results may vary, depending on locale.

Signature

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

Parameters

aString = A string

Result

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. It has two sentences."

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

ASify from theResult

--> {"This is a string. ", "It has two sentences."}

theResult as list

--> {"This is a string. ", "It has two sentences."}


Click here to open script in a script editor