Economy-x-Talk - Sample Scripts
Empty Temporary Items fldr
This script empties the temporary items folder.
You can ignore the returned result.
Be careful using this script.
MS
on run {}
set rslt to ""
tell application "Finder" to set folderSize to ¬
the size of temporary items folder
copy folderSize as integer to fSizeInt
try
set rslt to (display dialog ¬
"The size of the teporary items folder is " & fSizeInt & return & ¬
"Do you want to delete the contents of this folder?" buttons {"Okay", "Cancel"} default button "Cancel")
end try
if rslt is ({button returned:"Okay"}) then
tell application "Finder"
delete every item of temporary items folder
end tell
end if
end run
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.