exists mailbox
exists mailbox
- Subject: exists mailbox
- From: Luther Fuller <email@hidden>
- Date: Thu, 22 Oct 2009 15:10:23 -0500
I wanted to do this in Mail ...
if exists (mailbox "xxx" of frontViewer) then set name of mailbox "xxx" to "zzzz" end if
Simple. But all I get is an error because Mail doesn't understand 'exists' despite 'exists' appearing in the dictionary.
So, I had to use ...
try set selected mailboxes of frontViewer to {mailbox "xxx"} set name of mailbox "xxx" to "zzzz" end try
It works, but does anyone know why 'exists' does not work?
|
_______________________________________________
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