How to test if a Mail folder exists?
How to test if a Mail folder exists?
- Subject: How to test if a Mail folder exists?
- From: Robert Nicholson <email@hidden>
- Date: Sat, 23 Jan 2010 09:32:26 -0600
Is there a faster way than this?
My script to move email seems to do it ever so slowly
the idea is to test whether the mailbox exists first and create it if it doesn't.
try
set archiveMailbox to (mailbox folderName)
on error
log "Creating mailbox " & folderName
make new mailbox with properties {name:folderName}
end try
_______________________________________________
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