Re: True Optional Handler Parameters (Positional)
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.