Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

Explorer ,
May 29, 2020 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

 

 

 

TOPICS
Scripting

Views

937

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
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , 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. Let us know if this works for you.

Likes

Translate

Translate
Adobe Community Professional ,
May 29, 2020 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
community guidelines
Explorer ,
May 31, 2020 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
community guidelines
Adobe Community Professional ,
May 31, 2020 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
community guidelines
Explorer ,
Jun 01, 2020 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
community guidelines
Adobe Community Professional ,
Jun 01, 2020 Jun 01, 2020

Copy link to clipboard

Copied

LATEST

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
community guidelines
Adobe Community Professional ,
May 29, 2020 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
community guidelines
Explorer ,
May 31, 2020 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
community guidelines