Re: The Eudora mailbox challenge...
Re: The Eudora mailbox challenge...
- Subject: Re: The Eudora mailbox challenge...
- From: John Delacour <email@hidden>
- Date: Thu, 17 Jul 2003 16:12:37 +0100
- Mac-eudora-version: 6.0a27
At 8:27 am -0500 17/7/03, Christopher Stone wrote:
Hey John,
My script does create a mailbox that immediately appears in the mailbox
window and menu, and in behavior it acts much like the script you sent
me. What's the rub? Are you creating the mailbox only through Eudora's
auspices or what?
No, sorry -- without studying your scrpt
carefully I read your comment "you _have_ to move
the mailbox into Eudora's mail folder for it to
be available after quitting and re-launching
Eudora" and jumped to the conclusion you were
moving manually.
My script does something very similar to yours
except that I don't use the Finder. I think some
people would have permission problems creating a
file at the root level of the disk.
set dd to display dialog "
Type a name for the new mailbox" default answer ""
set _mailbox to text returned of dd
tell application "Eudora"
set _exists to exists mailbox _mailbox
set _in to "" & file of mailbox "in"
set my text item delimiters to ":"
set _file to "" & text items 1 through -2 of
_in & ":" & _mailbox as file specification
set _fileU to POSIX path of _file
end tell
if _exists then
tell me to display dialog "
There is already a mailbox named 3" & _mailbox &
"2" buttons "OK" default button 1 with icon 0
return
end if
set fU to "/tmp/" & _mailbox
set f to fU as POSIX file
open for access f
close access f
tell application "Eudora"
activate
open {f}
try
close window _mailbox
end try
end tell
do shell script "rm " & fU & space & quoted form of _fileU
open for access _file
close access _file
tell application "Eudora" to open {_file}
_______________________________________________
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.