Advertisement
Guest User

Move Files - AppleScript

a guest
Sep 8th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on run {input, parameters}
  2.    
  3.     try
  4.         (item 1 of (clipboard info for «class furl»))
  5.         set cbFile to true
  6.     on error
  7.         set cbFile to false
  8.     end try
  9.    
  10.     if cbFile then
  11.         tell application "System Events" to keystroke "v" using {option down, command down}
  12.     else
  13.         display alert "the clipboard does not contain a file"
  14.     end if
  15.        
  16.     return input
  17. end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement