• 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: Adding a message to a mailbox in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a message to a mailbox in Mail


  • Subject: Re: Adding a message to a mailbox in Mail
  • From: Thierry Faucounau <email@hidden>
  • Date: Tue, 1 Oct 2002 03:39:41 +0200

Thanks,

That was the syntax as interpreted by scriptEditor to my original line which was:

make new message in mailbox "test" with properties {....}

Since it had changed it to the mailbox (mailbox "test") format in the execution log I did as well assuming that in the form it would lead to a mailbox object. ie. that the seemingly redundant statement created a mailbox object from a descriptor of sorts.

Unfortunately, I still do not seem to be able to find a way to create messages in a mailbox which is what I need to finish my application. I'm thinking I may need to use and ADC incident to get a final verdict on whether this is possible with the current state of AS in Mail.

Thierry

On Tuesday, October 1, 2002, at 01:30 AM, Timothy Bates wrote:

make new message with properties {subject:"test", contents:"this is a
test"} at end of mailbox (mailbox "test")

The last bit is like saying "house of house tim" when you mean "house of
tim", a mailbox (or any other object) does not itself have a mailbox: it is
the mailbox.

The most common place for this "double specificiation" error is with files,
where you end up with

set fileX to file "x"

open file fileX

Which gives an error because it looks for the file's file.

Open fileX will work

Likewise
at end of (mailbox "test")

Should work.

Tim
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Adding a message to a mailbox in Mail
      • From: cricket <email@hidden>
References: 
 >Re: Adding a message to a mailbox in Mail (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: Limiting number of dialog characters
  • Next by Date: Re: "difficulties in OO" [was Re: Adobe's lousy AppleScript implementations]
  • Previous by thread: Re: Adding a message to a mailbox in Mail
  • Next by thread: Re: Adding a message to a mailbox in Mail
  • Index(es):
    • Date
    • Thread