Re: TID & text items issue
Re: TID & text items issue
- Subject: Re: TID & text items issue
- From: Shane Stanley <email@hidden>
- Date: Tue, 23 Oct 2012 22:10:53 +1100
On 23/10/2012, at 6:45 PM, Christopher Stone <email@hidden> wrote:
More Satimage.osax:
And one more "vanilla" method (in that it will run in a Cocoa-AppleScript applet without any third-party extras):
set theString to " 8 0 0xffffff7f81592000 0x41000 0x41000 com.apple.kec.corecrypto (1.0) "
tell current application's NSString to set theString to stringWithString_(theString) -- make an NSString set theList to theString's componentsSeparatedByString_(space) -- split string at spaces set thePred to current application's NSPredicate's predicateWithFormat_("self != ''") -- make a predicate return theList's filteredArrayUsingPredicate_(thePred) -- filter the list with predicate
0000.000 -- Start -- 0000.001 Result --> {8, 0, 0xffffff7f81592000, 0x41000, 0x41000, com.apple.kec.corecrypto, (1.0)} 0000.002 -- End -- (~0.002s)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden