I have several Applescripts that are loaded into the Script menu. I also have several actions that are easier to use as actions and at least one that cannot be replicated using Applescript. I'd like to consolidate them into just one interface on the Action panel. I've tried to make an action that calls the menu item for a script, but after quitting Illustrator and starting it again, the script is always removed from the action I made.
Any suggestions, or do I log this as a bug?
Or, if anyone has a javascript that can successfully change the document color mode to CMYK that would be fantastic. That function isn't available in Applescript.
Thanks
My solution is to use GUI scripting to fake a menu item click. What a farce though! I can NOT believe how the Ai team could let this *vital* function be unscriptable for 10 years! I just posted (probably the 3rd time) in the bug report area about fixing it. I hope ANYONE who also needs this function will post a bug report and demand this be fixed asap.
Here's the web addy for bug report:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Color mode can be changed using an action via the "Insert Menu Item..." command in the panel fly-out menu. An F-Key can be assigned to the Action so it is a single keystroke function.
Or, the Document Color Mode can have a keyboard shortcut assigned to it. That's how I do it. Cmd-Opt-R changes to RGB for me.
Hope this helps.
Thanks Mike but no that doesn't help at all.
I had an action that called "Doc Color:CMYK" and I was using (Applescript) "do script" to call that action. But it fails randomly/sporadically; specifically it said something like "could not complete the action because it is currently playing". There is another thread here about this issue, that person was using JS I think. They had no real resolution to the problem either.
I tried attaching an F key and then a different keyboard shortcut to that and also calling System Events to "do keystroke <whatever>" but that was also failing or not getting called consistently either.
The times I have run into this same problem of the action still running is when it remains highlighted in the Action panel. Have you tried serializing the actions using one for the doc color change and another for a close/save so the second is the highlighted action? Don't know if it will work but it might. Calling doScript won't work in ExtendScript; only AS or VB.
North America
Europe, Middle East and Africa
Asia Pacific