Deleting Mail message in different languages
Deleting Mail message in different languages
- Subject: Deleting Mail message in different languages
- From: John Carlsen <email@hidden>
- Date: Sat, 10 May 2003 11:20:29 -0400
I am trying to delete a message in Mail for my script. I understand that
delete theMessage
does not work yet in Mail, as I have verified. So I have used successfully
the suggested workaround
set theMessage's mailbox to mailbox "Trash"
My problem now is that this does not work in other languages, where for
example the trash mailbox is named "Poubelle" in France and probably
something else in other countries.
Is there any way of doing this without a sequence of error traps for each
language?
In other email applications I either use the delete command or refer to the
trash by the generic property of the Application object. In Mail, this
appears to be the "trash mailbox", so I thought I would just use
set theMessage's mailbox to the trash mailbox
But this does not work either. Neither do the Application properties "in
mailbox", "out mailbox", etc. They compile OK, but do nothing at all.
So what are these apparently useful Application properties for? Or are these
just not working properly yet either?
I read Cricket's comment that these are now in the "mail viewer" class, but
that is not what Mail's AS dictionary says.
--
Cheers,
John
_______________________________________________
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.