• 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: "a reference to"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "a reference to"


  • Subject: Re: "a reference to"
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 21 Jan 2008 12:42:33 -0800

On Jan 19, 2008, at 2:45 AM, Brennan wrote:

Ever since I learned a little LISP, I usually put parentheses around
expressions in AppleScript, especially those which contain spaces.

As a result I almost never have problems with a missing 'get'. If it does
happen, it can almost always be resolved with adding more carefully placed
parentheses, such as;


set dr to (display dialog (name of (info for (choose file))))

I have no clue which of those parentheses are strictly necessary, but I
find the code easier to read, easier to debug, and, because I am
constantly reminded which terminology belongs together, easier to edit.

My version of that trick is to change the AppleScript formatting styles so that "application keywords" are underlined. The space gets underlined, too, so you can see which words go together.



--Chris Nebel AppleScript Engineering

_______________________________________________
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
References: 
 >Re: "a reference to" (From: Brennan <email@hidden>)

  • Prev by Date: Re: How to parse CSV
  • Next by Date: Re: Can't get finder selection
  • Previous by thread: Re: "a reference to"
  • Next by thread: Re: "a reference to"
  • Index(es):
    • Date
    • Thread