• 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: Yvan KOENIG <email@hidden>
  • Date: Thu, 24 Dec 2015 15:00:25 +0100

> Le 2015/12/24 à 13:47, S. J. Cunningham <email@hidden> a écrit :
>
>
> 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
>

Hello Steve

Since the introduction of Libraries in 10.9, the official storage location is :
/Library/Script Libraries/ if you wish they are usable from every user account
~/Library/Script Libraries/ if you wish they are usable from a specific user account.

If you embed them in a script bundle, the standard location is :
theScript.scptd/Contents/Resources/Script Libraries/


Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) jeudi 24 décembre 2015 15:00:19


 _______________________________________________
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


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

  • Prev by Date: Re: Script Starter Templates
  • Next by Date: Re: creating your own commands
  • Previous by thread: Re: Script Starter Templates
  • Next by thread: Re: Script Starter Templates
  • Index(es):
    • Date
    • Thread