I'm trying to build an if statement in AppleScriptObjC that checks whether the title of a window matches a certain string, but I'm not sure of the correct syntax.
For example:
theWindow's setTitle_("testing")
if theWindow's title = "testing" then
do some stuff
else
do some other stuff
end if
That's obviously not the correct syntax but hopefully it demonstrates what I'm after. Thanks for your help!