Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > GIMP (GNU Image Manipulation Program) > Re: making a sc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 24 Topic 3079 of 3157
Post > Topic >>

Re: making a script

by houghi <houghi@[EMAIL PROTECTED] > Sep 26, 2008 at 12:04 PM

Niels Giesen wrote:
> Sorry, not giving the raw code, but code interspersed with comments. 

Great. Code would probably have been enough, but comments are nice to
have as well.

<snip as I do not use emacs and do not intend to learn it just to be
able to run a script>

> If you do not want to use that, in the development thereof, I have
> searched the web, and found the following resources to be of use:
>
> http://docs.gimp.org/en/gimp-using-script-fu-tutorial.html
> http://www.ve3syb.ca/wiki/doku.php?id=software:sf:start
> http://mitpress.mit.edu/sicp/full-text/book/book.html
> http://tech.groups.yahoo.com/group/script-fu/

I looked, but found not any example in running things from bash.
I know the way my mind works might be at fault, but I am not very much
able to use books (or man pages) to learn things from.

If anything, the things above confused me more then showed me how to do
things.

The best way I learn things and especialy code is by copy and pasting
and then change one thing and see what happens. Reverse engineering one
might call it, others will notice how little kids learn that way as
well.

<snip>
> Another way of debugging your scripts is turning tracing on, by issuing 
> (tracing TRUE), so, for instance: 
>
> gimp -ic -b "(begin (tracing TRUE) (your code ... ) (gimp-quit
RUN-NONINTERACTIVE))"
>
> and you can turn it off with (tracing FALSE).

OK. This becomes interesting.

<snip code>
> From bash: 
> gimp -i -b "(begin (border-fuzz \"foo.png\" '(0 0 0) 50 0 16 FALSE 1
FALSE) (gimp-quit RUN-NONINTERACTIVE))"
>
> Hope this is of use.

Very much so. I am now connected over ssh, so no GUI, but I will be
checking this out this weekend. This is the information as it should
have been presented on the docs.

I will give feedback later on how things went. With your permission, I
will put the information online as well. I willeven try to get it on
docs.gimp.org if you allow me.

houghi
-- 
The whole principle [of censor****p] is wrong. It's like demanding that 
grown men live on skim milk because the baby can't have steak.
		-- Robert A. Heinlein in "The Man Who Sold the Moon"
 




 24 Posts in Topic:
making a script
-=MrX=- <herrie@[EMAIL  2008-09-22 18:41:57 
Re: making a script
houghi <houghi@[EMAIL   2008-09-22 21:21:18 
Re: making a script
houghi <houghi@[EMAIL   2008-09-22 23:24:26 
Re: making a script
-=MrX=- <herrie@[EMAIL  2008-09-23 16:51:10 
Re: making a script
houghi <houghi@[EMAIL   2008-09-23 17:07:05 
Re: making a script
houghi <houghi@[EMAIL   2008-09-23 22:24:15 
Re: making a script
-=MrX=- <herrie@[EMAIL  2008-09-24 16:03:14 
Re: making a script
houghi <houghi@[EMAIL   2008-09-24 16:53:08 
Re: making a script
-=MrX=- <herrie@[EMAIL  2008-09-25 08:21:13 
Re: making a script
houghi <houghi@[EMAIL   2008-09-25 11:20:33 
Re: making a script
Troy Piggins <usenet-0  2008-09-23 08:00:12 
Re: making a script
floyd@[EMAIL PROTECTED]   2008-09-25 04:57:05 
Re: making a script
houghi <houghi@[EMAIL   2008-09-25 16:05:01 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 01:15:43 
Re: making a script
Niels Giesen <niels.gi  2008-09-26 09:53:44 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 12:04:58 
Re: making a script
Giacomo Boffi <giacomo  2008-09-26 12:34:41 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 12:56:37 
Re: making a script
Niels Giesen <niels.gi  2008-09-26 22:03:52 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 20:38:05 
Re: making a script
floyd@[EMAIL PROTECTED]   2008-09-26 01:21:17 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 12:51:49 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 22:13:07 
Re: making a script
Dirk Dietrich <kaufinf  2008-10-03 18:16:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 17:25:35 CST 2008.