Changing Export Graphics dialog settings by command

Hi all! Does anyone know if there a way to change the default export graphics file format by the command line or in a macro? I like to just copy paste figures quickly instead of saving each one for quick/informal presentations, but I've run into trouble with EMF pictures in Powerpoint that I then share with Mac users. I've only found how to do it with the Export Graphics dialog, but I'd like to set the default in my startup macro so it happens automatically for each experiment (so I don't forget). Thanks!

No, you can't do that. But you could create a user-defined menu with items like "Copy as PNG" "Copy as EMF". These would invoke `SavePICT` with appropriate /E flag to choose the output type. Use "Clipboard" as the output filename to have it copied, not saved.

Save the procedure file with your menu definition to Igor Pro User Files:Igor Procedures to make it available to you anytime you run Igor.

Also note that the last settings of Export Graphics are preserved globally. So you can just set it once to your preferred file format. No need to have a script running which keeps resetting it. You would need to remember to change it every time you need a different format, though.