• 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: How do I delete the 1st three characters from a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I delete the 1st three characters from a variable


  • Subject: Re: How do I delete the 1st three characters from a variable
  • From: kai <email@hidden>
  • Date: Wed, 4 Jan 2006 04:07:51 +0000


On 4 Jan 2006, at 03:37, Michelle Steiner wrote:

here is an interesting variation that doesn't work:

text from the ninth word to the seventh paragraph

it evaluates the seventh paragraph before trying to extract the text. Here is the log entry:

tell current application
get text from word 9 to "www.tempetoyota.com "
"Can't make text from word 9 to \"www.tempetoyota.com \" into type reference."

I'm assuming that's from:

text from the ninth word to the seventh paragraph of foo

(Although I have to confess, I'm having some difficulty reading it, too.) ;-)

This does work:

tell foo to get text from the ninth word to the seventh paragraph

So does this:

text from the ninth word to paragraph 7

Yeah. It's possible to help AppleScript along with some parentheses:

----------

(text from the ninth word to the seventh paragraph) of foo

----------

And, since you've already stolen what might have been my "tell" ripost, I'll just have to fall back on the good ol' Saxon genitive:

----------

foo's text from the ninth word to the seventh paragraph

----------

- which also works fine...

:-)

---
kai


_______________________________________________ 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
  • Follow-Ups:
    • Re: How do I delete the 1st three characters from a variable
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: How do I delete the 1st three characters from a variable (From: Shane Stanley <email@hidden>)
 >Re: How do I delete the 1st three characters from a variable (From: kai <email@hidden>)
 >Re: How do I delete the 1st three characters from a variable (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How do I delete the 1st three characters from a variable
  • Next by Date: Re: How do I delete the 1st three characters from a variable
  • Previous by thread: Re: How do I delete the 1st three characters from a variable
  • Next by thread: Re: How do I delete the 1st three characters from a variable
  • Index(es):
    • Date
    • Thread