Here is my script that I run in Script-Fu: (set! l3image (car (extension-screenshot 1 TRUE ""))) (file-print-gimp 0 l3image l3image "lp -s -dhpcp1160 -oraw" "DJ9xxVIP" "usr/share/printconf/foomatic/data/DJ9xxVIP-530418.foo" 1 "300" "Letter" "Plain" "Tray1" 1 100 -1 -1 -1 1 1 1 1 1 0 2 2 1 "\0" "Adaptive" 0) When I use 1 for run_mode it errors out. Thank you in advance for your help. -----Original Message----- From: Sven Neumann [mailto:sven@xxxxxxxx] Sent: Tuesday, July 09, 2002 9:05 AM To: WHITE,CURTIS (HP-USA,ex1) Cc: 'gimp-developer@xxxxxxxxxxxxxxxxxxxxxx' Subject: Re: [Gimp-developer] GIMP Print Dialog Box Hi, "WHITE,CURTIS (HP-USA,ex1)" <curtis_white@xxxxxx> writes: > How do I bypass the print dialog box in Gimp? I have written a batch script > that works but the print box comes up and I wnt it to go straight to the > printer. We have tried modifying the print.c and gimp_main_window.c code. > Any assistance would be apreciated. it should work the usual way: call the print procedure with run_mode set to GIMP_RUN_NONINTERACTIVE and pass the necessary parameters. Salut, Sven