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

Explorer ,
May 29, 2020

Copy link to clipboard

Copied

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

 

 

 

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

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.

 

TOPICS
Scripting

Views

703

Likes

Translate

Translate

Report

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

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

Explorer ,
May 29, 2020

Copy link to clipboard

Copied

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

 

 

 

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

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.

 

TOPICS
Scripting

Views

704

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 29, 2020 0
Adobe Community Professional ,
May 29, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 29, 2020 2
Explorer ,
May 31, 2020

Copy link to clipboard

Copied

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

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 31, 2020 0
Adobe Community Professional ,
May 31, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 31, 2020 2
Explorer ,
Jun 01, 2020

Copy link to clipboard

Copied

Sorry I din't notice this option.

Thank you very much

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 01, 2020 0
Adobe Community Professional ,
Jun 01, 2020

Copy link to clipboard

Copied

You're welcome 🙂

Best regards

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 01, 2020 0
Adobe Community Professional ,
May 29, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 29, 2020 0
Explorer ,
May 31, 2020

Copy link to clipboard

Copied

Hello CarlosCanto,

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 31, 2020 0
Resources