• 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: True Optional Handler Parameters (Positional)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: True Optional Handler Parameters (Positional)


  • Subject: Re: True Optional Handler Parameters (Positional)
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 22 Feb 2004 19:31:04 -0700

On Feb 22, 2004, at 7:09 PM, Michael Terry wrote:

As you can see in the text you quoted, I passed a list[1], but you can access only the first item passed. I could've spent more time explaining exactly what I was getting at, but there's a size limit on messages to the list.

No, you passed three arguments. Lists are enclosed in curly brackets, not in parentheses.

Since the handler specifies only one argument, the additional arguments you passed are ignored.

so when you write

showArgs ("jello", "brand", "gelatin")

and the handler is

on showArgs(args)
display dialog "args"
repeat with i in args
display dialog i
end repeat
end showArgs

args is "jello"; it is not {"jello", "brand", "gelatin"}

-- Michelle

--
Chastity always takes its toll. In some it produces pimples; in others, sex laws. -- Karl Kraus
_______________________________________________
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.
References: 
 >Re: True Optional Handler Parameters (Positional) (From: Paul Berkowitz <email@hidden>)
 >Re: True Optional Handler Parameters (Positional) (From: Michael Terry <email@hidden>)

  • Prev by Date: Re: ehsan?
  • Next by Date: Re: constructing file name
  • Previous by thread: Re: True Optional Handler Parameters (Positional)
  • Next by thread: Re: True Optional Handler Parameters (Positional)
  • Index(es):
    • Date
    • Thread