|
|
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. |
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 |
|