When I run this simple JSX directly in Adobe Illustrator it works fine and the selection is maintained.
But when it is run through KM the selection is lost after the Illustrator Action is run. Why the difference?
Running it via a "Simulated Keystroke" works fine from KM, but I would prefer to call it by name because Illustrator Action Keystrokes can be easily changed or lost.
Do Action "Unite" (AI).kmmacros (4.3 KB)
Here is a copy of the Illustrator Action if anyone is interested in testing this.
I'm using AI CC 2015.3.
I have the same problem on my Mac (10.14.3) with my Illustrator CC 2019 (23.0.2)
Try this instead:
It should work fine.
Yes, that's what I've been doing in most cases (I think I learned that from you). In this case I was wanting direct access to edit the script in KM. The Applescript does that for me.
Ultimately I would like to eliminate AI Actions completely, from our workflow. There are just some things I don't know how to handle directly in a script… yet.