Re: Mail Script not recognizing Account?
Re: Mail Script not recognizing Account?
- Subject: Re: Mail Script not recognizing Account?
- From: deivy petrescu <email@hidden>
- Date: Sat, 15 Sep 2007 08:44:58 -0400
On Sep 15, 2007, at 8:31, Jeremy Matthews wrote:
OK, this script returns info correctly:
tell application "Mail"
properties of account "home"
end tell
But this script creates everything properly except setting the
account of the message...
tell application "Mail"
set theMessage to make new outgoing message with properties
{account:"home", visible:true, subject:"Sample Subject",
content:"hello" & return & return}
end tell
Am I missing something?
Why doesn't the message have the correct account assigned?
This same script worked just a few weeks ago...no other changes to
the system...
Thanks,
j
Jeremy, you are missing the dictionary.
Here is Mail's dictionary for outgoing message:
outgoing message n [inh. item] : A new email message
elements:
contains bcc recipients, cc recipients, recipients, to recipients;
contained by application.
properties:
content (string) : The contents of the message
sender (string) : The sender of the message
subject (string) : The subject of the message
content (string) : The contents of the message
visible (boolean) : Controls whether the message window is shown on
the screen. The default is false
message signature (signature) : The signature of the message
id (integer, r/o) : The unique identifier of the message
There is no "account" among its properties.
Deivy
_______________________________________________
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