Delete contents of 'server' folder on shutdown...
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