• 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: Thu, 24 Dec 2015 07:47:15 -0500

On Dec 23, 2015, at 7:43 PM, Stan Cleveland wrote:

>> On Dec 23, 2015, at 03:46 PM, S. J. Cunningham <email@hidden> wrote:
>>
>> 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.
>
> Hi Steve,
>
> Think about it. That’s the very reason for libraries—to reuse code. Fifty scripts, all of which contain the same handler, will be a nightmare to fix, if/when that handler needs to be modified. One library, called by fifty scripts, will be cinch to fix.

You're right, of course.  I think I'll move the handlers from my template into a run-time library.  That means I'll have to find some way to keep the script relocatable, however.  I don't see an easy way to do that.  If I include the library in the folder with the script, I'm back to changing multiple copies of the included handlers.  I guess if I store the library in /Library/MyScriptLibrary or some such I'd only have a copy per machine to change.

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

  • Prev by Date: creating your own commands
  • 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