I am developing a interactive projection project of mine. The project need a application that is basically able to open random images from a specific folder in Preview. And with a trigger of pushing down keys N+M. The image windows start to minimize themselves to dock in turn. Then it close by itself. At the same time, there is new image from the folder opening. The amount of image windows keeps at 10. I researched some Applescript. I think it might be the right language to use. And I did a simple Applescript that is able to open a random image from a folder(See attachment [url removed, login to view]). And more specific descriptions see Descriptions.pdf. Thank you!