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

Speaking of strings, text, and stuff


  • Subject: Speaking of strings, text, and stuff
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 28 Jun 2005 22:03:14 -0700

Tiger 10.4.1:

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

-- Michelle


--
"Should any political party attempt to abolish social security, unemployment insurance, and eliminate labor laws and farm programs, you would not hear of that party again in our political history. There is a tiny splinter group, of course, that believes that you can do these things. Among them are a few Texas oil millionaires, and an occasional politician or businessman from other areas. Their number is negligible and they are stupid."
President Dwight D. Eisenhower, 1952


_______________________________________________
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: Speaking of strings, text, and stuff
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Replace all "as string" with "as Unicode text"?
  • Next by Date: Re: Speaking of strings, text, and stuff
  • Previous by thread: Re: Replace all "as string" with "as Unicode text"?
  • Next by thread: Re: Speaking of strings, text, and stuff
  • Index(es):
    • Date
    • Thread