Re: Script to Copy/Paste Entourage Message Bodies
Re: Script to Copy/Paste Entourage Message Bodies
- Subject: Re: Script to Copy/Paste Entourage Message Bodies
- From: Paul Skinner <email@hidden>
- Date: Thu, 27 Mar 2003 07:38:05 -0500
On Thursday, March 27, 2003, at 03:27 AM, John Delacour wrote:
At 11:39 pm -0500 26/3/03, Paul Skinner wrote:
tell application "TextEdit"
tell document 1
properties
end tell
end tell
-->{class:document, path:"/Users/paul/Desktop/test file.rtf",
modified:true, Name:"test file.rtf", text:"blah blah blah"}
Do you see the irony in that script?
The point is that 'text' is one of those ambiguous things and As will
not guess. When you ask for properties, the context allows no
ambiguity.
tell application "TextEdit" to tell front document
set its text to "ab"
{text 1 through 2 of (26 as text), its text, text, Unicode text,
count text, character 1}
end tell
I realize that it isn't trying. I don't see it as guessing though. It
has a context, it just doesn't want to get up and go get it.
Interestingly...
tell application "TextEdit"
tell document 1
text -->text
+property ctxt; -->"Real actual text!"
end tell
end tell
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.