• 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: including source code <Jim Brandt>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: including source code
  • Next by Date: adding a new rule to Mail
  • Previous by thread: Re: including source code
  • Next by thread: adding a new rule to Mail
  • Index(es):
    • Date
    • Thread