Usually the BatchMode option '2' does similar, as the IMDB id is part of the URL. Still this won't work if you use URL field for local storage path or something.
to make the script build the IMDB URL from the IMDB ID instead of reading the URL from URL field, just change YourCustomFieldTag to what you named your customfield and set BatchMode option to '2' then. This isn't the most elegant solution, but it's easy to add whenever the script might be updated in future.
There is no compiler, the scripts are executed by AMC.
As manual, you can check tutorials for Pascal or Delphi, as the language is similar. Additional functions are detailed in the Help of AMC.
How can i display the value of field for debug a program
Whit Showmessage i can show a fixed field f.e. 'hello' but i don't know how can i display the value of variable. f.e. the name of the movie MovieName.
Is very important for me because i can debug ando follow the program.
I am trying to edit a script so that I can get the description and comments info from FilmAffinity and set it to some custom fields I have created. I created the two custom fields with tags sinopsis_es and critica_es, and the only 2 lines that I've modified in the script are:
Hi everyone, first of all, thanks a lot for this wonderful software. I have been using it for ages and it's great.
Today I have been looking at the brilliant imdb script to fit my need; I would like a real batch mode that would ignore all the errors like read timeout, 404 page not found and such. So basically, I can leave it running overnight and not to wake up to find that it stopped with a message box after parsing 4 movies
All these errors are originated from GetPage() call; so basically I am looking for any kind of throw exception method.
Thanks again guys; I have already made some major improvement on the existing script that I am hoping to share with the community.
Indeed, it could be useful for batch-processing.
The only thing to check is that the function return then an empty content and not random things or the previous data (for example).
Making one more version of the functions would be a little too much I guess, there are already many.