• 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: Luther Fuller <email@hidden>
  • Date: Tue, 23 Oct 2012 13:25:10 -0500

On Oct 23, 2012, at 1:00 PM, Christopher Stone wrote:

He doesn't want a concatenated string.  He wants to break up the non-space strings into a list.

I should have read more carefully. So, you do need a repeat loop, like this ...

set x to "    8    0 0xffffff7f81592000 0x41000    0x41000 com.apple.kec.corecrypto (1.0) "

set AppleScript's text item delimiters to {space}
set itemList to {}
repeat with i from 1 to (count text items of x)
set textItem to (text item i of x)
if textItem ≠ "" then set itemList to (itemList & textItem)
end repeat

log itemList --> {"8", "0", "0xffffff7f81592000", "0x41000", "0x41000", "com.apple.kec.corecrypto", "(1.0)"}



 _______________________________________________
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: Luther Fuller <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