launch Illustrator action from AppleScript

New Here ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

Hello,

I am trying to use AppleScript to automatically launch an action on illustrator 5000 times Here is my script for the moment:



tell application "Adobe Illustrator"

activate

do script "test" from "test"

end tell


When I try to run it I get this error message:
"Error in Adobe Illustrator:" test "does not understand the message" do script "...

 




TOPICS
Scripting

Views

375

Likes

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
Adobe Community Professional ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

Hi,

What exactly your test script do?

Could you please share code for the test script as well.

Best regards

Likes

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
New Here ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

For the test it's just "paste" nothing more 

The final will apply a random "transform each", save a JPG and close the file

Likes

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
Adobe Community Professional ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

Please share complete code.

It will be easy to help you out after looking into it.

 

Best regards

Likes

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
New Here ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

The apple script is : 

set compt to 1

 

repeat until (compt = 4)

tell application "Adobe Illustrator"

activate

do script "test" from "test"

end tell

set compt to compt + 1

end repeat

Illustrator action is :

 

Select All
Transform each
Save for Web & Devices
Revert

 

this is what you need ?

Likes

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
Adobe Community Professional ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

Yes, action file as well.

You can save the action and share the action file.

Best regards

Likes

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
New Here ,
May 03, 2021 May 03, 2021

Copy link to clipboard

Copied

Script files are not supported (*.aia) i cant share this here 

Likes

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
New Here ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

UP 🙂

Likes

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
Adobe Community Professional ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

LATEST

You can share the Action file by putting it on s file sharing site like Dropbox or your Creative Cloud storage and sharing a link to the file here.

Likes

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