Open/T with multiple file types
DRDana
Consider Open/D/R/T=".txt.bin". What I would expect is that all the .txt and .bin files will be selectable when the file dialog first opens. On Mac, the dialog does open with the "All Readable Files" option selected, but in fact none of the files are enabled, regardless of type or extension. In order to enable any files I have to select one specific type. On windows it opens with files of the first listed type enabled, but I still can only enable files of one type at a time. Is there a way to make All Readable Files actually show all readable files?
I'm running 6.05A on Mac, 6.04 on XP. I see from the 6.1 release notes that there have been some improvements to Open, but I can't tell if this is one of them. Maybe my next step should be to upgrade.
Cheers,
David
In Igor Pro 6.1, there is no "All Readable Files" menu item, just ".txt Files", ".pxp Files" and "All Documents".
In Igor Pro 6.1 you can use the new /F flag, like this:
String fileFilters = "My Files (*.txt,*.pxp):.txt,.pxp;"
fileFilters += "All Files:.*;"
Open /D/R/F=fileFilters refNum
Print S_fileName
End
For details, in Igor Pro 6.1, execute this:
DisplayHelpTopic "Open File Dialog File Filters"
July 22, 2009 at 10:56 pm - Permalink