Re: timing scripts [Re: Timers in AppleScript?]
Re: timing scripts [Re: Timers in AppleScript?]
- Subject: Re: timing scripts [Re: Timers in AppleScript?]
- From: email@hidden
- Date: Wed, 17 Jul 2002 21:08:45 -0400
On Mon, 15 Jul 2002 20:12:28 +0100, has <email@hidden> asked,
>
> set currentTime to GetMilliSec
>
>
Hrmm... is this naming style becoming habit amongst osax authors? I really
>
hope not: using compound names like these for osax [or application] calls
>
is likely to increase the number of keyword-variable name collisions in
>
user's scripts. As if AppleScript's ghastly keyword swamp isn't treacherous
>
enough already. >:(
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.
My "Finger of Death" addition has as its verb, "give the finger of death". My
"Look" addition has the predicate "next to application"
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.)
There may be some cases where an AppleScript dictionary is automatically
generated, for example with Java, and the terms may be limited by the other
language's rules for variable and function names. But I suspect that most of
the time, the developers don't think in terms of AppleScript's English-like
syntax. (Which I like, even though I get "COBOL fingers" typing so much. It
makes my programs much more readable, when used correctly)
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden
_______________________________________________
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.