FYI: Scripting Eudora To Make a New Mailbox
FYI: Scripting Eudora To Make a New Mailbox
- Subject: FYI: Scripting Eudora To Make a New Mailbox
- From: "Jonathan Levi, M.D." <email@hidden>
- Date: Wed, 28 Feb 2007 13:58:44 -0500
Hi,
A long time ago I got help from members of this
list on scripting Eudora to make a new mailbox.
Recently, I've revisited this question and
concluded that in this case, UI-scripting is a
faster and more transparent way to go. FWIW, I'm
including a subroutine for this:
-- subroutine MakeNewMailbox() for Eudora. J. Levi 2/28/2007. For OS X Tiger
on MakeNewMailbox(mbName)
tell application "Eudora"
if not (exists mailbox mbName) then
activate
tell application "System Events" to tell process "Eudora"
click menu item "New..." of menu "Mailbox" of ¬
menu bar item "Mailbox" of menu bar 1
repeat until exists window "New Mailbox"
end repeat
keystroke (mbName & return) --may not have MB icon until next reboot
end tell -- proc. Eudora
end if --exists mailbox
return file of mailbox mbName
end tell --Eudora
end MakeNewMailbox
--------------------------------------------------------------
--Jonathan
_______________________________________________
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