Multiple Instances Elmedia Player Mac

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

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

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.