Running an Action from script
Hello,
In Illustrator CC latest update, my following script does not work:
1- Select a couple paths (in script) (all of them close paths in different groups)
2- execute my action which offset paths with certain amount
The problem is in this new version after the action dis-select all of them except one, but before this version it worked and keep all of my selection paths still as selected ( by path I mean the new offset paths, but for all of them)
It really made trouble for my script in the company, because some computer still does not have the latest CC.
Thank you
Maryam

The bug is reported to happen again with running via COM with 29.3 build
-
Oleg Krasnov commented
The error still occurs when running the script via COM.
ComObject("Illustrator.Application.29").DoJavaScript("app.doScript('compound path - expand', 'set1');")
-
Oleg Krasnov commented
Thanks, guys. Version 26 is fine.
-
Oleg Krasnov commented
25.2.3 Still nothing...
-
[Deleted User] commented
Mac OS latest release 25.2. Bug with lost selection after run action from script not fixed. May appear due to different launch methods:
drag & drop script to Ai window,
run from File > Scripts menu,
run directly from VSCode. -
Oleg Krasnov commented
25.2.1 — the same thing.
-
Oleg Krasnov commented
25.2 Still not fixed.
-
Anonymous commented
Running an action from script still does not work for me in Illustrator 25.1. The bug persists.
-
Anonymous commented
I still can not get actions to run from a script in version 25.1
-
Oleg Krasnov commented
I am unhappy to share that the bug is still here.
-
Oleg Krasnov commented
In AI 24 running the script with 'app.doScript(name, set);' clears selection.