Skip to main content
Participant
June 30, 2008
Question

creating custom menu automatically.

  • June 30, 2008
  • 7 replies
  • 742 views
hi everyone,
I have a problem in creating custom menu.I have written a code for "afternew" that works but should I run the script every time I open Indesign.
Is there any Indesign java scripting code that automatically enables the menu with submenu while opening indesign.

Thanks in advance.
This topic has been closed for replies.

7 replies

July 25, 2008
The best place to put them:

PC:

C:\Program Files\Adobe\Adobe InDesign CS3\Scripts

Mac:

/Applications/Adobe InDesign CS3/Scripts

You create a folder under the scripts folder for your project, then create a folder inside your project folder called "Startup Scripts".

Scripts in *your* Startup Scripts folder will be executed on startup. You will need to create a persistent scripting engine for your menus to have any effect.

What I typically do (many of my customer's projects are large - 60+ files) is organize projects like so:

Adobe InDesign CS3/Scripts
/My Project
/jsx
[in this folder are scripts that must stay as jsx files]
/scripts
[here is the working source code]
/bin
[here are the files in /scripts converted to jsxbin
/Startup Scripts
myProjectLoader.jsx

myProjectLoader.jsx loads all of the scripts in the jsx folder, then depending on a flag, loads either the files in the /bin or /scripts folder.

So when I deliver: I set the flag to load the binaries, convert the /scripts files to jsxbin, put them in the /bin folder, remove the /scripts folder, and send it to the customer.

Regards

Bob
Known Participant
July 25, 2008
I have mine in
C:\Documents and Settings\USERNAME\Application Data\Adobe\InDesign\Version 5.0\Scripts\Startup Scripts

By default the Startup Scripts folder doesn't exist. So you will have to create it.

David
Known Participant
July 25, 2008
I also want to know how to autorun my scripts after opened IDCS3,anyone can help me?
Participant
July 24, 2008
Hi,
I add my code in C:\Program Files\Common Files\Adobe\Startup Scripts CS3\indesign-5.0 . It wont give any alert messages.Can you tell me where i have to put my jsx file.

Thanks.
Known Participant
July 23, 2008
Hi umamaheswari,

If you put it in the startup scripts folder and it didn't work, there's something wrong with your script. But you're not giving us enough information to make reasonable guesses about the problem. When you say that the script won't work, what do you mean? Does it do nothing? Does it display an error message?

Thanks,

Ole
Participant
July 23, 2008
Hi,
Even I tried in start up script, It won't work.
Any one help me...
Inspiring
July 3, 2008
I am not sure I understand your question. You can simply put your script (that creates the menus) into start up scripts.

Ralf