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');
}
Copy link to clipboard
Copied
// How about this code
app.selection = [] ;
Copy link to clipboard
Copied
thanks, sttk3 it worked.
Copy link to clipboard
Copied
Or
app.selection = null;