• 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: what the heck - text manipulation script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what the heck - text manipulation script


  • Subject: Re: what the heck - text manipulation script
  • From: "John C. Welch" <email@hidden>
  • Date: Tue, 18 Jul 2006 11:29:59 -0500
  • Thread-topic: what the heck - text manipulation script

Title: Re: what the heck - text manipulation script
On 7/18/06 10:56, "Natalie Lambert" <email@hidden> wrote:

>> Try using "text item" instead of "word"
> tried that - it works in 10.2.8 not in 10.4.4 - I need
> it to work in 10.4.4
>
> result = error
> "Can't get text item 2 of "OCT 05   @St. Louis".
>
> Furthermore, if you try to set as text item 1 you get
> "OCT 05   @St. Louis"
> Then if you try all the delimiting with spaces and
> tabs you never end up "@St." you get "St".
>
> So, I'm back to why can't I just get "@St."

This gives me “@St.” in 10.4.7:

set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "

set x to "OCT 05    @St. Louis"
set v to the sixth text item of x
return v
set AppleScript's text item delimiters to oldDelims

I don’t have a 10.4.4 box to test on, only 10.4.7

--
"Any ship can be a  minesweeper... once."
Anon.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: what the heck - text manipulation script (From: Natalie Lambert <email@hidden>)

  • Prev by Date: Re: what the heck - text manipulation script
  • Next by Date: Re: what the heck - text manipulation script
  • Previous by thread: Re: what the heck - text manipulation script
  • Next by thread: Re: what the heck - text manipulation script
  • Index(es):
    • Date
    • Thread