Re: How do I delete the 1st three characters from a variable
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