Skip to main content
Participant
November 13, 2016
Answered

How can I specify arguments for executemenucommand in a script ?

  • November 13, 2016
  • 1 reply
  • 863 views

I am trying to automate a task using javascript, via menu command execution, like

app.executeMenuCommand ('Envelope Options');

Can I somehow modify the parameters of the operation that appear on the dialog box, by program, before the operation is applied ?

This topic has been closed for replies.
Correct answer Silly-V

No, you cannot do this, the commands only bring up the results of the menu items.

You may do the next best thing which is to use actions within the script, some of which can be ran without a dialog but with pre-populated options. (we should make a sticky topic on this, since it's a fairly complicated procedure for those who haven't done it before)

1 reply

Silly-V
Silly-VCorrect answer
Legend
November 13, 2016

No, you cannot do this, the commands only bring up the results of the menu items.

You may do the next best thing which is to use actions within the script, some of which can be ran without a dialog but with pre-populated options. (we should make a sticky topic on this, since it's a fairly complicated procedure for those who haven't done it before)

Participant
November 15, 2016

Thanks, I will consider using actions. Fortunately, the .aia files are editable.

Silly-V
Legend
November 15, 2016

Search the forums for examples of where we embed .aia text inside jsx scripts and dynamically write & load them into the Actions panel to play them & discard them immediately.