I am not a Mac person and don't plan on becoming one, but according to
stackoverflow you can create an Automator app:
Quote:
I don't know of a way to have the raw script accept drag-and-dropped files, but there are a number of options to wrap it in something else that accepts drag-and-drop, and passes the files to a script. IMO the quickest option is to wrap the script in an Automator application. Run /Applications/Automator.app, select Application as the type for your new project, drag the "Run Shell Script" action from the actions list (second column) into the workflow (right column), set its "Pass input" to "as arguments", paste in the shell script, then save the app. Done.
Other options for wrapping a shell script include: AppleScript, Platypus, and DropScript.
|
Looking at the Applescript method, it sounds like you should use:
Code:
on open filelist
repeat with i in filelist
do shell script "ebook-edit " & quoted form of POSIX path of i
end repeat
end open