Scripts ran via actions do not select properly
A few days ago I wrote a simple script which uses pathfinder to unite paths. This works perfectly when the script is ran via File > Scripts. But when added to an action and ran the script seems unable to select the proper layer and thus fails to run pathfinder.
For a detailed rundown, analysis and files please visit the community forms post: https://community.adobe.com/t5/illustrator-discussions/script-ran-via-actions-does-not-select-properly/td-p/13032773
- Microsoft Windows 10 Pro version 10.0.19043 Build 19043;
- Adobe Illustrator 2022 version 26.0.3 (64 bit)
Uwe Laubender commented
Just to add: Another version of the script done by a different forum member also had issues when run from an action. It did without issues when run from File > Scripts
I tested this other version with Illustrator 2022 and Illustrator CS6 on the same Windows 10 machine. Both had the same bad results with actions. And no issues with File > Scripts.
My tests were done with German versions of Illustrator on Windows 10.
( Adobe Community Professional )