Rename scripts

Relevant or irrelevant information and chat here.
Post Reply
hopalongrock
Sr. Member
Sr. Member
Posts: 289
Joined: Wed Sep 15, 2010 1:38 pm

Rename scripts

Post by hopalongrock »

As I see, there are no rename scripts, functions, at least my rename script doesn't work.
How can I substitute ?

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

Re: Rename scripts

Post by jtclipper »

If you have custom rename scripts you need to change the extension to .sct.
Also the rename functions rn_... are now the equivalent tg_... ones, the 'if renamed' column can be accessed though tg_get/setField( 'Rename') .

If you still have trouble post the script here and I'll modify it.

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

Re: Rename scripts

Post by hopalongrock »

jtclipper wrote:If you have custom rename scripts you need to change the extension to .sct.
Also the rename functions rn_... are now the equivalent tg_... ones, the 'if renamed' column can be accessed though tg_get/setField( 'Rename') .

If you still have trouble post the script here and I'll modify it.
Thanks, the modified script work well.

tomcat
Newbie
Newbie
Posts: 4
Joined: Sun May 05, 2013 7:56 am

Re: Rename scripts

Post by tomcat »

Hello and greetings from Holland,

I just downloaded 0.85, installed it, and saw there is no rename screen/button anymore. How can I update/rename the filename?
I usually rename: "04. Why does my heart feel so bad? - Moby", to: "04 Why Does My Heart Feel So Bad? 0425". With version 0.81
this was done in a second, but here I don't know how. And I cannot find it in the help file (or, maybe, I looked at the wrong place).

I hope someone can help me with this.

Thanks.

:D Tomcat

tomcat
Newbie
Newbie
Posts: 4
Joined: Sun May 05, 2013 7:56 am

Re: Rename scripts

Post by tomcat »

Hello again,

I found out how it works. It's simple.
But I do have another problem.
If I close and reopen the programme all my new settings are lost.
I save them after making them and they work fine, but if I reopen the programme they're gone.
I use a Mac with VM Ware to run Windows.
My old TGF 0.81 (on the same Mac) does not have this problem.

Does anyone have a remedy?

Thanks

:D Tomcat

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

Re: Rename scripts

Post by jtclipper »

This should not happen at least in Win7 and above, what version of windows do you run in the VM.

Try running the program 'as administrator' and see what happens.

tomcat
Newbie
Newbie
Posts: 4
Joined: Sun May 05, 2013 7:56 am

Re: Rename scripts

Post by tomcat »

Hi, thanks for the reply.
I'm a bit late (I was away for a few days).
I run Windows 8, and I'll give running TGF as an administrator a try.
I also do this with 0.81 beta 3, but that is for another reason.

I'll let you know in a few days (have to go away again)

Thanks.

:D Tomcat

tomcat
Newbie
Newbie
Posts: 4
Joined: Sun May 05, 2013 7:56 am

Re: Rename scripts

Post by tomcat »

Hello again,

just tried it; if I open the programme as an administrator, all the settings are saved.
So, I'm gonna use it as an administrator.

Thanks for the tip

:D Tomcat

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

Re: Rename scripts

Post by hopalongrock »

Hi Dimitris !

I think this script worked already sometime before, now only partly works: sets "skip" flag and result to 'Rip OK', where the comment has 'CD,RIP', but cannot change the file name.
Do the ExtractFileExt(s) and ChangeFileExt(s,'' ) functions work now ?

Likely you said sometime how to use them, I can't find them in help, they are probably some kind of Pascal functions.

Thanks

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

Re: Rename scripts

Post by jtclipper »

Yes those functions should work ok, you can have a look at the #ren_tutorial.sct script to get a basic idea.

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

Re: Rename scripts

Post by hopalongrock »

jtclipper wrote:you can have a look at the #ren_tutorial.sct script to get a basic idea.
Oh, I see, I made my script from that tutorial ... only forget to click Update.

Thanks

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

Re: Rename scripts

Post by jtclipper »

If you are very sure of the result and want to automate the process you could include

Code: Select all

tg_Update
at the end of the script, it will basically click he Update button for you.

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

Re: Rename scripts

Post by hopalongrock »

jtclipper wrote:If you are very sure of the result and want to automate the process you could include

Code: Select all

tg_Update
at the end of the script, it will basically click he Update button for you.
No, it's good without update, just forgot about it.

Post Reply