RE: standards for applescript
RE: standards for applescript
- Subject: RE: standards for applescript
- From: email@hidden
- Date: Tue, 5 Mar 2002 03:53:46 EST
>
I would like to know if there is any
>
standards/guidelines for writing applescript.
>
If so where could i find it.
Annie,
There are AppleScript guidebooks available online (via apple) that will
explain various commands and how to construct valid ones. Good places to
start are:
(references to AppleScript references:)
http://www.apple.com/applescript/
and
(AppleScript guidebook modules:)
http://www.apple.com/applescript/help_mods.html
Additionally, there are a host of AppleScript (AS) web sites designed to help
you as your programming skills advance. See, among others:
http://www.AppleScriptSourcebook.com/ and
http://www.macscripter.net/
And there are also a host of paper-based books available through various book
sellers to assist you in getting started and I would highly recommend getting
at least one good one as a beginner. See:
www.fatbrain.com OR
www.amazon.com
As for guidelines to the formatting of your coding efforts itself (in terms
of anything beyond the command structures, such as commenting, formatting
beyond what the scripting editor will automatically do, et cetera) is a
matter of personal preference -- and is often debated on this list. As you
become more advanced, issues such as which forms of invoking a series of
commands will execute the fastest becomes an issue (especially in
oft-repeated loops), as well as whether the code would be well suited for a
handler (called a subroutine or a function in most programming languages), so
that it can be reused for other coding projects. Furthermore, if you write
for commercial purposes for internal or external customers, the degree of
commenting and consistency of commenting becomes important (including
indirect comments in the form of variable naming and handler naming).
BUT (and this is a big butt), there is no specific 'standard' beyond that
which works. Beauty is in the eye of the beholder :)
Best Wishes,
=-= Marc
_______________________________________________
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.