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

Re: Writing large scripts


  • Subject: Re: Writing large scripts
  • From: Greg Strange <email@hidden>
  • Date: Wed, 09 May 2001 15:19:14 -0500

on 5/9/01 11:13 AM, Jan Erik Mostrvm at email@hidden wrote:

> I would like to ask those of you who write large programs, how do you organize
> your code?
>
> I mean: there is no problem creating a small script, but when I reach a
> certain
> limit it gets cumbersome to have everything in one file.
>
> In a language like C, C++, Java, Pascal, Modula-2 etc I can divide the code
> into
> a number of files and compile each file by itself. Using applescript I can
> write
> a number of scripts and put them into separate files, so far so good. I can
> also
> write "classes" which is nice ... but how do you distribute the finished code?
>
> In those languages above I link together the separate "files" into an
> executable
> file, but what can I do in AppleScript?

I would look at using the load script command. I'm not sure exactly what
you need form the "base" script but load script works wonders for a lot of
stuff that I do.

Greg Strange
--
Gather ye rosebuds while ye may,
Old Time is still a-flying,
And this fair bud that blooms today,
Tomorrow will be dying.


  • Prev by Date: Re: URL SCRIPT ERROR CODE
  • Next by Date: Re: applescript-users digest, Vol 2 #661 - 15 msgs
  • Previous by thread: Re: Newbie question
  • Next by thread: Re: Writing large scripts
  • Index(es):
    • Date
    • Thread