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

Click here to return to the '10.6: Set time of deletion for files placed in the Trash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Set time of deletion for files placed in the Trash
Authored by: Sesquipedalian on Jan 26, '10 02:12:13PM
This bit of AppleScript code, when saved as a folder action script, should accomplish the same task, only faster. Plus, it can be added to any folder without needing modification (as the Automator version does), and it does not require you to install anything extra on your system.
on adding folder items to this_folder after receiving added_items
	repeat with this_item in added_items
		do shell script "find " & quoted form of POSIX path of this_item & " -exec touch {} \\;"
	end repeat
end adding folder items to

[ Reply to This | # ]