12-13-2014, 09:09 PM
Apologies, I don't think I understand your problem with 100% clarity, but I will do my best.
At the moment, the core::CurrentDocument class only supports saving a document through traditional means using Illustrator's built-in file saving dialog. When you call the CurrentDocument:ave() method, the user will be prompted for information about how/where to save the document if the document has never been saved before. If you call the same method and the document has been saved before, then it will simply be written to disk according to the parameters the user chose the first time they saved the document. We have no control over how/where the document is saved and we have no control over Illustrator's built-in file saving dialog.
Having said that, we are working on an implementation of Illustrator's AIFileFormat suite, which will allow the developer to write the current document to disk in whichever format they want without prompting the user for any information (even if it is the first time the document is being written to disk). Illustrator has some limitations about which formats can be used without any input from the user, but in general a document can be written without user input.
This will probably be in the next release of CORE. If that functionality is what you need, then simply waiting for 0.5.7 will solve your problem. If instead you are looking for a custom file saving UI, then you will need to implement that on your own (and again wait for the AIFileFormat improvements that should be in CORE 0.5.7 so you can actually write the data via your custom UI).
Does that help clarify the situation?
At the moment, the core::CurrentDocument class only supports saving a document through traditional means using Illustrator's built-in file saving dialog. When you call the CurrentDocument:ave() method, the user will be prompted for information about how/where to save the document if the document has never been saved before. If you call the same method and the document has been saved before, then it will simply be written to disk according to the parameters the user chose the first time they saved the document. We have no control over how/where the document is saved and we have no control over Illustrator's built-in file saving dialog.
Having said that, we are working on an implementation of Illustrator's AIFileFormat suite, which will allow the developer to write the current document to disk in whichever format they want without prompting the user for any information (even if it is the first time the document is being written to disk). Illustrator has some limitations about which formats can be used without any input from the user, but in general a document can be written without user input.
This will probably be in the next release of CORE. If that functionality is what you need, then simply waiting for 0.5.7 will solve your problem. If instead you are looking for a custom file saving UI, then you will need to implement that on your own (and again wait for the AIFileFormat improvements that should be in CORE 0.5.7 so you can actually write the data via your custom UI).
Does that help clarify the situation?