Re: Do I need a newer version of Applescript (was Re: interesting discovery)
Re: Do I need a newer version of Applescript (was Re: interesting discovery)
- Subject: Re: Do I need a newer version of Applescript (was Re: interesting discovery)
- From: Brian Johnson <email@hidden>
- Date: Fri, 7 Dec 2001 13:15:25 -0800 (PST)
I have the same need, and routinely do this with
set x to path to me as text
set oldones to AppleScript's text item delimiters
set AppleScript's text item delimiters to ":"
set x to text items 1 through -2 of x
set sys_root to (x as string) & ":"
set AppleScript's text item delimiters to oldones
set x to sys_root & "script.helpers"
set helpers to load script file x
then, later on, you use them with
tell helpers to do_something()
Mind you, *I'm* still using 1.5.5 too, so I can't tell you if this works
under 1.7 or not.
Brian Johnson, Dept of Architecture, University of Washington, Seattle
>
On 7/12/01 4:26 PM +1000, email@hidden, email@hidden, wrote:
>
>
> For me, it is a big one - every one of my CGIs depend on it to load a script
>
> library which I conveniently place in the same folder with the CGI. It appears
>
> that I am STILL stuck at AS1.5.5 for production work.