Re: Deleting Mail message in different languages
Re: Deleting Mail message in different languages
- Subject: Re: Deleting Mail message in different languages
- From: Rob Jorgensen <email@hidden>
- Date: Sat, 10 May 2003 11:56:59 -0400
At 11:20 AM -0400 5/10/03, John Carlsen wrote:
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.
What happens if you try this?
tell application "Mail"
set trashName to name of trash mailbox
set theMessage's mailbox to mailbox trashName
end tell
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.