Update custom script

Use this forum for everything concerning script usage
Post Reply
Wurlitzer
Newbie
Newbie
Posts: 38
Joined: Mon Sep 13, 2010 11:09 am

Update custom script

Post 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?

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Update custom script

Post 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.

Wurlitzer
Newbie
Newbie
Posts: 38
Joined: Mon Sep 13, 2010 11:09 am

Re: Update custom script

Post by Wurlitzer »

Thank you very much, now my script works like a charm.

waqas
Newbie
Newbie
Posts: 1
Joined: Thu Oct 02, 2014 8:57 am

Re: Update custom script

Post 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)
You can join us for best pass-4sure.info exam & oracle training solutions. Our wikipedia contains all those materials you want to pass for Northwestern University exam & ase Intel

Post Reply