Previous | Index | Next |
String manipulation methods
emptyLineFreeFrom:
Deletes any paragraphs that are empty or contain only spaces and/or tabs
+ (id)emptyLineFreeFrom:(id)listOrString
listOrString = a string or list of strings
If passed a string, returns the new string; if passed a list, an array of new strings.
Version 1.0.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set aString to "One
Two
Three
"
set theResult to current application's SMSForder's emptyLineFreeFrom:aString
ASify from theResult
--> "One
-- Two
-- Three"
theResult as text
--> "One
-- Two
-- Three"