Sender: |
|
Date: |
Sun, 20 Dec 2009 00:26:38 +0900 |
MIME-version: |
1.0 |
Reply-To: |
|
Content-type: |
text/plain; charset=US-ASCII |
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-transfer-encoding: |
7BIT |
Parts/Attachments: |
|
|
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
|
|
|