Hi Enragers.
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.
*this message has been cross-posted to the AppleScript-Users List. Apolgies
to those who read both - if this is unacceptable, please let me know and I
won't do it again*
--
Chris Stearns
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>