Re: server no workee?
Re: server no workee?
- Subject: Re: server no workee?
- From: Ken Tabb <email@hidden>
- Date: Tue, 23 Oct 2001 11:25:43 +0100
And so it was that Chilton Webb said on 22/10/01 11:49 pm:
>
Wow, you are absolutely right! :)
>
>
And that answer of course, is to type "./" and the name of the
>
app in the terminal window, for those people who didn't know it.
Hi Chilton,
in addition, if you want a double clickable, write a shell script which
simply loads the app (your above example saved into a plain text file
with the execute bit set on it), and name the script file
"whatever.command" - this should allow you to double click the script
from Finder, which then opens it up in Terminal.
For extra brownie points, make a package (those weird "doesn't look like
a folder but is in fact a folder" things) containing both the app and the
script, with the folder itself pointing to the script (so that double
clicking the 'folder' launches the script). Then everything's together
and is still double clickable. This avoids you having to go into Terminal
and 'cd' to the correct directory (before you're able to do
'./whatever'), and means you don't have to edit your/everyones' $PATH
variable (which would screw the process up the minute you drag your app
to a folder not in your/their $PATH variable). Because the app and the
script are always together in the package, getting the script to do './'
should always work.
Obvious caveat here being that I haven't tried the package idea, but it
should work for what you want. If any of this is unclear give me a shout.
Cheers,
Ken
----------------------------------------------
Ken Tabb
Mac & UNIX Propellerhead & Network Bloke (Health & Human Sciences)
Computer Vision / Neural Network researcher (Computer Science)
University of Hertfordshire
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider