• 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: Grammar Police in OS X 10.11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grammar Police in OS X 10.11


  • Subject: Re: Grammar Police in OS X 10.11
  • From: Chris Page <email@hidden>
  • Date: Sun, 17 Jan 2016 07:19:27 -0800


On Jan 17, 2016, at 3:12 AM, Phil Stokes <email@hidden> wrote:

The particular case mentioned is easily solved as the compiler (or pre-compiler in my app’s case) can be taught to recognise that after a “tell application" there must be a closed, quoted string before a new line (application names don’t have new line characters in them). 

Yes, that's a good point, that an heuristic could help provide better error messages for certain cases; however, your assumption is not currently true, and an heuristic wouldn't apply generally. Application names can contain any valid filename, which includes line breaks (and fun things like the “delete” character). And I thought we were discussing detecting mismatched quotes generally, not just in the case of application specifiers for tell blocks.

I'm not sure an heuristic that only handles ‘tell application "…’ is going to be useful enough.

-- 
Chris Page
The other, other AppleScript Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: Grammar Police in OS X 10.11
      • From: Phil Stokes <email@hidden>
References: 
 >Re: Grammar Police in OS X 10.11 (From: Nigel Garvey <email@hidden>)
 >Re: Grammar Police in OS X 10.11 (From: Phil Stokes <email@hidden>)
 >Re: Grammar Police in OS X 10.11 (From: Chris Page <email@hidden>)
 >Re: Grammar Police in OS X 10.11 (From: Phil Stokes <email@hidden>)
 >Re: Grammar Police in OS X 10.11 (From: Chris Page <email@hidden>)
 >Re: Grammar Police in OS X 10.11 (From: Phil Stokes <email@hidden>)

  • Prev by Date: Re: Why Doesn't This Script.app Quit?
  • Next by Date: Re: Handlers in a variable
  • Previous by thread: Re: Grammar Police in OS X 10.11
  • Next by thread: Re: Grammar Police in OS X 10.11
  • Index(es):
    • Date
    • Thread