Hi,
The trick is to use the Recorder tool, so that you can find out what command is used.
type:
In the command line. In the Toolbox you'll find the recorder tool. Choose a filename, and click start. After that, do the Granite Save action. You should prevent viewport clicks, because these will just be "pixel coordinates", so these are useless when playing back recordings.
When you're ready, click stop, and check the contents of the recoder file.
Jaap