Condition when more than one window of the app is open

Hi there,

I want a macro in the Preview App to only run the "Merge All Windows" command when more than one window is open in the Preview App. How can I express this condition?

Thanks for any help

You need to test to see if the merge command is available like this:

KM 0 2022-02-08_11-39-07

2 Likes

Hi,

that works perfect. Thanks buddy :+1:t3:

1 Like

Thank you!

I was doing this a similar way but it was looking for Window > Merge All Windows which made it work 1/2 the time. I did it this way, and I haven't had an issue at all.

1 Like