Use folder action scripts to relocate Safari downloads
Nov 02, '03 11:51:00AM • Contributed by: zoldar256
Nov 02, '03 11:51:00AM • Contributed by: zoldar256
I never liked that you can't set Safari to always ask you where to save downloads. With Folder Actions, there is a short fix though. I just attach this script to the folder where Safari downloads. Once the download finishes, I get prompted to move it where I want it.
(* Promts where to move a file just added to a folder
Note: Only moves the first file if more than
one file if more than one file has been added.*)
on adding folder items to this_folder after receiving these_items
try
(* Assume it's only working with one item right now. *)
set the_file_info to info for item 1 of these_items
set the_folder to choose folder with prompt ¬
("Move " & name of the_file_info & " to:")
tell application "Finder"
(* Move the files *)
move file (item 1 of these_items) to folder the_folder
end tell
end try
end adding folder items to
[robg adds: I think this should work in 10.2 as well as 10.3, but I have not tested it yet.]
•
[4,515 views]
