Re: Basic Eudora Question: Make New Mailbox
Re: Basic Eudora Question: Make New Mailbox
- Subject: Re: Basic Eudora Question: Make New Mailbox
- From: Jonathan Levi MD <email@hidden>
- Date: Mon, 29 Aug 2005 01:38:28 -0400
At 1:17 PM -0400 8/28/05, Jonathan Levi MD wrote:...[]
Charles Buckett's and Bill Briggs's replies much
appreciated. (Gee, the script by JD from the
archives, provided by Charles, had me peering
into Eudora's 'aete' resource to see what «class
euFS» is.)
Yes, I was hoping to find a way to make Eudora
aware of the new mailbox if the latter is created
while Eudora is running. I'm already doing this
with GUI-scripting, but was hoping to find a way
to do it without, as it would probably be more
robust.
The problem is that there doesn't seem to be any
any working form of the command
tell application "Eudora" to ¬
make {various properties} new mailbox'.
They may compile and even execute without errors, but no mailbox appears.
FWIW, here's one way to create a mailbox using
Bill's method: "quit Eudora, create the new file
behind Eudora's back,...then re-launch." At least
the code's compact and legible:
set {fContainerPath, fName} to ¬
{path to startup disk, "New Mailbox"}--for example
makeEudoraMailbox(fContainerPath, fName)
on makeEudoraMailbox(fContainerPath, fName)
tell application "Finder"
set newFile to make at item fContainerPath new file
tell newFile to set {file type, creator type, name} to ¬
{"TEXT", "CSOm", fName}
open file fName of item fContainerPath
end tell
end makeEudoraMailbox
Jonathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden