• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Applescript to run at shutdown...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Applescript to run at shutdown...
      • From: Matthew Smith <email@hidden>
    • Re: Applescript to run at shutdown...
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Handling a CGI
  • Next by Date: Re: Applescript to run at shutdown...
  • Previous by thread: Re: Execution Error with Excel script
  • Next by thread: Re: Applescript to run at shutdown...
  • Index(es):
    • Date
    • Thread