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

deselectall doesn't work. He remains in a position of choice.

Explorer ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

After this function, there are further operations. 
Since it is selected, errors will occur in other transactions.
How can I deselect objects?

 

function stroklariFilleCevir() {
    app.executeMenuCommand('selectall');
    app.executeMenuCommand('Live Outline Stroke');
    app.executeMenuCommand('expandStyle');

    //This section doesn't work. He remains in a position of choice.
    app.executeMenuCommand('deselectall');
}

 

TOPICS
Scripting

Views

172

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 Expert ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

// How about this code
app.selection = [] ;

Votes

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 ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

LATEST

thanks, sttk3 it worked.

Votes

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
Guide ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

Or

app.selection = null;

Votes

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