Jump to content
Developer Wiki and Function Reference Links ×

Call script from script palette


Recommended Posts

The command can be called using:

DoMenuTextByName('Compose',0);

Is it possible to call a script from script palette in existing document? For example, in resources of my current file I have Script Palette named "My Scripts" with script in it named "The Magic Button". Is there a way to call "The Magic Button" script from scripts palette "My Scripts" from other script?

Link to comment

I don't think so. There are not VS commands to manage script palettes as far as I know.

If you are on a Mac, you might be able to do with with an Applescript, but you would have to script the GUI (graphical user interface: simulate moving and clicking the mouse).

A better use of Applescript would be to import a palette from a library file rather than trying to create it from scratch. But still not easy.

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...