Re: Include Scripts?
Re: Include Scripts?
- Subject: Re: Include Scripts?
- From: Cezary Okupski <email@hidden>
- Date: Sun, 19 Jul 2009 23:47:53 +0000
Yeah, "load script" is the solution.
http://developer.apple.com/documentation/applescript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_about_handlers.html#/
/apple_ref/doc/uid/TP40000983-CH206-SW12
However, I would like to add that I found this AppleScript module
creation method called XModules at http://homepage.mac.com/tkurita/scriptfactory/en/XModules/index.html
(the author might be reading this discussion list anyway ;)). I
didn't want to rewrite any of my scripts yet and didn't test it, but
you may have a look and see if XModules don't make things easier than
"load script".
I think you are looking for "load script". A quick google search
gave me
this page which think is fairly straight-forward in it's explanation
http://www.fromconcentratesoftware.com/2006/11/14/as-load-script/
The only thing that may not be obvious is that there is no need for
a System
Events tell block, as load script is a standard additions feature
and so can
be used in any context
rgds
// Richard
Frĺn: Frank Renner <email@hidden>
Datum: Sun, 19 Jul 2009 18:43:12 +0200
Till: applescript <email@hidden>
Ämne: Include Scripts?
Hi,
what, if any, is the easiest way to "include" a script that ist
finally tested and used by many other scripts from all these other
scripts?
What I want to do is use a database interface (that makes a SOAP
request to the database) and several "standard" conversion scripts in
a share of scripts in the Excel scripts folder, each of which will be
performing a single task and each of which will use the SOAP
interface. What I don't want to do is copy the interface into every
single script, so if I might have to change something later on, I
would have to change quite a lot of scripts.
Any hints where to go?
--
Best regards
Cezary Okupski _______________________________________________
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