• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: info for file help...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >info for file help... (From: "Robert Seckendorf" <email@hidden>)

  • Prev by Date: Re: Newbie FaceSpan/Applescript question
  • Next by Date: Re: Excel last cell
  • Previous by thread: info for file help...
  • Next by thread: Re: info for file help...
  • Index(es):
    • Date
    • Thread