I have an app in XCode with a window that shows when it starts up if the app is unpaid for. If it is paid for, that window never pops up. If the app is unpaid for I want the app to do something. So basically, if that window is there, then i want it to do something. How can i see if a window is visible in Applescript? i tried:
tell "MainMenu.nib"
if visible of window "Unregistered!" = true then
-- do this
end if
end tell
but it gets an error… any help?