• 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: Nigel Garvey <email@hidden>
  • Date: Tue, 23 Oct 2012 18:11:43 +0100

Christopher Stone wrote on Tue, 23 Oct 2012 02:45:40 -0500:

>More Satimage.osax:
>
>set _src to "    8    0 0xffffff7f81592000 0x41000
>0x41000	com.apple.kec.corecrypto (1.0) "
>
>set _list to change "(\\A +| +\\Z)" into "" in _src with regexp
>set _list to splittext _list using " +" with regexp
>
>OR
>
>set _list to splittext _src using " +" with regexp
>set theResult to exclude items {""} from _list

OR

  set _list to paragraphs 2 thru -2 of (change "^ *| +| *$" into "\\n" in _src with regexp)

This works with or without leading or trailing spaces. The equivalent
splittext line crashes AppleScript Editor when there are no leading or
trailing spaces.


NG


 _______________________________________________
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

  • Follow-Ups:
    • Re: TID & text items issue
      • From: Emmanuel LEVY <email@hidden>
  • Prev by Date: Re: Problem saving a new file
  • 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