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

Use folder action scripts to relocate Safari downloads Web Browsers

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.]
    •    
  • Currently 1.67 / 5
  You rated: 3 / 5 (3 votes cast)
 
[4,406 views]  

Use folder action scripts to relocate Safari downloads | 1 comments | Create New Account
Click here to return to the 'Use folder action scripts to relocate Safari downloads' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use folder action scripts to relocate Safari downloads
Authored by: adrick42 on Nov 02, '03 06:21:19PM

Like the premis, but I get the save dialogue prematurely.
then.... If I choose a new location before the download is completed I get an error "decompression failed"
So a note to anyone: You should uncheck the decompress option.

---
If we do not ever take time, how can we ever have time?

The Merovingian -- 

[ Reply to This | # ]