You are not logged in.
Long time user - first forum post - great product.
Is there a way to prompt the user for insert, remove or replace text that will be used for all (selected) files?
That way the same preset can be used without having to edit the text each time
e.g. I have a simple rename and serialize preset that:
- deletes the name (skipping extension)
- inserts new name
- adds a dash
- serializes as a suffix
I searched the forum but could not find this.
Offline
A dialog prompting user to provide some input can be shown in the Pascal Script rule.
For example, the script below will ask the user for a file name (without extension) which will be applied to all files, replacing the original name but keeping the original file extension.
var
Initialized: Boolean;
NewName: WideString;
begin
if not Initialized then
begin
Initialized := True;
NewName := WideInputBox('New name', 'Enter the new file name:', '');
end;
FileName := NewName + WideExtractFileExt(FileName);
end.
Note that the prompt will be shown every time the Preview operation is performed, e.g. when you change rules or add files.
In my opinion, it would be more convenient and less error prone to just quickly edit one rule.
Offline
Thank you for your rapid response - this works beutifully.
Whilst changing one rule was certainly simple, for me this makes it very streamlined.
I receive lots of images send to me, from different people, often with long names, and all I need to do is change them to a short prefix plus serialize #.
Offline