• 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: Script Starter Templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Starter Templates


  • Subject: Re: Script Starter Templates
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Wed, 23 Dec 2015 18:46:40 -0500

Hey, Chris,

> I have 4 libraries attached to all of my new scripts in Script Debugger, and these contain somewhere in the neighborhood of 150 handlers.

I tried SD libraries and I really wanted to like them.  The idea of being able to type "handler()" rather than "scriptLib's handler()" was a big attraction.  However some of the downsides I ran into were:

--	SD libs are compile time rather than run time.  Thus if you make a change to a handler, you have to remember to recompile everything that calls it.  I wrote a script to store the modification date of the library at compile time and check if it had changed at run time but it got really cumbersome.

--	It looked to me like SD libs loaded _after_ your own property declarations so you couldn't reference properties in the library at compile time

--	Properties in the SD libraries were invisible to handlers in the main script unless you declared them global in those handlers

--	I don't write code for a living so I don't have a huge library of handlers and tend to use the same few things over and over.  I can't imagine how you remember what 150 handlers do :)

> I also use this for ASOGS (all sorts of good s#$t).

What is ASOGS?




Steve
------------------
OS X 10.6.8, AppleScript 2.1.2


 _______________________________________________
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: Script Starter Templates
      • From: Christopher Stone <email@hidden>
References: 
 >Script Starter Templates (From: "S. J. Cunningham" <email@hidden>)
 >Re: Script Starter Templates (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Scriptable applications
  • Next by Date: Re: Script Starter Templates
  • Previous by thread: Re: Script Starter Templates
  • Next by thread: Re: Script Starter Templates
  • Index(es):
    • Date
    • Thread