Copy link to clipboard
Copied
I have inserted the statement
app.execMenuItem("Save")
in functions where I need automatic save to be performed. But the statement doesn't respond. Neither do I get an error. I read in some blog that Adobe will not find an error as the function Save exists in the menu option.
Is there any way of automatically saving a document?
Copy link to clipboard
Copied
"Save" is not one of the supported menu items that can be executed. For the complete list, see the link below.
You can use Doc.saveAs and use the Doc.path as the cPath parameter to write over the original file but this only works in a privileged context.
Copy link to clipboard
Copied
"Save" is not one of the supported menu items that can be executed. For the complete list, see the link below.
You can use Doc.saveAs and use the Doc.path as the cPath parameter to write over the original file but this only works in a privileged context.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now