Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 09-20-2002, 11:17 AM   #1
Bishop
Prospect
 
Join Date: Mar 2002
Posts: 16
Question Launching X11 applications from Finder

Anyone know of a way to make a double-click on a file in the Finder open with an X11 application.

For instance:
I have a .ps file, I locate it in Finder double-click on it an it opens in gv in X11.

/Bishop
Bishop is offline   Reply With Quote
Old 09-21-2002, 08:27 PM   #2
WillyT
Major Leaguer
 
Join Date: Jan 2002
Location: Midwest Not quite Normal
Posts: 416
Clickable Application!

Whooo! I just got crazy!

Create a file Mozilla.app/Contents/MacOS/Mozilla

containing
Code:
#!/bin/sh
DISPLAY=:0.0 /sw/bin/Mozilla
I don't have gv installed yet to try with it but this should work substitutiing gv for mozilla.

YES this actually WORKS!

Will try setting a html file to open with it.

Back soon

Willy
WillyT is offline   Reply With Quote
Old 09-21-2002, 08:40 PM   #3
WillyT
Major Leaguer
 
Join Date: Jan 2002
Location: Midwest Not quite Normal
Posts: 416
No Luck

I can't get Get Info to associate a file to open with the Mozilla.app.

It goes thru the motions and then defaults to IE.

Maybe a little more playing with the script?
Maybe some stuff in a resources folder?

At least I have a Clickable application!!!

Merv

Do you have any insight to what still needs to be done to get the file name feed to the X11 apps?

slightly grumpy mostly estatic
Willy
WillyT is offline   Reply With Quote
Old 09-22-2002, 02:01 PM   #4
Bishop
Prospect
 
Join Date: Mar 2002
Posts: 16
Talking Problem solved!

Well here is a solution to the problem, maybe not the best one but it WORKS and you can double-click documents associated with an X11 application and have them open!

http://www.e.kth.se/~e98_aar/program.../xl_v0.0.1.tgz

Quote:
About XL

Ever wanted to be able to open a document in an X11 application by simply double-clicking it from the Finder? Well now you can!

By default XL is able to open documents with

gv (.ps files)
gimp (.xpm files)
texmacs (.tex files)
lyx (.lyx files)

if they where installed by fink

but you can map any document type to any application by simply double-clicking on the XL icon and selecting preferences from the XL menu.

Bishop is offline   Reply With Quote
Old 09-23-2002, 06:32 PM   #5
MarkWilson
Prospect
 
Join Date: Sep 2002
Posts: 1
Open Office (at openoffice.org) uses double-clickable AppleScripts to activate X11 and then open the application.
MarkWilson is offline   Reply With Quote
Old 09-23-2002, 07:28 PM   #6
Bishop
Prospect
 
Join Date: Mar 2002
Posts: 16
Question open documents

Yes, I'm aware of this, but can you open DOCUMENTS by double-clicking on them?
Bishop is offline   Reply With Quote
Old 09-23-2002, 10:15 PM   #7
WillyT
Major Leaguer
 
Join Date: Jan 2002
Location: Midwest Not quite Normal
Posts: 416
XL works but...

After clicking on 3 .xpm files I had 3 instances of the gimp running. Whereas if I open 3 files in the gimp I would just have 3 windows showing files. Still pretty neat tho. Excelent alpha as far as it goes. Maybe Daniel Arno should open source it. It could become an XonX staple.
WillyT is offline   Reply With Quote
Old 09-26-2002, 04:03 PM   #8
Bishop
Prospect
 
Join Date: Mar 2002
Posts: 16
Open source

I just might do that :-)

I'm not sure if there really is a demand for this feature but I sure find it useful, also releasing it under GPL might make it possible for someone to solve the 3 gimps open problem which I have no idea how to solve. Is there a demand for this feature?

Actually I don't know how well it would fit into the XonX project since it is written in java[tm] (how's that for integration, launching X11 apps on MacOS X using java[tm]?) but then again maybe some use could come out of it.

Last edited by Bishop; 09-26-2002 at 04:07 PM.
Bishop is offline   Reply With Quote
Old 09-28-2002, 10:07 AM   #9
Bishop
Prospect
 
Join Date: Mar 2002
Posts: 16
Opening files in an already running gimp

As talked about on the XonX forums there actually is a way of having files open in an already running gimp, do a
Code:
man gimp-remote
Bishop is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.