Re: [Gimp-user] Question about scripting



On 2022-07-28 23:00, Jean-Pierre HOARAU wrote:
 I tried this and it doesn't work:

gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")" -b "(gimp-quit 0)"

On 2022-07-30 11:14, Ofnuts via gimp-user-list wrote:
> A problem you have is the multiple layers looking at your double quotes:

Ofnuts is correct that the problem is with the nested double quotes. The inner ones that are before and after the file name need to be escaped.

gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE \"/home/user/ev.jpg\"
\"/home/user/ev.jpg\")" -b "(gimp-quit 0)"

--
Cheers!

Kevin.

http://www.ve3syb.ca/               | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
                                    | that's why we're powerful"
Owner of Elecraft K2 #2172          |
#include <disclaimer/favourite>     |             --Chris Hardwick


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]