This works fine. It creates 2 buttons and names them. Then assigns them an action to go to a destination. I would like the script to check and see if the button exist first. If it does exist assign the actions. If it does not exist create it and then assign it the actions. Keep in mind that there could potentially be up to 130 buttons this script would create. Any suggestions on creating an array on this or whatever is more efficient would be great. Again I am a newbie and get by....but never claimed my scripts were efficient.

Then I have this script on a button (just to test the code). I would like to move it to the document level and assign this as an action for the first button "001_callout".

Over all what I want this to do is.....look to see if the button "xxx_callout" exist. If it DOES NOT exist....create it.Once the button is created I want it to have actions assigned to it. I want it to go to "view_xx" and turn off all the layers on that page except for "Callout 1" and "Paste 1st".

Any help someone can provide would be greatly appreciated! Even if it is a small part of it...like writing an array to create the buttons instead of the long drawn out way.