lost all the scripts, even when called from Tools/Scripting

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
RobH
Posts: 13
Joined: 2012-12-07 10:51:08

lost all the scripts, even when called from Tools/Scripting

Post by RobH »

Suddenly when I make a New movie entry, after 978 entries where the IMDB script worked fine, automatically, to populate all the data fields, now nothing happens.

Going to Tools/Scripting produces a window, but it's empty. Putting in a IMDB URL in the Movie/URL field does nothing.

I do have a backup of my AMC.AMC database, so my thought is to uninstall then re-install the program, then it MAY pick up the AMC file or if not I can somehow point the program to the AMC file.

I do also have what seems to be an intact scripts installation, where the Scripts folder is full of files:

Volume in drive C:\ is BOOT
Directory of C:\ProgramData\Ant Movie Catalog\

. <DIR>
.. <DIR>
Scripts <DIR>
Templates <DIR>

AMCReport.ini
Codecs.ini
default.xml
prefs.xml
scripts.ini


5 file(s)
Total filesize 294 KB
4 folder(s)

So what should I do? Re-install the program?
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,
That is weird that is suddenly changed.
One possibility would be if you changed UAC settings in Windows and that you had an old installation in addition of the "modern" one with the data in ProgramData (as you showed, you normally have a modern clean install).
One thing to check is if AMC really uses that folder C:\ProgramData\Ant Movie Catalog\
If you start and then close the program, is the time of prefs.xml updated to current time?
If not, is there a prefs.xml where AMC is installed, e.g. somewhere in c:\Program files\... ?
RobH
Posts: 13
Joined: 2012-12-07 10:51:08

Post by RobH »

OK, good, that was a good strategy. No. the timestamp on prefs.xml on my C drive didn't change. BUT, there's a different install folder on my Media drive E, E:\burn\Ant Movie Catalog where the timestamp on prefs.xml did update after closing the program. So that is the problem - AMC is looking on C but the juicy bits are on E in the old install folder. I always start the program from a desktop shortcut to the AMC.AMC db, which points to C:\Users\Rob\Documents\Catalogs It is the only AMC.AMC file on any of my drives/partitions.

I think this resulted from putting in a new SSD C boot drive with all new program installs from backup installers. What would you do, re-install? Or is there a way to Point the program to look at the E including the prefs.xml ?
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

So when you open the .amc file it opens it with the install that is in E: instead of the one in C:\program files ?

The version in E: is probably working in "portable" mode, i.e. with all the files in the same folder (program, settings, scripts, etc.)
So if you wish to use that version in E:, the scripts must be in E:\burn\Ant Movie Catalog\Scripts.
Alternatively, if you wish to open the .amc files with the version that is on C:, either change the shortcut to point to that one, e.g.
"c:\program files\ant movie catalog\moviecatalog.exe" "C:\Users\Rob\Documents\Catalogs\amc.amc"
Or go in Windows' Default Programs settings (somewhere in control panel, or just start typing "Default Program" in the Start menu) to change the association of .amc files.
RobH
Posts: 13
Joined: 2012-12-07 10:51:08

Post by RobH »

OK, merci for staying with me on this! I tried your various suggestions but nothing worked. Finally I uninstalled Ant from C and deleted the E folder. I only left my backup .AMC file on my external. Then I re-installed Ant, on C, and created a temp movie. When saving that it asked for a filename so I named it AMC.AMC, the name of my backup. Then after quitting the program I replaced the new AMC.AMC with my old one, and all is now back to good with the scripting etc.

Well, not quite all. On Nov 16, 2016 the program stopped getting movie thumbnails, at least from my go-to IMDB. My last several movies have no thumbnails. When I F6 on a movie it ends up this Error: "IOHandler value is not valid".
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

If you haven't done it yet since the re-install, you have to update the IMDb script. Run the "update scripts" at the top of the scripts list.
The install package does not include latest scripts, as these are updated all the time.
That error occurs when a site needs SSL (HTTPS), which is only available in AMC 4.2.1 beta, but I think that the latest version of IMDb script still works with the 4.2.0 version by using HTTP only.
RobH
Posts: 13
Joined: 2012-12-07 10:51:08

Post by RobH »

OK, yes I thought it was about updating scripts. But, when I run the UPDATE scripts script, yes, IMDB comes up as updated after clicking More, but then the OK is ghosted. All I can do is Cancel or click the red X, and the update fails of course.

The HTTPS... I do have that installed in my default Firefox browser, but this doesn't seem to use the browser. Maybe I should try the 4.2.1 Beta? Is it available here?
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

RobH wrote:OK, yes I thought it was about updating scripts. But, when I run the UPDATE scripts script, yes, IMDB comes up as updated after clicking More, but then the OK is ghosted. All I can do is Cancel or click the red X, and the update fails of course.
Did you select the IMDb script in the list? (OK is probably disabled until an item is selected)
You may also download manually the wanted scripts from http://update.antp.be/amc/scripts/ and save the file to the Scripts folder of ProgramData.
RobH wrote: The HTTPS... I do have that installed in my default Firefox browser, but this doesn't seem to use the browser. Maybe I should try the 4.2.1 Beta? Is it available here?
Firefox has always supported HTTPS, but AMC does not use Firefox, it uses its own engine, to which HTTPS has only been added recenly.
But as I said normally the IMDb script does not need that, and it will probably not work much better until updated.
AMC 4.2.1 beta can be found on viewtopic.php?t=4844
RobH
Posts: 13
Joined: 2012-12-07 10:51:08

Post by RobH »

OK thanks, I got the IMDB.ifs script and now it works, sort of. It does get the movie info AND the thumbnail, but it requires me to go F6, then F9. Somehow the way it was before for me through last fall was more automatic. I know it was no F keys. But I don't rememberm maybe it was just keying Enter after Alt/InsertTitle?
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

In the Preferences window there are options that you may have enabled:
- open "get info from script" when adding a new movie (movie/extra info page)
- autorun last used script (scripting page)
RobH
Posts: 13
Joined: 2012-12-07 10:51:08

Post by RobH »

Thanks, I found those options in Prefs and now it works well, just like it used to. Time to make a $ contribution...
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks ;)
Post Reply