Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

Hide All Open Images
Function
Hides all the currently open images.
Version
version:20030209, v2.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments
This is included in the DisplayTools suite of tools.
System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code

// Script to hide all open images

// D. R. G. Mitchell, adminnospam@dmscripting.com (remove the nospam to make this email address work)

// version:20030209

// v2.0, Feb 2003

 

number counter, i=0

 

imagedocument current

counter=countimagedocuments()

 

while(i<counter)

{

try

{

current =getimagedocument(0)

imagedocumenthide(current)

i=i+1

}

 

catch

{

exit(0)

}

}