Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Fu - Batch Command Error
#2
1) Learning Python-fu is somewhat faster,
2) "(batch-auto-fix "C:\Users\parkinsj\Desktop\GIMP_Batch\img*.jpg")" -b "(gimp-quit 0)": nested quotes and backslashes... the problem isn't Gimp, but the Windows shell processor (CMD.EXE).  You likely have to escape the quotes around  "C:\Users\parkinsj\Desktop\GIMP_Batch\img*.jpg" because they are inside those that delimit "(batch-auto-fix "C:\Users\parkinsj\Desktop\GIMP_Batch\img*.jpg")".  I don't remember if this is done by doubling them ("") or by putting a backslash (\"). Your error message indicates that the quotes where stripped out to the input string so Gimp no longer sees a string literal.

Then use (gimp-message ...) to print the values of the arguments you received and se of this is what you expect. No point in debugging code that doesn't receive proper arguments.
Reply


Messages In This Thread
RE: Script Fu - Batch Command Error - by Ofnuts - 12-12-2022, 10:11 PM
RE: Script Fu - Batch Command Error - by Kevin - 12-12-2022, 10:28 PM
RE: Script Fu - Batch Command Error - by Ofnuts - 12-14-2022, 06:11 PM

Forum Jump: