Thanks for your help. Here are the details:
We have three page designs, one designed for a page without photos, one for a page with one photo and the last design for a page with two photos.
Once we find the records we are looking for, the script is supposed to go through each record, see if it has photos, see how many, and print the page layout that is appropriate for the number of photos. It should print on the fancy color printer. (Usually the computers are set up to print on the black and white one.) Here is the script. I had to retype it. Sorry but I couldn't tab.
Go to Record/Request/Page
[First]
Loop
If [isEmpty(Project Photo 1)]
Go to Layout [Profile-X]
Page Setup
[Restore setup options, No dialog]
Print
[No dialog]
Else
If[isEmpty(Project Photo 2)]
Go to Layout [Profile-1]
Print
[No Dialog]
Else
Go to Layout [Profile-2]
Print
[No Dialog]
End if
End If
Go to Record/Request/Page
[Next, Exit after last]
End Loop
Go to Layout [original layout]