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

Click here to return to the '10.4: More expressive saved searches' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: More expressive saved searches
Authored by: tanvach on May 08, '05 07:06:02PM

Attach this script as Folder action to your download folder. It uses do shell script to call 'touch' on every items added to the folder.

on adding folder items to this_folder after receiving these_items
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
do shell script "touch \"" & POSIX path of this_item & "\""
end repeat
on error error_message number error_number
if the error_number is not -128 then
tell application "Finder"
display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
end tell
end if
end try
end adding folder items to

As the web browser saves the downloaded files, this script is called and the file will have the modification time updated.

[ Reply to This | # ]