• 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: Shane Stanley <email@hidden>
  • Date: Wed, 29 Jun 2005 15:35:14 +1000
  • Thread-topic: Speaking of strings, text, and stuff

On 29/6/05 3:03 PM, "Michelle Steiner" <email@hidden> 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."
>
> But this works:
>
> tell application "Safari"
>       summarize ((text of document 1) as string)
> end tell

I think the "as string" is just forcing evaluation; this also works:

tell application "Safari"
    summarize (get text of document 1)
end tell

--
Shane Stanley <email@hidden>



 _______________________________________________
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: 
 >Speaking of strings, text, and stuff (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Speaking of strings, text, and stuff
  • Next by Date: Tiger Script Editor key forms?
  • Previous by thread: Speaking of strings, text, and stuff
  • Next by thread: Re: Speaking of strings, text, and stuff
  • Index(es):
    • Date
    • Thread