How to Open a file using Automater

Hi:


I routinely use application called Logic Pro X (I am sure many of you have heard of it or use it). I also have a file that I open frequently within Logic. The file is entitled Jam


Is there any way that I can create an app using Automator, that I can copy to my desktop that would automatically launch Logic and have it open up the file called Jam?


Thank-you.

iMac Line (2012 and Later)

Posted on Nov 6, 2020 10:13 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 6, 2020 11:08 AM

Automator is a workflow, so items tumble through it. Here is an example of a single-action or two action workflow that is saved to your Desktop:


Single action (you drag and drop the Jam file on the application icon)

  1. Launch Automator, select Application, and then click Choose.
  2. Utilities Library : Run Shell Script action
    1. Drag and drop onto the right-most workflow window
    2. Set Shell and Pass input as shown below
    3. Change the example Safari to Logic Pro X application name. If that name has white-space, then surround the application name with double quotes.
    4. When you drag and drop the Jam file onto this Automator application, it will replace the "${1}" argument with the full pathname of the Jam file, and hopefully, Logic Pro X will launch to an opened Jam file.


You replace Safari with the Logic Pro X application name. If the name contains white-space, then surround it with double quotes. When you drag and drop the Jam file on the Application, the "${1}" is replaced by the full pathname of the Jam file, and Logic Pro X should open with that file. I don't have the application, so cannot test.


Two-action (not drag and drop)

  1. Launch Automator, and same instruction for Single Action.
  2. Files & Folder Library : Get Specified Finder Items action
    1. Drag and drop the action into the larger workflow window.
    2. Add your Jam file
  3. Utilities Library
    1. Drag and drop the Run Shell Script action to the right-most workflow window
    2. Use the same settings as the single action example above. Replace the example Safari with Logic Pro X as in the single action. When the Automator application is run the Jam file will fall from the first action into the Run Shell Script action and replace the "${1}" with its full path.
    3. Hopefully Logic Pro X will launch and open the Jam file
  4. Save the Automator application to your Desktop where you run it with a double-click.


Similar questions

3 replies
Question marked as Top-ranking reply

Nov 6, 2020 11:08 AM in response to Music Fusion

Automator is a workflow, so items tumble through it. Here is an example of a single-action or two action workflow that is saved to your Desktop:


Single action (you drag and drop the Jam file on the application icon)

  1. Launch Automator, select Application, and then click Choose.
  2. Utilities Library : Run Shell Script action
    1. Drag and drop onto the right-most workflow window
    2. Set Shell and Pass input as shown below
    3. Change the example Safari to Logic Pro X application name. If that name has white-space, then surround the application name with double quotes.
    4. When you drag and drop the Jam file onto this Automator application, it will replace the "${1}" argument with the full pathname of the Jam file, and hopefully, Logic Pro X will launch to an opened Jam file.


You replace Safari with the Logic Pro X application name. If the name contains white-space, then surround it with double quotes. When you drag and drop the Jam file on the Application, the "${1}" is replaced by the full pathname of the Jam file, and Logic Pro X should open with that file. I don't have the application, so cannot test.


Two-action (not drag and drop)

  1. Launch Automator, and same instruction for Single Action.
  2. Files & Folder Library : Get Specified Finder Items action
    1. Drag and drop the action into the larger workflow window.
    2. Add your Jam file
  3. Utilities Library
    1. Drag and drop the Run Shell Script action to the right-most workflow window
    2. Use the same settings as the single action example above. Replace the example Safari with Logic Pro X as in the single action. When the Automator application is run the Jam file will fall from the first action into the Run Shell Script action and replace the "${1}" with its full path.
    3. Hopefully Logic Pro X will launch and open the Jam file
  4. Save the Automator application to your Desktop where you run it with a double-click.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to Open a file using Automater

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.