As we were adding Image Collections to Eggplant 4.0 we looked at whether it made sense to have WaitForAll behave differently for collections (and do an All rather than an Any when a folder was referenced).
Because the purpose of Image Collections is to allow for the easy addition of multiple image states we chose to keep the “Any” for Image Collections (even within the WaitForAll command).
However sometimes you might want to have a folder that you use as an ALL collection. That can be accomplished with this script, WaitForAllCollection, you can use it just like WaitForAll with an initial timing parameter and then image or image folder
It illustrates a few things from 4.0:
[list]It uses ImageInfo(FolderName) to get all ImageInfo for a folder using collections
It uses the new 4.0 “PROPERTY of each item of” syntax.
It also is a good illustration of making your own “Eggplant Command” using the primitives we provide.
(* WaitForAllFolder -- Waits for all images in the folder *) params timeToWait, FolderName insert timeToWait before images insert "ImagePath" of each item of imageInfo(FolderName) after images waitForAll images as parameters