Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is it possible to "Expand" using script without display the option dialog?

Explorer ,
May 29, 2020 May 29, 2020

When I run `app.executeMenuCommand("Expand3")` in my script, it opens an dialog to set the properties.

I was wondering if there is some way to set the propertis in script then execute the action without display the dialog.

Or maybe if there is something in the Javascript API to interact with dialog also would be nice...

I also tried to to create an action, but even in action the dialog appears...

 

 

Is not an big issue, but if would be possible to supress the dialog would be nice

 

 

 

TOPICS
Scripting
2.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 31, 2020 May 31, 2020

Hi,

You can suppress the dialog by clicking on "Toggle Dialog On/Off" button, just left to the Action name. So, save the action by turning off the dialogb and then load via javascript as explained above. For reference, button marked in the yellow box, in screen shot. And when you off them it will look like as in another screenshot.

 

Screenshot 2020-06-01 at 11.02.20 AM.pngScreenshot 2020-06-01 at 11.03.27 AM.png

Let us know if this works for you.

 

Translate
Adobe
Community Expert ,
May 29, 2020 May 29, 2020

Hi,

There is one way that you can achive this, you can record the action by surpressing the dialog and call this action from script using app.doScript method

app.doScript([Name of the action], [Name of the set where action stored]);

eg:

app.doScript('Expand', 'Set 1');

 

Here it means you have recored the action of expand and save the action with name "Expand" in "Set 1"

 

Let us know if this works for you.

 

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 31, 2020 May 31, 2020

Hello Charu Rajput, thank you for the response.

But actually I've already tried to use the method you described.

Even in action the dialog appears

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2020 May 31, 2020

Hi,

You can suppress the dialog by clicking on "Toggle Dialog On/Off" button, just left to the Action name. So, save the action by turning off the dialogb and then load via javascript as explained above. For reference, button marked in the yellow box, in screen shot. And when you off them it will look like as in another screenshot.

 

Screenshot 2020-06-01 at 11.02.20 AM.pngScreenshot 2020-06-01 at 11.03.27 AM.png

Let us know if this works for you.

 

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 01, 2020 Jun 01, 2020

Sorry I din't notice this option.

Thank you very much

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2020 Jun 01, 2020
LATEST

You're welcome 🙂

Best regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2020 May 29, 2020

can you describe the process of what you're trying to expand? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 31, 2020 May 31, 2020

Hello CarlosCanto,

I'm trying to expand some objects where fill or srtroke uses patterns

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines