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

Re: including source code


  • Subject: Re: including source code
  • From: Emmanuel Levy <email@hidden>
  • Date: Sat, 21 Feb 2009 12:00:33 +0100

At 2:22 PM -0600 2/20/09, Jim Brandt wrote:
OK, so I've been writing scripts off and on (more off than on) for
maybe ten years now. While I first explored AS under OS9, I jumped
to OneClick because I found it more consistant back then. When OSX
became the OS of choice, I was forced to redo everything in AS.
The road has been challanging, but enlightening.

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?

Actually, your computer's RAM is full of hundreds of MB that you may not need, yet it's simpler to let them there.


Would I be better off loading each handler as a seperate piece of code?

I wouldn't do that without a good reason.

Emmanuel
_______________________________________________
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: 
 >including source code (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Mount AFP if Not already?
  • Next by Date: Re: Numbers '09 and AppleScript
  • Previous by thread: including source code
  • Next by thread: Re: including source code
  • Index(es):
    • Date
    • Thread