Mac Terminal Script
Submitted by wchaban on January 28, 2008 - 22:26.
Hopefully a very easy question,
Alls i want to do is write a one-line terminal command in a text editor, save it as the equivalent of a .bat file in windows, and have it run + close on manual execution or system startup.
is there a special format, header or extension i need to use?
»
- Login to post comments

technically, you don't need
technically, you don't need to any specific extension, just do it as a bash or sh script:
cut here:
--------
#!/usr/sh
(whatever you want to do)
--------
save it as .sh (not 100% required)
make sure you also make it +x, probably chdmo u+x myfile.sh
You also may want to consult the Launcher.app readme (under utilities), invoking Launcher.app brings it up.
jc
==
John Douglas Carter, MSc
Dept. of Computing & Information Studies
PhD Student, University of Guelph
By 'chdmo', he means
By 'chdmo', he means 'chmod'.
no, I mean chdmo.
no, I mean chdmo. pronounced: "chud-mo".
CHANGE HIERARCHY of DISTRIBUTED MANAGED OBJECTS
jc
PS: no. not really.
==
John Douglas Carter, MSc
Dept. of Computing & Information Studies
PhD Student, University of Guelph
thanks for the tip; are you
thanks for the tip; are you sure about Launcher.app? I can't seem to find it, im running 10.5.1; perhaps its buried in the dev tools on osx disc?
Or if you edit your user
Or if you edit your user (System Prefs->Accounts), you can put it in the login items.
Dave
----
"The only thing more dangerous than a hardware guy with a code patch is a programmer with a soldering iron."
it should be there.. I have
it should be there.. I have 10.5.1
It's under Applications/Utilities.
==
John Douglas Carter, MSc
Dept. of Computing & Information Studies
PhD Student, University of Guelph
I don't have it on my
I don't have it on my install, haven't heard of it before.
Perhaps Launcher.app is like Platypus though.
--
Andrew