Re: Two things I noticed in a simple Finder script
Re: Two things I noticed in a simple Finder script
- Subject: Re: Two things I noticed in a simple Finder script
- From: Nigel Garvey <email@hidden>
- Date: Sun, 3 Jun 2001 11:50:22 +0100
Jan Pieter Kunst wrote on Sat, 02 Jun 2001 17:47:01 +0200:
>
Another thing I noticed is that if there are no windows open, I can't use
>
Applescript to check if a certain window is open without getting into some
>
infinite loop. In other words, this:
>
>
>
set x to container window of folder ...
>
set y to container windows -- gives {} if there are no open windows
>
if y contains x then ... -- script gets stuck in an infinite loop if y = {}
set x to container window of folder ...
if x exists then ...
NG