Page 1 of 1

tag-scripts - tool tip ...

Posted: Tue Mar 20, 2012 6:26 pm
by hopalongrock
Would it possible to display the actual script name in the tool tip too, not only "Apply a script to grid" ? For example displaying the script name under the standard text:
"Apply a script to grid
#tutorial.sct"

(It is faster than to watch the bullet before the script name in the script down arrow menu.)

---

I wrote a little Tag script named Update Changes.sct, for the the fields I use:

program UpdateChanges;
var
s: string;
upd: boolean;
begin
if not tg_Init then exit;
repeat
tg_LoadFile;
upd:=false;

s:=tg_GetField('Track');
if s<>gtag.Track then begin
gtag.Track:=s;
upd:=true;
end;
s:=tg_GetField('Artist');
if s<>gtag.Artist then begin
gtag.Artist:=s;
upd:=true;
end;
// processing further fields ...

if upd then begin
gTag.SaveToFile( 0, false, '', false);
tg_setresult('Upd');
end;
until not tg_Skip;
end.

It works well for me, when I make changes in the grid, and I don't want to update each modified file one by one, or update all files.

Is this correct, or is something missing or is a more general or built-in solution ?

Re: tag-scripts - tool tip ...

Posted: Wed Mar 21, 2012 12:46 pm
by jtclipper
The script looks fine to me and it is useful when you want to apply settings to the grid and then do an update of the fields that actually changed.
I'll have a look at the tooltip should be easy to update.

Re: tag-scripts - tool tip ...

Posted: Wed Mar 21, 2012 2:25 pm
by hopalongrock
Thank you.