I've been trying to find a way to simulate dragging a folder to the desktop,
in a script. I tried this, not really expecting it to work:
move folder "Test" to the desktop
Much to my surprise, the folder simply disappeared from my folder list!
Nothing appeared on the desktop.
A little poking around with line-by-line AppleScript, and I was able to
determine that the folder still existed...but with no parent! Actually, I
had the folder ID from previous commands, and I was able to address it. In
fact, in Erage, I did a Advanced Find on subject because I recalled the
subject of a message in that folder, and I located the message. Then, using
my script to open the enclosing folder, I was able to open the folder and
see all the messages in it. So I knew the folder was there. It just was not
in the folder list.
The script command "get parent of folder "Test"" resulted in an error about
not being able to make something into the expected type. As I wanted the
folder in question to be a subfolder of Inbox, I tried this:
set parent of folder "Test" to folder "Inbox"
Lo and behold, it worked! (Or was it "move folder "Test" to folder "Inbox"?
One of those two.) I got the folder back.
It was kinda distressing to find I could so easily mess up my database and
render messages invisible. (Hey! Here's a way to have invisible folders in
Entourage, just like in the Finder! ;-))
I guess my point is addressed to the AppleScript gurus at MS: Shouldn't the
"move" command validate the destination before erasing the current
information destined to replace it?
--
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984 <http://home.earthlink.net/~allenwatson/>
Applescripts for Outlook Express and Entourage:
<http://homepage.mac.com/allenwatson/>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>