save
Write the open Dorico project to its existing file on disk. Use only if the project has a file path; otherwise, export to PDF or MusicXML.
Instructions
Save the open project over its existing file on disk.
Sends File.Save, which writes the project in place. A project that has never
been saved has no path to write to, so this cannot be relied on to save one:
check that the project has a file before treating it as a save.
Returns:
Result dictionary reporting whether the command was accepted.
Note:
When to use: Save changes in an already-saved project file on disk.
When NOT to use: Do not use if the project has never been saved (has no
path). To produce a file for external use without altering the open
project file, use export_pdf or export_musicxml instead.
Acceptance is not completion here either (docs/protocol.md, "Command
Acceptance vs Effect"), so a kOK does not prove the file on disk has changed.
This overwrites the .dorico project file in place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||