Re: Get sender in Apple Mail
Re: Get sender in Apple Mail
- Subject: Re: Get sender in Apple Mail
- From: Ed Stockly <email@hidden>
- Date: Fri, 29 Aug 2008 18:01:24 -0700
I don't think doing this with GUI scripting is the way to go.
Sorry, I don't understand. I'm using AppleScript.
Well, yes, sort of, AppleScript is designed for interapplication
scripting, and, appleScriptable applications provide appleScripters
direct access to the application's windows, documents and data.
A typical applescript command would look something like this:
tell application "TextEdit"
make new document at beginning
tell document 1
set paragraph 1 to "hello world"
end tell
end tell
In the GUI you could do the same thing by opening the application
selecting "New" from the file menu, clicking the first line of the
file and typing the text. You can use GUI scripting to do the same
thing, but, particularly as tasks get larger and more complex, it's
far more efficient to do many tasks using appleScript.
GUI Scripting, where you're manipulating menus and buttons, and
copying and pasting, was added to appleScript to allow for scripting
applications that don't have an appleScript dictionary or whose
appleScript implementation is incomplete.
You're much better off getting started in AppleScript using direct
application scripting and saving GUI scripting for special occasions.
HTH,
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden