On Mon, 22 Mär 2004, Sven Neumann wrote:
> > Here the script:
> > (define (script-fu-fileload filein)
> >    (gimp-message-set-handler 1)
> >    ; Create an img and a layer
> >    (gimp-message "1")
> >    (gimp-message filein)
> >    (set! my-image (gimp-file-load 1 filein filein))
> >    (gimp-message "2"))
> > 
> > (script-fu-register "script-fu-fileload"
> >       "<Toolbox>/Script-Fu/Norb/fileload"
> >       "Testscript"
> >       "Norbert Preining <[EMAIL PROTECTED]>"
> >       "Norbert Preining"
> >       "2004.03.17"
> >       ""
> >       SF-FILENAME "filein" "./dummy.tiff")
> > 
> > 
> > But I cannot get it to run without error:
> > $ gimp --no-data -i --verbose -b '(script-fu-fileload "\"test.tif\"")
> 
> You need to pass all parameters to your script. You can use the PDB
> Browser to check how the script is actually registered. GIMP added a
> run-mode parameter for you. So please try this command-line instead:
> 
>  gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")

Same same unfortunately:
$ gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")'
This is a development version of The GIMP.
Debug messages may appear here.

INIT: gimp_load_config
Parsing '/etc/gimp/1.3/gimprc'
Parsing '/home/norbert/.gimp-1.3/gimprc'
gimp_composite: use=yes, verbose=no
supported by gimp_composite: +mmx +sse -sse2 -3dnow -altivec -vis
INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gimp_restore
INIT: gimp_real_restore
Starting extension: 'extension_script_fu'
script-fu: 1

batch command: experienced an execution error.

So this didn't help, hmm.

Best wishes

Norbert

-------------------------------------------------------------------------------
Norbert Preining <preining AT logic DOT at>         Technische Universität Wien
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
VANCOUVER (n.)
The technical name for one of those huge trucks with whirling brushes
on the bottom used to clean streets.
                        --- Douglas Adams, The Meaning of Liff
_______________________________________________
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to