Search code examples
applescriptsublime-text-plugin

Sublime Text Plugin using applescript can not open FirefoxDeveloperEdition


I am having an issue getting applescript in a sublime text plugin to open Firefox Developer Edition.

cmd = """tell application "FirefoxDeveloperEdition"

activate

end tell"""

call(['osascript', '-e', cmd])

This works in the applescript editor activates FirefoxDeveloperEdition but doesn't work in the sublime text plugin.

I can swap out Firefox, Google Chrome and even Minecraft and they all work from with in the sublime text plugin. But it won't activate FirefoxDeveloperEdition.


Solution

  • The application name should have spaces.

    tell application "Firefox Developer Edition"