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: DistantThunder on May 08, '05 01:51:11PM

I almost hate to suggest a haxie as a solution (although they've never given me any problems), but since it comes so close to what you are trying to do, here it is: The "Labels X" haxie from Unsanity.com has an option you can enable called "Changing Label Changes File Modification Date" -- which I think would work for what you are trying to do. Perhaps there is a way to enable that functionality without the haxie, but someone else would have to pitch in that solution.



[ Reply to This | # ]
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
try
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"
activate
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 | # ]