Getting the name of saved graphics

Hi All,

I am building up on a general purpose lab tool. As part of the interface, I have the user save the image to a shared folder using the SavePict command with a path defined but no filestr. This forces a save dialog box and the user enters the name of their choice.

Good so far. Now I would like to also save an Igor wave of the image in a separate folder. The image is a 14 bit depth image and the stock png and jpg are only 8 bit. I want to have the full data for future data analysis. (I don't want to go towards tiff because the user is pasting the image into applications that do not necessarily handle tiff well).

Is there a way to capture the name they used i the save dialog box, so I can recycle it in the Igor savewave command?

Andy
hegedus wrote:
Is there a way to capture the name they used i the save dialog box, so I can recycle it in the Igor savewave command?
Andy


SavePICT does not provide you with the information on where the picture was saved. I have added this to the wish list.

You will need to display a Save File dialog first to get the path and then call SavePICT with the path returned by the Save File dialog. For details:

DisplayHelpTopic "Displaying a Save File Dialog"