Bug when adding content to Description Field through script

You found an error in the program ? Report it here
Post Reply
bmm
Posts: 10
Joined: 2002-07-27 08:57:27
Location: Denmark

Bug when adding content to Description Field through script

Post by bmm »

Hi

My goal is to add text to the Description field through a script instead of replacing the original content.

Try the following:
In the IMDB script replace one line
SetField(fieldDescription, getfield(fieldDescription) + #13#10#13#10 + Value);

instead of
SetField(fieldDescription, Value);

When running this through ordinanary scripting (F6) it does what it is supposed to do but when I use the "Get information from script" it ignores the part with "getfield(fieldDescription)".

Finally I have question. Is it possible to check from a script if there already is a picture attached to the current movie so I can avoid replacing this?

AMC 3.3.0 (22/6/2002)
Windows 2000 SP 2
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Bug when adding content to Description Field through scr

Post by antp »

bmm wrote: When running this through ordinanary scripting (F6) it does what it is supposed to do but when I use the "Get information from script" it ignores the part with "getfield(fieldDescription)".
That's not really a bug actually, more a "feature" :D
In "Get information from script" mode it does not read movie information before executing the script, since I check if the field is empty or not to know if the field has to be copied.
I will try to see how I can change that easily
bmm wrote: Finally I have question. Is it possible to check from a script if there already is a picture attached to the current movie so I can avoid replacing this?
Not currently, but I know that I have to add picture management functions, e.g. to convert stored pictures to linked pictures, etc..
Guest

Re: Bug when adding content to Description Field through scr

Post by Guest »

antp wrote: That's not really a bug actually, more a "feature" :D
In "Get information from script" mode it does not read movie information before executing the script, since I check if the field is empty or not to know if the field has to be copied.
Ok, that really explains some otherwise odd behaviours I couldn't figure out :) And the only two fields that can be read from is Original and Translated Title because they are the source of the lookup. I had earlier done some checks on these and other fields with different output.

This puts my mind in rest. :hihi:
Post Reply