tag-scripts - tool tip ...

Main discussion forum
Post Reply
hopalongrock
Sr. Member
Sr. Member
Posts: 289
Joined: Wed Sep 15, 2010 1:38 pm

tag-scripts - tool tip ...

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

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

Re: tag-scripts - tool tip ...

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

hopalongrock
Sr. Member
Sr. Member
Posts: 289
Joined: Wed Sep 15, 2010 1:38 pm

Re: tag-scripts - tool tip ...

Post by hopalongrock »

Thank you.

Post Reply