Advertisement
applehelpwriter

MoveSelection.scpt

Jun 27th, 2013
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (*
  2. Scripting by Applehelpwriter 2013
  3. http://applehelpwriter.com
  4.  
  5. WHAT'S IT FOR?
  6. I use this script to move things quickly from the desktop.
  7. Create a hotkey for it (I use FastScripts for this, but you can do it via 'Services' menu), then
  8. select file/s you want to move, hit the hotkey and use the Finder tree to pick the destination.
  9.  
  10.  
  11. *)
  12.  
  13. --start
  14. tell application "Finder"
  15.     try
  16.         get selection
  17.         if selection is not equal to {} then
  18.             move selection to (choose folder)
  19.         else
  20.             display dialog "Nothing selected to move!" buttons {"OK"} default button "OK" with icon 2
  21.         end if
  22.     on error
  23.         set selection to {}
  24.     end try
  25. end tell
  26. --eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement