Running a script from another script

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
manolo7
Posts: 7
Joined: 2009-06-18 10:29:45

Running a script from another script

Post by manolo7 »

It is possible to run a script from another script?

I use the IMDb script only, but with some modifications. The script have some changes from time to time and I have to update it every time. So I'm looking for a way to avoid this. Running the IMDb script unmodified and making my own modifications on the AMC fields after seems to be a solution. It is possible to run a script from another script?
antp
Site Admin
Posts: 9652
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Something to try, not sure if it will fully work:
You can rename/copy imdb.ifs to imdb.pas, and remplace "program imdb" by "unit imdb" in the beginning of the file.
Then in your own script you can all the functions of IMDB script like AnalyseMoviePage etc. by adding "uses imdb;" at the beginning (like imdb and other scripts use stringutils1 unit).
So you just have to rewrite the part between the begin/end and the bottom of the script.
But you'll also have to redefine in your script the options used by IMDB script.
manolo7
Posts: 7
Joined: 2009-06-18 10:29:45

Post by manolo7 »

Thanks antp, I will try this, even if I wanted to use the original IMDb script without modifications. In the last days IMDb has made several changes that directly affect the script, so it's a good time for testing.
Post Reply