I would like some scripts to make these jobs:
1) Change some or better all fields caps
example: THIS IS THE TITLE >> This it the Title
or something like that
2) Put the actors one for line
I read something about this, but not seen a real script.
Thanks,
Andrea
Some new little scripts requested...
I did it - the first give me some "violation address" error, the second seems did nothing...antp wrote:To change the case, put this between the begin/end of a new script :
SetField(fieldOriginalTitle, AnsiUpFirstLetter(AnsiLowerCase(GetField(fieldOriginalTitle))));
And to remplace linebreaks by commas (for examples) :
SetField(fieldActors, StringReplace(GetField(fieldActors), #13#10, ', '));
Andre
Hello,
I find out why you got the access violation error, I did some test and you got it when the field is empty, so you have to make sure that the field you want to change is not empty. I modify the script a bit to have the first letter of each words in the fields original title and translated title in caps :
program FindReplaceCaps;
begin
SetField(fieldOriginalTitle, AnsiUpFirstLetter(AnsiLowerCase(GetField(fieldOriginalTitle))));
SetField(fieldOriginalTitle, AnsiMixedCase(GetField(fieldOriginalTitle),' '));
SetField(fieldTranslatedTitle, AnsiUpFirstLetter(AnsiLowerCase(GetField(fieldTranslatedTitle))));
SetField(fieldTranslatedTitle, AnsiMixedCase(GetField(fieldTranslatedTitle),' '));
end.
Hope this help...
I find out why you got the access violation error, I did some test and you got it when the field is empty, so you have to make sure that the field you want to change is not empty. I modify the script a bit to have the first letter of each words in the fields original title and translated title in caps :
program FindReplaceCaps;
begin
SetField(fieldOriginalTitle, AnsiUpFirstLetter(AnsiLowerCase(GetField(fieldOriginalTitle))));
SetField(fieldOriginalTitle, AnsiMixedCase(GetField(fieldOriginalTitle),' '));
SetField(fieldTranslatedTitle, AnsiUpFirstLetter(AnsiLowerCase(GetField(fieldTranslatedTitle))));
SetField(fieldTranslatedTitle, AnsiMixedCase(GetField(fieldTranslatedTitle),' '));
end.
Hope this help...