• 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
Delete contents of 'server' folder on shutdown...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delete contents of 'server' folder on shutdown...


  • Subject: Delete contents of 'server' folder on shutdown...
  • From: James Steincamp <email@hidden>
  • Date: Wed, 30 May 2001 15:24:26 -0400

I have written this script to delete the contents of the 'server' folder
within the system folder for our media/scanning station.

tell application "Finder"
activate
select every item of container window of folder "Servers" of folder
"System Folder" of startup disk
delete selection
empty trash
end tell

I have placed it inside the 'shutdown' items folder within the system folder
as a way of running it automatically. Basically the number of server alias
grows to several hundred over the course of a few weeks as our designs log
into the server to transfer their scans, etc. and I needed a way of cleaning
the folder out periodically.

It runs faithfully and does what it's supposed to, however it aborts the
shutdown/restart process. Is this standard behaviour? What do I do in the
script to ensure that the shutdown/restart process proceeds normally?


Thanks,

-james


........................................

James Steincamp
Art Department Manager

Design Master Associates, Inc.
mailto:email@hidden


  • Prev by Date: Re: Locating AppleScript Beginnings
  • Next by Date: Re: Locating AppleScript Beginnings
  • Previous by thread: Using Applescript to switch displays under OSX
  • Next by thread: audio handling
  • Index(es):
    • Date
    • Thread