Quantcast

Forums | MacLife

You are not logged in.

#1 2004-12-14 1:34 pm

asdf
Member
Registered: 2004-01-06
Posts: 9

Opening X11 apps from dock?

I am relatively new to OSX and unix (I've been using linux for approx one year), so please excuse my sloppy use of technical terms.  Anyway, I recently bought my wife an iBook, and I'm trying to keep it MS-free. 

I would like to install some open-source apps onto her computer (gimp, open office, etc.).  Is it possible to run an X11 app from the dock in OSX?  I'm pretty sure that she will not want to bother with a terminal window.  Is there a way for X11 and OSX/quartz to be virtually seamless?

I realize that I could opt for gnome or kde instead of quartz, but she will not welcome any major changes to her desktop, and she uses the iLife apps, safari, and mail on a regular basis.  Is there a no-brainer solution?

Thank you for your advice/suggestions.

Offline

 

#2 2004-12-14 4:16 pm

floyd2255
Member
From: L2 cache awaiting execution...
Registered: 2002-12-30
Posts: 359
Website

Re: Opening X11 apps from dock?

Refer to the recently posted topic here.  mjsmitho explains how to add shortcuts to the Applications menu of X11 (probably a lot better than I could) so your wife won't have to type in commands to launch apps under X11.

~jlk


I've got a LANDSAT image of my house!  Check it out!

Offline

 

#3 2004-12-14 4:43 pm

asdf
Member
Registered: 2004-01-06
Posts: 9

Re: Opening X11 apps from dock?

Refer to the recently posted topic here.  mjsmitho explains how to add shortcuts to the Applications menu of X11 (probably a lot better than I could) so your wife won't have to type in commands to launch apps under X11.

~jlk

Thank you.  I had seen this post, but I was too ignorant to recognize that it addressed my issue.

A follow-up: Is it possible (and relatively simple) to create an icon on the mac desktop (or dock) that will both open an X11 window and run a specific X11 application?  I haven't done anything with apple scripting, but I thought that that might be the proper route.

What about setting the Mac OS to automatically open MS documents via X11 and Open Office?

Thank you!

Offline

 

#4 2004-12-14 4:55 pm

floyd2255
Member
From: L2 cache awaiting execution...
Registered: 2002-12-30
Posts: 359
Website

Re: Opening X11 apps from dock?

Is it possible (and relatively simple) to create an icon on the mac desktop (or dock) that will both open an X11 window and run a specific X11 application?  I haven't done anything with apple scripting, but I thought that that might be the proper route.

That should be possible using AppleScript since, from what I understand, you should be able to make a script select an item from a menu.

What about setting the Mac OS to automatically open MS documents via X11 and Open Office?

Not so sure about that one.  Maybe a script that you drop the document you want to open onto so it knows what to open when it launches. confused

Good luck!

~jlk


I've got a LANDSAT image of my house!  Check it out!

Offline

 

#5 2004-12-15 4:38 pm

DevilDuck
Member
Registered: 2003-03-24
Posts: 24

Re: Opening X11 apps from dock?

You can do that with an applescript.

The applescript will have to activate the X11 program,
select the Applications menu
select the appropriate command you want it to execute (this is assuming that you added the command as a menu item which can be done in the X11 application).

That's all there is to it.

Once you have the applescript, you can treat it as if it is an application and place it in the dock, etc...


PS - This is a snippet of an applescript I made to navigate the menu of an application (Televio) and select the Save menu item.  This should help you for an X11 one should you want to make it.

    tell application "System Events"
        tell process "Televio"
            tell menu bar 1
                tell menu bar item "Record"
                    tell menu "Record"
                        click menu item "Start"
                    end tell
                end tell
            end tell
        end tell
    end tell

you should probably change the following:
tell process "Televio" with "X11"
menu bar item "Record" with "Applications"
tell menu "Record" with "Applications"
click menu item "Start" with any item you want, eg - "xlogo" or something

Offline

 

#6 2004-12-16 4:18 pm

asdf
Member
Registered: 2004-01-06
Posts: 9

Re: Opening X11 apps from dock?

I'm really starting to like that iBook and OSX--it's a neat system.  Now I'll have to start saving for my own mac so we won't have to fight over who gets to use hers.

Thanks again for the help.

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson