Illustrator 2021 action from applescript don´t work

New Here ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

hello everyone, recently I updated to the latest version of illustrator and I found that my applescript does not work anymore, I did tests and discovered that all Actions cause illustrator to fail.
 
tell application "Adobe Illustrator"
activate
do script "ungroup" from "MyActions"
end tell
 
I discovered that when activating the Action 3 times the illustrator closes, I already did tests on different computers and it is always the same error, they only work from the 2019 version or lower.
 
I really appreciate if someone can tell me a solution!
TOPICS
Bug, How to, Scripting

Views

266

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

Copy link to clipboard

Copied

Hi, I just tried it with a default action and it worked. AI version 25.2.3, Mac OS 11.3.

tell application "Adobe Illustrator"
	activate
	do script "Opacity 60 (selection)" from "Default Actions"
end tell

Does it work using other actions?

- Mark

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

Hi,

I tried your version of script in 25.2.3 with following steps and it works fine.

 

Steps

1. Created action group with name "MyActions".

2. Create new action with name 'ungroup' and record the ungroup action.

3. Execute your script by selecting the group item and it runs successfully.

 

Screenshot for the action.

Screenshot 2021-05-05 at 11.09.19 AM.png

 

Questions

1. Is your ungroup action do much more than ungrouping?

2. Did you try to execute your action manuall. If that works in latest version?

 

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