Skip to main content
Participating Frequently
May 18, 2010
Question

Capturing Save event in CS5 SDK

  • May 18, 2010
  • 1 reply
  • 1313 views

Hello,

I'm using the CS5 SDK to write a plugin which deals with managing assets on a remote service. I can handle opening the illustrator doc, and upload/download (once I know when to do it) just fine.

The problem is - I can't find what event, call, action, flag or anything else to listen for to know when the opened document has been saved!

What's the recommended way to do this, if there is one? I noticed something about the k... messages that you can listen for in the old API, but is there any equivalent for the ActionScript?

Documentation on this is very limited, any help will be much appreciated. Thanks!

This topic has been closed for replies.

1 reply

3DTOPO
Inspiring
May 18, 2010

Yes, it is possible using the AI Notifier Suite.

Listen for kAIDocumentClosedNotifier and/or kAIDocumentAboutToCloseNotifier.

A. Patterson
Inspiring
May 18, 2010

If you're looking for the save event its hard to beat kAIMetadataSyncNotifier -- that gets called anytime the document is being written out, whether by Save, Save As (all of them in that family) or on Close or Quit.

trisweb2Author
Participating Frequently
May 18, 2010

Cool, thanks for the tips.

Now, any reference/info on how I access that and listen from the Flex project? Example code would be awesome.