Copy link to clipboard
Copied
I have a simple action the runs the "Unite" Pathfinder (tooltips calls it "Unite" while the Action calls it "add"). Running this action with an assigned Shortcut leaves the selection selected. But when I run the same action from a script the selection is lost. Why is that?
app.doScript ("Unite", "AI Actions_KM" );
Thanks for checking, Carlos.
Your comment made me think to test more thoroughly. I typically run scripts via Keyboard Maestro Macros. Sure enough, running the script directly works fine… running it through Keyboard Maestro loses the selection.
EDIT:
Turns out an Applescript will work properly from Keyboard Maestro:
tell application "Adobe Illustrator"
activate
tell current document
do script "Unite" from "AI Actions_KM"
end tell
end tell
Copy link to clipboard
Copied
my selected items remained selected here Ray. I'm on Windows 10, CC2019.
Copy link to clipboard
Copied
Thanks for checking, Carlos.
Your comment made me think to test more thoroughly. I typically run scripts via Keyboard Maestro Macros. Sure enough, running the script directly works fine… running it through Keyboard Maestro loses the selection.
EDIT:
Turns out an Applescript will work properly from Keyboard Maestro:
tell application "Adobe Illustrator"
activate
tell current document
do script "Unite" from "AI Actions_KM"
end tell
end tell
Find more inspiration, events, and resources on the new Adobe Community
Explore Now