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

Re: Script Objects


  • Subject: Re: Script Objects
  • From: Jon Pugh <email@hidden>
  • Date: Tue, 19 Jan 2010 08:12:10 -0800

At 9:53 AM -0500 1/19/10, Mark J. Reed wrote:
>On Tue, Jan 19, 2010 at 1:35 AM, Jon Pugh <email@hidden> wrote:
>> The issue is that "load script" isn't really simple.  Especially compared to Script Debugger's library support, which is simple, but not standard AppleScript.
>
>You mean there's no way to manage multiple *modules*.  Script objects
>are not modules.   Sure, "load script" lets you use them as sort of
>module-ish things, but that's not script objects' "core competency",
>as it were.  You can use lots of script objects, within a single file
>of code without ever calling "load script".
>
>So, yes, AppleScript's lack of module/library support is annoying, but
>it's not really anything to do with script objects qua script objects.

You can argue that, but it's not really true.

Having all of your source code (i.e. multiple script objects) in a single file is unwieldy and not reusable.  Therefore, you need some kind of modules.  The "load script" scripting addition is the only way of separating code in stock AppleScript.  It also only handles script files, which are script objects, so they're one and the same, despite other languages separating the two concepts.

In AppleScript, script objects are the only modules you get, so the lack of simplicity is a fundamental issue.  The distinction here, while technically accurate, is essentially moot.

Jon
 _______________________________________________
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 Objects (From: Luther Fuller <email@hidden>)
 >Re: Script Objects (From: Chris Page <email@hidden>)
 >Re: Script Objects (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Script Objects
  • Next by Date: Re: Script Objects
  • Previous by thread: Re: Script Objects
  • Next by thread: Re: Script Objects
  • Index(es):
    • Date
    • Thread