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

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

New Here ,
Nov 03, 2023 Nov 03, 2023

Copy link to clipboard

Copied

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.

TOPICS
Feature request , How-to , Scripting

Views

61

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
Enthusiast ,
Nov 04, 2023 Nov 04, 2023

Copy link to clipboard

Copied

LATEST

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;

 

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