Re: including source code <Jim Brandt>
Re: including source code <Jim Brandt>
- Subject: Re: including source code <Jim Brandt>
- From: email@hidden
- Date: Sat, 21 Feb 2009 10:56:08 -0700
On Feb 21, 2009, at 8:40 AM, Jim Brandt wrote:
My question has to do with reusable code. Currently I have a half
dozen
handlers that I keep in a single file and load using a "load script"
command. However, this means I load a fair amount of source code
that I may not need for the particular script I'm writing, in order to
get a single function that I do need. Is there a better way to do
this?
Would I be better off loading each handler as a seperate piece of
code?
Is there another option?
Depending on how much code you are talking about, another way to go is
similar to what Apple uses for some of their sample code. I use
insertion
wrappers around various handlers, and place them into the Scripts Menu.
Clicking on the menu item inserts the handler code at the desired place.
_______________________________________________
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