Page 1 of 1

Update custom script

Posted: Wed Mar 05, 2014 10:16 am
by Wurlitzer
Hello,

I've build a script with an older version of The Godfather to copy composer tag to the lyricist tag.

Program composer_to_Lyricist;

var
sComposer: string;
begin
if not tg_init then exit;
repeat
tg_loadFile;
sComposer := tg_getField( 'Composer' );
gTag.Lyricist := sComposer;
gTag.OrigLyricist := sComposer;
gTag.SavetoFile( 0, false, false );
until not tg_skip;
end.


In the newest version this script is broken due to the updated scripting functions. At the moment I don't get the point how to repair it. Can anyone help me?

Re: Update custom script

Posted: Wed Mar 05, 2014 11:23 am
by jtclipper
gTag.SavetoFile uses only 2 parameters now, this is the working version :

Code: Select all

Program composer_to_Lyricist;

var
  sComposer: string;
begin
  if not tg_init then exit;
  repeat
     tg_loadFile;
     sComposer := tg_getField( 'Composer' );
     gTag.Lyricist := sComposer;
     gTag.OrigLyricist := sComposer;
     gTag.SavetoFile( 0, false );
  until not tg_skip;
end.

Re: Update custom script

Posted: Wed Mar 05, 2014 5:20 pm
by Wurlitzer
Thank you very much, now my script works like a charm.

Re: Update custom script

Posted: Thu Oct 02, 2014 8:59 am
by waqas
Hello,

I've build a script with an older version of The Godfather to copy composer tag to the lyricist tag.
O0 ^-^ 8)