• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I execute script using command line(Terminal) in MAC?

New Here ,
Dec 06, 2022 Dec 06, 2022

Copy link to clipboard

Copied

In Windows, executing Illustrator with script file path string executes script.

For example, when Illustrator is running, command line below executes script "C:\Users\user\tmp.js" 

"C:\Program Files\Adobe\Adobe Illustrator 2022\Support Files\Contents\Windows\Illustrator.exe" "C:\Users\user\tmp.js"

 

But in MAC, this kind of thing doesn't work.

when Illustrator is running, executing terminal below does not execute script "Applications/Adobe Illustrator 2022/tmp.js". 

open "/Applications/Adobe Illustrator 2022/Adobe Illustrator.app" --args "Applications/Adobe Illustrator 2022/tmp.js"

 

How can I do this in MAC?

TOPICS
Scripting , SDK

Views

199

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 07, 2022 Dec 07, 2022

Copy link to clipboard

Copied

LATEST

This works for me... The `-a` flag tells the open command which program to open the file with.

open -a Adobe\ Illustrator ~/test.js

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines