Add Prefix or Suffix to file names in folder.

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

Paul MR

Add Prefix or Suffix to file names in folder.

Post by Paul MR »

Will work on all files or selected file types. Sub folders can be included.
Was written for PSCS2/3.
Only tested on Windows. (Sorry no Mac).
Paul.
Timo Autiokari

Add Prefix or Suffix to file names in folder.

Post by Timo Autiokari »

Hi,

I get: Error 8, syntax error, line 29, win = new Window (Dlog,"Pauls Re-Namer v2");

What could be the problem, same result with both the W2K+CS2 and the XP+CS2. Eh... embarrassedly I can not see where the syntax error is, I never use this type of dialogs.

Thanks,
Timo Autiokari
Patrick

Add Prefix or Suffix to file names in folder.

Post by Patrick »

Getting the syntax error on XP/CS2 also. Just skimming the dialog code I could not recognize what was wrong.

Patrick
xbytor

Add Prefix or Suffix to file names in folder.

Post by xbytor »

I hate dialog resources; the error messages sUX0RZ.

You are missing a comma:

Code: Select allcheckbox1:Checkbox{bounds:[270,25,341,45] }\

should be

Code: Select allcheckbox1:Checkbox{bounds:[270,25,341,45] },\

-X
Timo Autiokari

Add Prefix or Suffix to file names in folder.

Post by Timo Autiokari »

Thank you X,

but now it says:

Error 22: Window does not have a constructor.
Line: 29
-> win = new window (Dlog,"Pauls Re-Namer v2");

Ahh, I have been fighting with this constructor issue in the past but can not remember anymore what was the reason. Then I started to use the other type of dialog definition, it so much more easier.

BR,
Timo Autiokari
Paul MR

Add Prefix or Suffix to file names in folder.

Post by Paul MR »

Thanks X for spotting the missing comma, strange it works for me in ESTK CS3 with no errors even with the missing comma.

Sorry Timo I don't know the answer to why you get that error.

Paul.