Script not quitting Entourage
Script not quitting Entourage
- Subject: Script not quitting Entourage
- From: chris stearns <email@hidden>
- Date: Fri, 22 Dec 2000 02:59:33 -0800
Hi Scripters.
I'm working on a script to back up my Microsoft User Data (MUD) Folder. I
want the script to:
-quit Entourage, if it is running,
and then:
-run the rest of the script (moving folders, etc).
The second tell block works just perfectly. (I just used the 'record'
feature on the Script Editor, as I'm sure you can see. Sure, it's ugly code,
but it's a newbie's dream. And it works.)
Trouble is, the script will NOT quit Entourage if it is running. I picked up
the 'currProcs' bit of the script on this list a week or so ago.
Any ideas? Here's the script:
---
tell application "Finder"
set currProcs to processes
end tell
if "Microsoft Entourage" is in currProcs then
tell application "Microsoft Entourage" to quit
end if
tell application "Finder"
select disk "OS X HD"
open selection
select folder "Microsoft User Data" of disk "OS X HD"
delete selection
close container window of disk "OS X HD"
select folder "Microsoft User Data" of folder "Documents" of disk
"Macintosh HD"
copy selection to disk "OS X HD"
end tell
---
Thanks in advance.
--
Chris Stearns
Editor, The Mezzanine Reader
http://www.mezzaninereader.com