Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring extraction methods

Method

linesOfString:

Summary

Lines is like paragraphs but also accounts for Unicode next line character

Signature

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

Parameters

aString = A string

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." & linefeed & "It is longer." & character id 133 & "It has three lines."

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

ASify from theResult

--> {"This is a string.", "It is longer.", "It has three lines."}

theResult as list

--> {"This is a string.", "It is longer.", "It has three lines."}


Click here to open script in a script editor