Jump to content
Developer Wiki and Function Reference Links ×

Script at Startup


Jack A

Recommended Posts

I don't know about startup, but you can attach a script to any menu command such as the "NEW,,," command.

Just create a script with the name of your choice such as "NEW PLUS SCRIPT...".

In this script, just add a DOMENUTEXTBYNAME('NEW',0); in front of the script that you want to run.

In the workspace editor, add this "NEW PLUS SCRIPT..." to your file menu as a menu command, just below the "NEW..." command. When you choose this new menu item, it will invoke the "NEW" command and then run your script.

If you want to always run this script, just delete the standard "NEW..." command and reassign the keyboard shortcut to your revised command.

I have used this same method to add a date script to my print command. now whenever I print a sheet, it adds a plot date to my sheet.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...