Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speaking of strings, text, and stuff



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.