• 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: Mail Script not recognizing Account?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Mail Script not recognizing Account? (From: Jeremy Matthews <email@hidden>)

  • Prev by Date: Mail Script not recognizing Account?
  • Next by Date: Re: Mail Script not recognizing Account?
  • Previous by thread: Mail Script not recognizing Account?
  • Next by thread: Re: Mail Script not recognizing Account?
  • Index(es):
    • Date
    • Thread