|
|
10.4: More expressive saved searches
I'm trying to use a saved folder to eliminate a pet peeve of mine. I have a folder for all downloads, which at times may hold up to hundreds of files. I always view it by date modified, and if I am lucky, newer downloads float at least near the top because they were created recently. However, if I download a file or say a PDF that was created a year ago, it shows up far down the list and can be hard to find. I get around this by clicking on the "Show in Finder" button in the downloads list in Safari. But...
10.4: More expressive saved searches
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.
10.4: More expressive saved searches
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.
10.4: More expressive saved searches
You could try using run applescript block, with use 'do shell script' and 'touch' shell command. I'm not sure how to put everything together since I'm still waiting for my copy of tiger, but once I've got the copy I would love to have this functionality!
Improvement on tanvach's script + instructions
I really like tanvach's idea for a folder action, and I'll offer this small improvement over it, which will make the Finder refresh it's view of the touch'd file and thus update the listing immediately:
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 & "\""
tell application "Finder"
update this_item
end tell
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
How to use: copy and paste the script into a new script in ScriptEditor. Save as as compiled script to the folder: /Library/Scripts/Folder Action Scripts/
Then follow the instructions to attach it to your Downloads folder. Note that I would only recommend using this if you have a dedicated downloads folder - I wouldn't, for example, attach this to your Desktop!!---
Improvement on tanvach's script + instructions
You can do this really easily with Automator.
Some clients set the DL date
The problem you describe depends on the software used to download files: sure Safari TRIES to set the local file's date to the original's (and fails when the server won't provide that info), but others (like iCab) always set the local file's creation date to its, well, creation date (downloads aren't *copies* in the Finder's sense, as they don't occur between 2 filesystems but from one indeterminate data stream to a file).
10.4: More expressive saved searches
In Spotlight there is Last Opened which is when file or folder was accessed which may give you a truer list? |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|