On Oct 22, 2012, at 17:38, John C. Welch < email@hidden> wrote: Okay, so I swear this used to work better, or maybe I'm crazy.
I think you're quite sane but perhaps dreaming? :)
Shane pretty well covers it but just for exercise:
Not too pretty but very fast:
------------------------------------------------------------------------------------------------ on textToList(_text) set {oldTIDS, AppleScript's text item delimiters} to {AppleScript's text item delimiters, {" ", " "}} set _list to text items of _text repeat while item 1 of _list is "" set _list to rest of _list end repeat set _list to reverse of _list repeat while item 1 of _list is "" set _list to rest of _list end repeat set _list to reverse of _list set AppleScript's text item delimiters to oldTIDS return _list end textToList
set _text to " 8 0 0xffffff7f81592000 0x41000 0x41000 com.apple.kec.corecrypto (1.0) "
textToList(_text) ------------------------------------------------------------------------------------------------
How I would do it on my system with the Satimage.osax:
------------------------------------------------------------------------------------------------ set _src to " 8 0 0xffffff7f81592000 0x41000 0x41000 com.apple.kec.corecrypto (1.0) "
set foundText to find text "[^ ]+" in _src regexp true with all occurrences and string result ------------------------------------------------------------------------------------------------
-- Best Regards, Chris
|