Re: How am I doing? (Script requires 24U Appearance OSAX)
Re: How am I doing? (Script requires 24U Appearance OSAX)
- Subject: Re: How am I doing? (Script requires 24U Appearance OSAX)
- From: has <email@hidden>
- Date: Wed, 25 Sep 2002 18:27:49 +0100
Brennan wrote:
>
This can be boiled down to...
>
>
set theFields to {}
>
repeat with i from 1 to 8
>
set iname to ((item i of newList) as string)
>
set selState to (item i of checkList)
>
set theFields to theFields & {kind:check box, name:iname, selected:selState}
>
end repeat
Didn't read the rest of this post, but the concatenation above stood out as
being one of those semantic errors it's all too easy to make with AS lists.
To fix it, change it to:
set theFields to theFields & {{kind:check box, name:iname,
selected:selState}}
or (better):
set theFields's end to {kind:check box, name:iname, selected:selState}
HTH
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.