Skip to main content
Participant
November 3, 2023
Question

"Delete the style selection" missing check box for "Do not show again"

  • November 3, 2023
  • 1 reply
  • 121 views

I have an action set up that includes "select all unused character styles" and "Delete character styles" which prompts me to confirm "Delete the style selection?". My answer is always "Yes" but there is no check box for "Do not show again". As this is part of a longer action set, I would like to be able to bypass this confirmation without the action being paused while I confirm my answer. I don't know how to write scripts so I tried using chat GPT to help me write a one to automate this, but the only results were either errors, or all of the styles being deleted, includeing those in use. Does anyone have a solution to this? Many thanks.

This topic has been closed for replies.

1 reply

Sergey Osokin
Inspiring
November 4, 2023

There are no predefined methods in scripts for selecting unused character styles. This may annoy you. If you just wanted to delete without confirmation, I would suggest running the action from a script with alerts disabled. But since your action is just one part of a chain of other actions, this option does not seem to suit you. The following code is of little use under your task conditions.

#target illustrator
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
app.doScript("ActionName","SetName");
app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS;