Re: Coercion of list to record
Re: Coercion of list to record
- Subject: Re: Coercion of list to record
- From: Kurt Klamp <email@hidden>
- Date: Thu, 7 Feb 2008 17:55:33 +0100
Am 07.02.2008 um 16:58 schrieb Kurt Klamp:
And to serve the OP with another solution:
(takes use of the satimage.osax)
Sorry, must be XMLLiib.osax by satimage-software
on makerecord(thelist)
set p to PlistNew
set p1 to PlistNewChild at p key "dummy"
repeat with i from 1 to (count thelist) step 2
PlistNewChild (item i+1 of thelist) at p1 key (item i of thelist)
end
set r to PlistGet p1
PlistClose p -- to free memory
return r
end
--Kurt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden