Re: opening new xterms from other applications
Re: opening new xterms from other applications
- Subject: Re: opening new xterms from other applications
- From: robert delius royar <email@hidden>
- Date: Sun, 31 Jul 2005 07:29:11 -0400 (EDT)
- Organization: An Apple OS X end user
- Priority: normal
Sat, 30 Jul 2005 (18:24 -0700 UTC) Jon Dugan wrote:
> Hi All--
>
>
> Does anyone have a solution for opening X11 applications from other
> Mac OS X applications? For example, from the Opera browser I would
> like to execute:
>
> /home/dugan/bin/xterm -bg black -fg white -sl 4000 -e mutt %s
[...]
>
> Is there a simple was to create something like an xterm.app subdirectory
> in /Applications that points back to the xterm executable?
I use Platypus to create application bundles (Applescript also works). I
then write a bash script that checks for X11 running and opens it if needed
then calls the application. I have a Pine and an XEmacs icon in the dock
which are linked to two of these bundles. I can then set up Pine as the
default mailto: agent. The XEmacs version calls gnuclient if XEmacs is
running, or launches a new program if it is not. Bundling the applications
in this way makes it possible to assign specific UTTypeIdentifiers and
UTTypeTagSpecifications to applications so their documents may be indexed
(under Tiger).
With Pine, I also modified the startup for the source so that it raises its
window when launched from the dock and grabs the focus. XEmacs already
knows how to do that.
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
Making meaning one message at a time.
You do people a bigger favor by giving them a few skills for figuring things
out than by making them slaves to one particular program.
-Tari Fanderclai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden