Re: Grammar Police in OS X 10.11
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