Re: inculding and reading from files
Re: inculding and reading from files
- Subject: Re: inculding and reading from files
- From: Jon Pugh <email@hidden>
- Date: Fri, 14 Jun 2002 23:36:18 -0700
At 10:57 PM +0200 6/14/02, Zimba wrote:
>
I was wondering how I can get a function close to include in order to load part of scripts... was wondering if it was possible under AS...
>
>
I found a way around by the command load script "url of the compiled script", but I can't find how to read from a file... does anyone got a tip
OK, actually the "load script" command can do what you seem to want. It reads compiled script files and loads them into the current script where you can then use them.
Here's an example:
property script1 : load script (alias "where:your:script:is")
tell script1
-- call some handler that is defined in the script
end
There are a number of other techniques you can use too, but I'll leave those for after you determine if this is an approach you want to use.
Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.