Re: info for file help...
Re: info for file help...
- Subject: Re: info for file help...
- From: Ted Wood <email@hidden>
- Date: Wed, 13 Dec 2000 17:11:17 -0800
Does anyone know how to capture all the properties of the results variable
(record) so they can be parsed into individual variables. I have tried to
copy the value of results into a new variable, but I can't gain access to
more than one value in the record without getting weird errors.
thanks!
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users
Hi Robert,
If the class of the result is 'record' as you say, then you can
coerce all values to a list, using:
the result as list
and then you can loop through the list, assigned the values to
individual variables,
but you need to know the names of the properties in order to call
them from a record.
If you have a rough idea of the property names, enclose your
statements in a try block to ensure smooth running of your script.
Ted.