• 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: Speaking of strings, text, and stuff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: path to as string
  • Next by Date: Re: "read from" and non-lo-ascii characters
  • Previous by thread: Re: Speaking of strings, text, and stuff
  • Next by thread: Tiger Script Editor key forms?
  • Index(es):
    • Date
    • Thread