Re: timing scripts [Re: Timers in AppleScript?]
Re: timing scripts [Re: Timers in AppleScript?]
- Subject: Re: timing scripts [Re: Timers in AppleScript?]
- From: has <email@hidden>
- Date: Thu, 18 Jul 2002 15:02:23 +0100
Scott Norton wrote:
>
> > set currentTime to GetMilliSec
[...]
>
In an osax terminology, its perfectly acceptable to use terms that have
>
spaces.
>
This approach is very helpful at making the resulting scripts more
>
readable, and
>
makes it very hard to have a name collision.
Out of interest, if an osax command begins with a word that has existing
meaning, how does the AS compiler handle that? e.g. If I wrote an osax that
had the command "log special", will the parser recognise that as the 'log'
command followed by some unknown keyword or variable 'special', or is it
"greedy" in that it'll recognise the two-word command over the one-word
one? [I hope that makes sense.] I know this is kinda playing Devil's
Advocate here, and it's not an issue that affects me directly (not for now,
anyway), but perhaps some of the problem is with osax/app authors not
knowing what is/isn't a safe way to phrase commands.
>
My "Finger of Death" addition has as its verb, "give the finger of death".
Hey, any addition that has the command "give the finger of death"
[ker-ZAP!] is an instant winner in my book.<g>
>
Oddly, BBEdit 6.1 has (normally capitalized) "search results browser" as an
>
class, but also has "Compare Filtering Options" and
>
"perl_references_window" as
>
classes. Class "Compare Options" has properties like "ignore leading spaces"
>
and "check Projector status", but class "Compare Filtering Options" goes with
>
the style, "compare_filter_enabled"
>
>
(Nothing against BBEdit, which is my favorite editor. I just needed something
>
with a large ApplesScript dictionary for an example.)
>
>
But I suspect that most of
>
the time, the developers don't think in terms of AppleScript's English-like
>
syntax.
I think you've hit the nail on the head here: for "real" programmers, the
AS syntax is an entirely foreign concept. However, they need to remember
that their intended audience isn't themselves, it's dopes like us who
actually _prefer_ and _expect_ that sort of thing.
>
(Which I like, even though I get "COBOL fingers" typing so much. It
>
makes my programs much more readable, when used correctly)
Absolutely. (BTW, the mental image of "COBOL fingers" kinda makes me giggle
- it looks like you're typing with large cumberland sausages for hands.<g>
Yep, if ever there was a better potential market for autocomplete features
than us lot, I can't think what it is...)
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.