Re: Fwd: How the heck do you get records to work?
Re: Fwd: How the heck do you get records to work?
- Subject: Re: Fwd: How the heck do you get records to work?
- From: Nigel Garvey <email@hidden>
- Date: Fri, 23 Jan 2004 14:13:12 +0000
I wrote on Fri, 23 Jan 2004 10:01:14 +0000:
>
Also - I don't know if this can still be done in Panther - there's a bug
>
in the clipboard commands that can be exploited. :-) This is obviously
>
not recommended:
>
>
set foo to {one:"1", two:"2"}
>
set bar to "two"
>
>
set the clipboard to foo
>
set fool to the clipboard
>
>
repeat with i from 1 to (count fool) by 2
>
if item i of fool is bar then
>
set baz to item (i + 1) of fool
>
exit repeat
>
end if
>
end repeat
>
baz --> "1"
Thanks to Chris Stone for discreetly pointing out to me off-list that the
result of this script is in fact (and should be) "2".
NG
_______________________________________________
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.