Re: Script Objects
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