Igor preview generator for OS X

Downloaded 1263 times
Average rating
(1 vote)
Preview viewer window

This project will automatically create a preview of a saved Igor experiment by compiling its available windows into a notebook and saving the notebook in a central location and keep track of them with a UUID that matches a generated UUID string stored in the experiment.

The script will list the pxp files in the specified folder (instead of the notebook previews), and when you select one it will access the UUID stored in the pxp and match it to the appropriate preview file (or display "No Preview Available" if a preview has not yet been generated).

Furthermore, if you double-click the file in the preview panel then Igor will open it (or if you hold the Option key while doing this then Igor will reveal that experiment file in the Finder).

In addition, I've included a hook to generate the UUID and a preview for each experiment when it is saved (and tucked the notebook generation into the background), so this will be done automatically for any newly saved experiments and users will only see Igor take a split second longer to save when they press Command-S.

Lastly, the File menu that shows the preview browser panel by default, but if you hold the Option key then the menu entry will switch to "Generate Preview," which will create a UUID (only if one does not currently exist) and corresponding preview notebook file for the current experiment. Holding the Option key will also reveal a "Check Previews" option in the File menu, that will scan the current preview files and list any for which the preview does not have an accurate record of the corresponding experiment file location, allowing you to remove or update them accordingly.

Unfortunately some of these modifications tap into the OS X BSD layer via Igor's "ExecuteScriptText" command to run "do shell script" and execute the CLI tools "uuidgen" and "open." If there are equivalents in Windows then this can be used for Windows machines as well, but as it is, because of these requirements it's limited to OS X.

Pardon any funky programming approaches, but it should work nicely (at least for OS X users). I'm currently running OS X 10.8, but I believe the uuidgen and open commands are present in all versions of OS X supported with Igor 6. I've only tested this in Igor 6.3, but I expect it will work in recent older versions as well.

This project is an adaptation of the Experiment Preview project by jtigor, which largely uses the code from that project but reworks it to centralize the previews and offer direct file opening support from the panel, which I have not found to be available in the Windows version of Igor.

Releases

Official releasesDateSizeLinksStatus


Back to top