the ipad pro has a different screen resolution than the other iPads, so you could add a detection for get(screenwidth) = 2048 or get(screenwidth) = 2732 [landscape or portrait of course]
If you do that inside of your "if running on iOS devices" if statement, then you should be able to detect for the pro, vs. other iPads and iPhones.
the measurements might return different numbers, best way is to test it out on an iPad pro to see what those functions return.
Mike, Thank you for your suggestion. I'm not sure why I can't get the script to work. I must not be entering it in properly. I am trying to learn script as quickly as I can.
Could you possible help me place this in there correctly?
wrap line 23 in another if statement, put the current line 23 in an else statement.
In between the new if/else steps, put a go to layout for whatever your iPad Pro layout is.
In the new if statement, write:
get(screenwidth) = 2048 or get(screenwidth) = 2732
that should be all.