Drag and Drop Shell Script

macxonly

Registered
Okay... I have found scattered resources on the web pertaining to this issue, but can't really understand how to implement it.

I want to create and Applescript, that I can drop a file onto. The applescript then calls a shell script on the file that I dropped.


I got the "code" below from here

on open filelist
repeat with i in filelist
do shell script "my_command " & POSIX path of i
end repeat
end open

Now I have no idea how I can implement the path of the file that I dropped onto the script... Any ideas?
 
Back
Top