Is there a way to detect save-as?

When we “save-as” a document the GUID of the active document changes. I can get it in the update() (the panel lifecycle method), but update() is not triggered on save-as, it takes the user to do something. So is there a way to detect save-as instantly as it happens?

You can’t get it as it happens, but next time your panels update() function is called, you could first check against your last-saved document guid to detect such a save-as.

In theory, that’s good enough, since that’s the next chance you get to do anything, anyway.

1 Like