I am trying to setup an action that runs a script using the "Insert menu item" command.
It all works perfectly but when I quit Illustrator and re0open it, the action has disappeared.
Is this a bug or am i doing something wrong?
One workaround I use for this problem is to save the working action script by using the "Save Action" command before quiting Illustrator.
When I launch Illustrator next time, I first manually run a script which basically does nothing (it shows an alert confirming that it made the script menu known to Illustrator - I can send you this script if you want) and then I reload the previously saved Action script by using the command "Replace Actions...".
franK
Similar workarounds have been suggested many times (including myself). It works for me, though I don't have to run any script before importing the saved action sets.
Other users, however, reported that this workaround definitely does not work on their machines. Seems as if it is no general solution.
Additional info (no solution):
Could have something to do with the order Illustrator registers available scripts as menu commands and checking validity of action 'menu commands'.
Try this:
- Look in the File/Scripts menu and note down a scriptname in there;
- Exit Illustrator;
- Start Illustrator
- Create a new action
- In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
- In the textbox enter the scriptname you dotted down and press Find
It tells you 'No menu item matching that name was found.'
- Press OK, then Cancel;
- Goto File/Scripts but don't select a script, close the menu
now again
- Create a new action
- In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
- In the textbox enter the scriptname you dotted down and press Find
Now it could be found..
So it seems that when Illustrator starts:
Initializes without registering the available scripts as available menuitems
When the actions are loaded and in it is a Menu Command, it checks if that command is actually available - if not it deletes the action item
After accessing the scriptmenu the scripts are indeed registered as available menuitems..
So now if they would only register the scriptnames before loading the actions when starting Illustrator it would be solved. Or of course disable checking action commands for validity.
Sure hope they solve this soon as I can imagine it affects a lot of people.
To sum up:
Seems the quickest workaround is:
This must be done each time you start Illustrator.
That works on my Mac with AI CS5.
North America
Europe, Middle East and Africa
Asia Pacific