• 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: Records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Records


  • Subject: Re: Records
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 3 Nov 2005 14:15:59 -0800

On Nov 3, 2005, at 12:55 PM, Luther Fuller wrote:

Vertical bars are used to prevent names from being interpreted as dictionary terms; useful if you have a variable whose name is the same as an item in some application's dictionary, for instance. So I guess the point of using them in a record property name is to avoid having a record property be compiled one way where set and a different way where queried later. Which doesn't explain why the compiler is stripping them.

I have since found that vertical bars are not always stripped. I just haven't yet found which context strips and which does not. What I really need is a reference to a document that explains this.

That would be the AppleScript Language Guide, except that it doesn't explain this particular wrinkle. The short version is that if the identifier consists entirely of lowercase letters, numbers, and underscores, *and* it doesn't match any application- or AppleScript- defined terminology (such as "file"), then the bars will be discarded. Long version, including why it works that way, available on request, but it's not really useful.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Records
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Records (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Records
  • Next by Date: Re: AS, wIP and 10.4.3: nothing's changed...
  • Previous by thread: Re: Records
  • Next by thread: Re: Records
  • Index(es):
    • Date
    • Thread