Re: Create New Message script for Apple Mail
Re: Create New Message script for Apple Mail
- Subject: Re: Create New Message script for Apple Mail
- From: Lorin Rivers <email@hidden>
- Date: Thu, 2 Oct 2003 21:30:16 -0500
Dave,
A appreciate your help.
I have code that works too (but not in my user account, in my test
account it works fine). What I'm trying to understand why it works in
one account and not another. I presume the code works most of the time,
because it's an example script supplied by Apple.
tell application "Mail"
-- Properties can be specified in a record when creating the message
or
-- afterwards by setting individual property values.
set newMessage to make new outgoing message with properties
{subject:theSubject,,
content:theBody & return & return}
tell newMessage
-- Default is false. Determines whether the compose window will
-- show on the screen or whether it will happen in the background.
set visible to true
set sender to theSender
make new to recipient at end of to recipients with properties
{name:theName,,
address:theAddress}
end tell
-- Bring the new compose window to the foreground, in all its glory
activate
end tell
If anyone cares to run the example script as supplied by Apple it will
be in:
/Library/Scripts/Mail Scripts
I'm curious mostly if it doesn't work for you out there in AppleScript
land. I have a number of email accounts, a mixture of IMAP and pop.
Running <<gulp>> 10.2.8, Mail.app 1.2.5.
--
Common sense is what tells us the Earth is flat and the sun moves
around it - Anonymous
_______________________________________________
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.