MACSCRPT Archives

December 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tetsuro KURITA <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sun, 20 Dec 2009 00:26:38 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
Could you consider to use "ModuleLoader".

http://homepage.mac.com/tkurita/scriptfactory/en/XModules/contents.html#ModuleLoader

ModuleLoader is an osax to load scripts as modules/libraries with resolving dependencies.

You can use "load module" command of ModuleLoader.osax as a better "load
script" command. The "load module" command hierarchaly searches a script
from predefiend locations with its base name. 

set a_script to load module "ScriptA"

Above command means loading "ScriptA", "ScriptA.scpt", "ScriptA.scptd" or
"ScriptA.app" under "~/Library/Scripts/Modules" or "/Library/Scripts/Modules".

You can add search locations to ModuleLoader.osax as follows.

set additional module paths to {"/your/location1", "/your/location2"}

I hope ModuleLoader.osax can remove any complications of "load script" command.

=======================================================
 Tetsuro KURITA
  E-mail: [log in to unmask]
  http://homepage.mac.com/tkurita/scriptfactory/en/
=======================================================


On 2009/12/15, at 5:11, Chris Harbinson wrote:

> Got the load script command working now.
>
> Took out all the things that could complicate matters, like the version number on the script name.
>
> Added the invisible file extension ... out of sight, out of mind.
>
> Tried it in the Applications folder... it worked; tried it in the Photoshop folder... it worked; Settings folder ... success again; Scripts folder ... happy days!
>
> But the next sub-folder was a folder too far.
>
> So in the Scripts folder it shall reside!
>
> Thanks again for your help
>
> Chris

ATOM RSS1 RSS2