Re: Speaking of strings, text, and stuff
Re: Speaking of strings, text, and stuff
- Subject: Re: Speaking of strings, text, and stuff
- From: has <email@hidden>
- Date: Wed, 29 Jun 2005 20:40:37 +0100
Michelle Steiner wrote:
>tell application "Safari"
> summarize (text of document 1)
>end tell
>--> "Safari got an error: Can't make every text of document 1 into
>type string."
That's because you're passing the _reference_ 'text of document 1' to the summarize command. As Shane says, you have to ask Safari to get the value being referenced and pass that.
Another AppleScript language abstraction that ends up leaking on folk when they don't expect it. :)
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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