Applescript to run at shutdown...
Applescript to run at shutdown...
- Subject: Applescript to run at shutdown...
- From: Steve <email@hidden>
- Date: Thu, 08 Nov 2001 12:51:06 -0800
I just created an applescript to backup a folder on a mounted server. I'd
like the script to be run automatically when I shut down my Mac. I tried
putting the script into the shutdown folder but when I shut down it would
open the applescript in the editor, but didn't run it.
Also I'd like to rename the folder I'm backing up with the current date.
This is the first I've messed with applescript and feel a bit lost. Thanks
for any help.
here' s my script:
tell application "Finder"
activate
select disk "externaldrive"
open selection
select folder "www" of disk "externaldrive"
set expanded of selection to true
select folder "customer_demo" of folder "www" of disk "externaldrive"
copy selection to desktop
end tell
tell application "Finder"
activate
select folder "customer_demo"
set name of selection to "customer_demo current date"
end tell