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

How to execute a script before saving or exporting a document

New Here ,
Aug 08, 2023 Aug 08, 2023

Copy link to clipboard

Copied

Hi all,

 

I am working on a task which needs to automatically check certain information of the document upon user save or export an Illustrator document,  e.g., check the size of the artboard or file metadata and inform the user if the document doesn't conform to the standard.

 

As of now I have not find any way to register a callback only within a jsx script. When I was investigating on CEP,  I find it is possible to register callback to certain event, includes "documentAfterSave" but not before save. The available events are very limited. May I know whether there are available events that are not dcoumented here ?

 

Also great appreciate if anyone can provide insight on what's the best way to accomplish this task.

TOPICS
Scripting , SDK

Views

146

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 ,
Aug 08, 2023 Aug 08, 2023

Copy link to clipboard

Copied

LATEST

It seems that C++ plugin AIHostAdapter provides events such as before save.

There is a CEP called IllustratorEventManager, similar to Photoshop’s script event manager. You can use it or refer to it.

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