Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to empty one user's trash on one drive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to empty one user's trash on one drive
Authored by: dev_sleidy on Mar 14, '07 06:19:12AM

on open dropped_item
set drivepath to POSIX path of dropped_item
if (not (drivepath is "/")) then
try
do shell script ("rm -r " & (quoted form of (drivepath & ".Trashes/" & (third word of (do shell script "id")) & "/") & "*"))
beep
end try
end if
end open



[ Reply to This | # ]