Multiple instances Elmedia Player mac

For opening several windows of VLC I have a script like this:

on run do shell script "open -n /Applications/VLC.app"
end run
on open theFiles repeat with theFile in theFiles do shell script "open -na /Applications/VLC.app " & quote & (POSIX path of theFile) & quote end repeat
end open

It works. Now I want to do the same thing for Elmedia Player, but because of the space in Elmedia Player it does not work.

I have tried like this:

"open -n /Applications/Elmedia\ Player.app"

But then it says "Syntax Error Expected """ but found unknown token" when I try to save it.

Help please! :)

1 Answer

escape it with ' ' as below on run do shell script "open -n /Applications/'Elmedia Player.app' " tell application "Elmedia Player" to activate end run

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like