Hi,

Norbert Preining <[EMAIL PROTECTED]> writes:

> I am trying to extend one of my scripts from an old version but cannot
> get gimp-file-load to work:
> 
> 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\"")


Sven
_______________________________________________
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to