Re: terminal and x11
Re: terminal and x11
- Subject: Re: terminal and x11
- From: Francois Rigaut <email@hidden>
- Date: Sat, 22 Feb 2003 02:34:56 -1000
> I use the following applescript, saved as an "Application":
>
> tell application "X11"
> activate
> end tell
>
> do shell script "export DISPLAY=:0 ; /usr/X11R6/bin/xterm -geometry
> 80x32+18+32 -fa Monaco -fs 10 -bc -hold -ls -rightbar -rw -sb -sl 1000
> > /dev/console 2>&1 &"
yes. This also works for other apps, for instance, you want to open all
*.ps files with gv. Write an applescript as following:
tell application "X11"
activate
end tell
on open DroppedItems
repeat with EachItem in DroppedItems
set thefile to POSIX path of EachItem
do shell script "/sw/bin/gv -d localhost:0.0 " & quoted form of
thefile & " 2>&1 &"
end repeat
end open
save the script as an *application* (select only option "never show up
stratup screen).
you can drop ps files on that and it will open them in gv.
You can then build a nice icon for the application and I think you can
then select one of your ps file, Cmd-I on it to bring up the info
panel, and then select "open with", the newly created application, and
"change all".
Now, all your ps files should open with gv by double clicking on it.
Another rather similar method to do this is to use DropScript
(available at apple downloads). This app creates apps that execute
shell scripts. It's pretty nice.
Francois
>
>
> --
> Sandor Wade Sklar
> Unix Systems Administrator
> Stanford University ITSS-TSS
> Non impediti ratione cogitationis.
> _______________________________________________
> x11-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/x11-users
> X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
> Report issues, request features, feedback:
> http://developer.apple.com/bugreporter
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.