Skip to content

Instantly share code, notes, and snippets.

@davestewart
Created August 3, 2016 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davestewart/ccefd4ce0c2292e7bd53ad8e841316d5 to your computer and use it in GitHub Desktop.
Save davestewart/ccefd4ce0c2292e7bd53ad8e841316d5 to your computer and use it in GitHub Desktop.
Droplet/App launcher script for MPlayerX (or any app if you change the app reference)
on run
do shell script "open -n /Applications/MPlayerX.app"
tell application "MPlayerX" to activate
end run
on open theFiles
repeat with theFile in theFiles
do shell script "open -na /Applications/MPlayerX.app " & quote & (POSIX path of theFile) & quote
end repeat
tell application "MPlayerX" to activate
end open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment