Jump to content

How can i use drag and drop in apple script?


rhyguy
 Share

1 post in this topic

Recommended Posts

i have an applescript that goes something like this

 

do shell script "rm -r /System/Library/File1"  with administrator privileges
do shell script "cp File2 /System/Library/File1"  with administrator privileges

 

but i want to replace file 2 with a file that i drag on to the application

 

how can i do this? (in apple script or automater)

Link to comment
Share on other sites

 Share

×
×
  • Create New...