• 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: Script to Copy/Paste Entourage Message Bodies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Script to Copy/Paste Entourage Message Bodies (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Newbie question about iCal and Applescript
  • Next by Date: [Newbie] MS Excel GUI and Applescript
  • Previous by thread: Re: Script to Copy/Paste Entourage Message Bodies
  • Next by thread: Key combos
  • Index(es):
    • Date
    • Thread