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

execute JSX in MAC

Guest
Aug 06, 2012 Aug 06, 2012

Hi All,

I want to execute a .JSX file by using Mac Terminal Command like i am doing in MS Windows by using following cmmand:

     C:/ start illustrator.exe Script.jsx

its working fine but i want to do the same thing in MAC, if you have any idea about it please help me.

i am working on an Application in that I am using CS6 SDK to add some functionality in my Adobe Illustrator, but didnt find any method to execute JSX files directoly from VC++/CS6 SDK.

Please help me if you have any suggetion for me.

Thanks & Regards

Harsh

TOPICS
Scripting
6.2K
Translate
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
Adobe
Participant ,
Aug 09, 2012 Aug 09, 2012

There are following two ways to execute the script on Mac from terminal:

01) The way it works on Win, same way it works even on Mac. But make sure that you have mentioned following statement at start of your Java Script:

          #target "Illustrator-16"

02) Or if you do not want to do as mentioned above, you may provide command in terminal as follows:

         Open -a <full path of application> <Java Script Source"

Hope this information helps.

Translate
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
Guest
Aug 12, 2012 Aug 12, 2012

Thanks

Translate
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
Community Beginner ,
Dec 09, 2013 Dec 09, 2013

Hi Harsh,

Please let me know the steps and syntax for  run the jsx file in command prompt on Windows OS.

Thanks

Satish

Translate
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
Community Expert ,
Dec 09, 2013 Dec 09, 2013

Doesn't he explicitly explain in his very first question how he does that? "... by using following cmmand:"?

Did it not work for you?

Translate
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
Community Beginner ,
Dec 09, 2013 Dec 09, 2013

Yes, that command open the indesign but not execute the jsxbin fine.

Regards

Satish

Translate
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
Guest
Dec 19, 2013 Dec 19, 2013
LATEST

Hi Satish,

Following is the code that I am using in batch file to execure the JSX file.

@ECHO OFF

cd %CD%

Illustrator.exe %CD%\SaveNGC.jsx

exit

Regards

Harsh Sharma

Translate
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