I have a script that goes as follows
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
set getwin to (list windows)
if getwin is <font color = red>"windowcheckfail"</font> then
display dialog <font color = red>"You must have a web site loaded to use this application."</font> with icon note default button <font color = red>" OK "</font> buttons <font color = red>" OK "</font>
end if
</font>[/code]
Now if no windows are open, then getwin is nothing:
And here is the result
Now I want it to bring up an error when the result is nothing... but what exactly is nothing?
if getwin is "" didn't work for me... any ideas?