Re: Applet's last command doesn't take
Re: Applet's last command doesn't take
- Subject: Re: Applet's last command doesn't take
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 24 Feb 2001 21:57:50 -0800
On 2/24/01 9:38 PM, "email@hidden" <email@hidden> wrote:
>
tell application "Finder"
>
set thisDesk to path to desktop as string
>
repeat with x in {"Color photos", "BW photos", "Project photos", "dummy"}
>
if not (exists folder (thisDesk & x)) then make new folder at alias
>
thisDesk with properties {name:x}
>
if not (exists window named x) then open folder (thisDesk & x)
>
if not (popup of window named x) then
>
activate
>
set popup of window named x to true
>
end if
>
end repeat
>
end tell
There is no 'named' property, but you can just say
window "Some Name"
Therefore
set popup of window named x to true -- bad
should be
set popup of window x to true
Also in all the lines higher up.
--
Paul Berkowitz