How to launch an Automator application using AppleScript

applescript

I am trying to use Remote Buddy to control Photo Booth, but I need a way to switch between Still and Video modes, my solution to this was to use an Automator app to select one or other of the two radio buttons when a remote button is pressed.

I've created the .app, and it works fine when I double click it from the desktop, but I need a way to launch the .app from within Remote Buddy, and AppleScript seems to be my only option.

tl;dr

I need to be able to launch an Automator .app file using AppleScript, but can't figure out the correct syntax.

Best Answer

If I made an Automator app named Untitled I would start it by using this command tell application "Untitled" to activate

Once you create an application using one of the following methods, that application can be accessed in any other script via its name. It's defined globally, as is any other application on your mac. Just use the tell application "app Name"

Two ways of creating an application : Using AppleScript Using automator

Related Topic