Running an Illustrator Action through KM?


#1

I often include Adobe Illustrator Actions in KM Macros either by way of a Simulated Keystroke or by running a Javascript that runs the Action by name.

Problem:
When I run the Action via Script (through KM) the result loses the current selection (not expected). However, if I run it via Simulated Keystroke it works as expected (selection remains).

Test:
I found if I run the Javascript directly from Illustrator the selection remains as expected. So, what is different about running it from KM?

The simple solution is to run it via Simulated Keystroke. The downside is Illustrator Action Shortcuts can easily be changed or deleted, breaking the macro.

I'd much prefer to run AI Actions by name if I can make them run the SAME as using a Keystroke.

Here are some test files if someone has an interest in this:

Do Action "Unite" (AI).kmmacros (4.3 KB)

Here is the AI Action file that is called: