• 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: Getting label from a record (solution)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting label from a record (solution)


  • Subject: Re: Getting label from a record (solution)
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 18 Nov 2003 11:53:41 -0800

Not to dampen your spirits, since some of you seem to having a lot of fun with this (for some definition of "fun"), but when AppleScript doesn't provide a straightforward way to do something, you should consider an alternate technique, if possible.

In this case, think about why you need to get the labels of a record. Is it absolutely necessary to start with a record? If the answer is "yes", because, say, you're getting it from somewhere else that you don't control, then you're more or less stuck for it. If the answer is "no", however, then consider an alternate data structure -- say, a list where the odd values are the labels (as strings) and the even ones are the data.

It's possible, of course, that any alternate technique will involve even more code than the stuff people have been coming up with here, but it's something to think about.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: Getting label from a record (solution) (From: Arthur Knapp <email@hidden>)

  • Prev by Date: Re: Save opend file as eps in Illustrator...
  • Next by Date: Re: Inconsistent results from Finder and System Events
  • Previous by thread: Re: Getting label from a record (solution)
  • Next by thread: Re: Getting label from a record (solution)
  • Index(es):
    • Date
    • Thread