It is currently Thu Nov 12, 2026 2:43 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: gimp-file-load question
PostPosted: Sun Feb 21, 2016 1:29 am  (#1) 
Offline
GimpChat Member

Joined: Feb 21, 2016
Posts: 34
GIMP Version: 2.8.16
Operating System: Windows
GIMP Experience: New User



I am a novice GIMP,I learn gimp batch mode tutorial and try to create a SCM file, but the first command is not successful, then I have tested the discovery may be "\" and "/" problem. How to solve?
Attachment:
gimper3.jpg
gimper3.jpg [ 263.73 KiB | Viewed 3054 times ]

Attachment:
gimper4.jpg
gimper4.jpg [ 265.13 KiB | Viewed 3054 times ]


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: gimp-file-load question
PostPosted: Sun Feb 21, 2016 4:22 am  (#2) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
There are a few points...

Firstly, if you are just starting to learn scripting, then you are advised to use Python, rather than Scheme.

In the windows command line you cannot use single quotes, so you have to "escape" the double-quotes round the file name:
gimp-2.8.exe -b "(mytest \"1111.png\")"


Which leads onto why F:\w\1111.png doesn't work - it is treating the backslahes as special characters and they would need to be "escaped" on their own: F:\\w\\1111.png, although windows should also work using the Unix directory separator F:/w/1111.png

Kevin


Top
 Post subject: Re: gimp-file-load question
PostPosted: Sun Feb 21, 2016 7:52 pm  (#3) 
Offline
GimpChat Member

Joined: Feb 21, 2016
Posts: 34
paynekj wrote:
There are a few points...

Firstly, if you are just starting to learn scripting, then you are advised to use Python, rather than Scheme.

In the windows command line you cannot use single quotes, so you have to "escape" the double-quotes round the file name:
gimp-2.8.exe -b "(mytest \"1111.png\")"


Which leads onto why F:\w\1111.png doesn't work - it is treating the backslahes as special characters and they would need to be "escaped" on their own: F:\\w\\1111.png, although windows should also work using the Unix directory separator F:/w/1111.png

Kevin


Thank you for your reply, problem solved!


Top
 Post subject: Re: gimp-file-load question
PostPosted: Tue Feb 23, 2016 8:34 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
paynekj wrote:
Firstly, if you are just starting to learn scripting, then you are advised to use Python, rather than Scheme.
....
Kevin


Them's fightin' words!

;)

-Rob >

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group