Re: Labeled parameters -- with boolean not defined
Re: Labeled parameters -- with boolean not defined
- Subject: Re: Labeled parameters -- with boolean not defined
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 28 Jan 2004 03:15:14 -0800
to ExploreCaves for aReason with spelunking
if spelunking then -- Error: the variable spelunking is not defined.
end if
end to
Oops, I meant 'end ExploreCaves' (I was retyping from other machine
and messed up. Please don't fire me, hehe.)
Hmm... this seems to work:
tell me to ExploreCaves for "fun" with spelunking
tell me to ExploreCaves for "fun" without spelunking
to ExploreCaves for aReason with spelunking
local spelunking
if spelunking then
display dialog "Get muddy."
else
display dialog "Stay dry."
end if
end ExploreCaves
I guess variable declaration isn't always optional...
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.