• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Labeled parameters -- with boolean not defined
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Labeled parameters -- with boolean not defined
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Labeled parameters -- with boolean not defined
  • Next by Date: Re: applescript and browsers
  • Previous by thread: Labeled parameters -- with boolean not defined
  • Next by thread: Re: Labeled parameters -- with boolean not defined
  • Index(es):
    • Date
    • Thread