It is currently Sat May 25, 2013 6:02 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 268 posts ]  Go to page Previous  1 ... 22, 23, 24, 25, 26, 27  Next
Author Message
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 4:38 pm  (#241) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 1719
Location: Metro Vancouver, BC
Great Rob. Delaboratory 0.7.3.1, Gimp 2.8 and Vista32 works both ways using ShellOut :yes

===
I'm still having a problem sending to Gimp 2.8 from Delaboratory 0.7.3.1, if I first open an image in Delaboratory, so I'll not do that again unless anyone has any ideas? The following error message comes up in Delaboratory trying to send, jpg, tiff and raw. The only difference in the error messages is the file name, the extension is always .tiff.


Attachments:
File comment: Delaboratory Error
delaboratory-Error-2012-06-19_132705.png
delaboratory-Error-2012-06-19_132705.png [ 8.69 KiB | Viewed 557 times ]

_________________
Image
Gimp 2.8.4, Vista 32, Ubuntu 12x, median user
Gimp Chat Tutorials Index
Top
 Profile  
 

 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 4:59 pm  (#242) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 5024
Delaboratory saves tif results as 16-bit; I use the export to GIMP option, then close the image and Delaboratory and tolerate the myriad of error pop ups (i.e., just close them; lol). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 5:34 pm  (#243) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1841
Location: Missouri
It took me a little time to get it working but now that it is I have my 5 most favorite applications in one. This is the greatest invention since whipped cream. I'm not sure if I should have done it or not but each of the programs had a # in front of the line and the only way I could get them all to work was to remove them. A most sincere thanks for making this. I wish I knew more about writing code. I used to do a lot of it in the early 80s then got lazy, to my disgrace.

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 8:14 pm  (#244) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 9030
Location: "Looking for my eraser" =P
ShellOut is awesome. :)
Sorry i didn't mention the version of mine was updated.That may have saved some confusion.My apologies folks.
Glad you all got it working though.

And a big thanks to Rob A!

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 11:08 pm  (#245) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1841
Location: Missouri
It works now and I know how to add more to it if I want to and that's what really matters. I feel like a two timer though. For years I've had paint.net on my computers and have kept it updated and full of filters but have never used it much. Now because of shellout I'll use it more often because as much as I'm dedicated to gimp I must admit paint.net has some neat features. Has shelllout turned me into a sellout? Sorry, tacky but I couldn't help myself.

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Jun 20, 2012 3:12 pm  (#246) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 9030
Location: "Looking for my eraser" =P
Gms9810 wrote:
It works now and I know how to add more to it if I want to and that's what really matters. I feel like a two timer though. For years I've had paint.net on my computers and have kept it updated and full of filters but have never used it much. Now because of shellout I'll use it more often because as much as I'm dedicated to gimp I must admit paint.net has some neat features. Has shelllout turned me into a sellout? Sorry, tacky but I couldn't help myself.

Well i for one have quite a few less desktop icons in my RocketDock menu because i now run them all through primarily ShellOut. So i wouldn't say your a sellout at all.If anything you use the program more because its at your fingertips through Gimp. That's the way i look at it anyways. :)

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sun Aug 05, 2012 5:28 pm  (#247) 
Offline
GimpChat Member
User avatar

Joined: Feb 23, 2011
Posts: 13
I use windows 7, 64 bit and gimp 2.8.

I am having trouble getting it to run. I used the shellout version .7. I changed the locations where I have XNview and Inkscape installed as follows:

["XNView", "\"C:\Program Files (x86)\\xnview.exe\"", "png"],
#["Inkscape", "\"C:\Program Files (x86)\\Inkscape\\inkscape.exe\"", "png"],

This is the error I get in gimp after choosing filters-> shellout-> new from visible:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Grits\.gimp-2.8\plug-ins\ShellOut.py", line 128, in plugin_main
child = subprocess.Popen(args, shell=False)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Thanks for any suggestions as to what I am doing wrong.

_________________
Image


Top
 Profile  
 

 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Aug 07, 2012 10:35 am  (#248) 
Offline
GimpChat Member
User avatar

Joined: Jul 14, 2010
Posts: 501
You need to escape all the backslashes in windows. SO instead of
Code:
"XNView", "\"C:\Program Files (x86)\\xnview.exe\"", "png",


you need:
Code:
"XNView", "\"C:\\Program Files (x86)\\xnview.exe\"", "png",


But I doubt you installed XNView directly under the program files directory, as it normally creates a directory to hold the file, so maybe it should really be
Code:
"XNView", "\"C:\\Program Files (x86)\\xnview\\XnView.exe\"", "png",


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Aug 08, 2012 7:31 pm  (#249) 
Offline
GimpChat Member
User avatar

Joined: Feb 23, 2011
Posts: 13
Thank you for your help, but I still am getting errors. Yesterday, I uninstalled/reinstalled xnview into the program files folder, instead of program files (x86). That didn't seem to help any.

I attached a screenshot of what I got when I changed line 53 to your text.

I also tried this line:
["XNView", "C:\Program Files\XnView\XnView.exe\"", "png"],

I was then able to get the full name of Xnview to show in the gimp shellout popup box menu, instead of just getting X in the box. I also added # to the beginning of each line in the script for the programs I don't have.

This is the error I got after doing that:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Lisa\.gimp-2.8\plug-ins\ShellOut.py", line 123, in plugin_main
args = shlex.split(command)
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 279, in split
return list(lex)
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 269, in next
token = self.get_token()
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 96, in get_token
raw = self.read_token()
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 172, in read_token
raise ValueError, "No closing quotation"
ValueError: No closing quotation

I am determined to keep trying to get this to work, but am mystified at what to change. Thanks for any help you can offer.


Attachments:
shellout error 8-8-12.jpg
shellout error 8-8-12.jpg [ 113.32 KiB | Viewed 412 times ]

_________________
Image
Top
 Profile  
 
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Aug 09, 2012 3:45 am  (#250) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1353
can someone give me a simple explanation of what shellout is please???

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 268 posts ]  Go to page Previous  1 ... 22, 23, 24, 25, 26, 27  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group