• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TID & text items issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >TID & text items issue (From: "John C. Welch" <email@hidden>)
 >Re: TID & text items issue (From: Christopher Stone <email@hidden>)
 >Re: TID & text items issue (From: Shane Stanley <email@hidden>)
 >Re: TID & text items issue (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: TID & text items issue
  • Next by Date: Re: TID & text items issue
  • Previous by thread: Re: TID & text items issue
  • Next by thread: Re: TID & text items issue
  • Index(es):
    • Date
    • Thread