|
|
Associate X11 applications with filename extensions
Several comments...
First.. I have the PATH variable set in my "~/MacOSX/environment.plist" as per this hint . I also have my "DISPLAY=:0.0" set there. The interactions between environment.plist and your shell environment "dot" files is not well documented, so use at your own risk. Second.. I prefer to check to see if X11 is already running. Third.. I had a few issues with syntax, so I tweaked some of the quoting. Here is the beef...
I found that the file opened in gv faster if the PATH was set in environment.plist instead of the shell script. You will also notice that I use the full path to the binaries just on general principals. I never figured out how to pass gv the path to gs to eliminate the need for the PATH completely, but I'm convinced it's possible. Using Open Menu I can now right click a ".ps" file, and open it straight into gv... pretty cool, and it opens the door to many other possibilities.
---
Associate X11 applications with filename extensions
I have used your version of the script, but still, it does not resolve the problem of "Unable to open display". The script works by itself very well from the command line, but not with DropScript. Maybe it's a problem with DropScript (I'm not a expert at all on Cocoa app).
Associate X11 applications with filename extensions
Uncomment the PATH and DISPLAY lines or follow the tip for adding them to your ~/.MacOSX/environment.plist like I did.
Associate X11 applications with filename extensions
Remember to log out and back in after changing the environment.plist.
Associate X11 applications with filename extensions
If you really want to get rid of the PATH dependence, you can use .Xdefaults and set "GV.gsInterpreter". (Look at man gv.) It looks like it'll even use a ".gv" file if you want.
Associate X11 applications with filename extensions
by editing gv to gimp, this script opens dropped pics with my fink-installed Gimp. the problem is that every image gets opened within a "new" gimp, means that the gimp starts up several times.
has anyone figured out how to pass the variables to the (eventually) already running gimp??
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|