Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 29, 2007, 05:07 PM   #1
maximus06
macrumors regular
 
Join Date: Nov 2007
run terminal command at startup?

Seems like a simple thing to do, yet I've searched and not found an answer.

Automator doesn't seem to have a terminal function...?

Does anyone know?
maximus06 is offline   0 Reply With Quote
Old Nov 29, 2007, 08:12 PM   #2
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
They way i would do it is to use applescript "do shell script" save that as a script and then put it in login items.
xUKHCx is offline   0 Reply With Quote
Old Nov 29, 2007, 10:41 PM   #3
maximus06
Thread Starter
macrumors regular
 
Join Date: Nov 2007
Quote:
Originally Posted by xUKHCx View Post
They way i would do it is to use applescript "do shell script" save that as a script and then put it in login items.
I don't know how though. You cant just paste the command and expect it to work right? I mean I don't know apple script

EDIT: Tried that, didn't work.

Last edited by maximus06; Nov 29, 2007 at 10:50 PM.
maximus06 is offline   0 Reply With Quote
Old Nov 30, 2007, 02:06 AM   #4
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Quote:
Originally Posted by maximus06 View Post
I don't know how though. You cant just paste the command and expect it to work right? I mean I don't know apple script

EDIT: Tried that, didn't work.
What is the terminal script that you want to run as it sometimes needs tweaking to be able to run from inside applescript.

Also I think that you have to save it as an application to work now (could've sworn it used to work just as a script file in Tiger)
xUKHCx is offline   0 Reply With Quote
Old Nov 30, 2007, 07:17 AM   #5
pilotError
macrumors 68020
 
pilotError's Avatar
 
Join Date: Apr 2006
Location: Long Island
There has to be a better way than this, but you can always try calling your scripts like this:

Here's one page that Mac Specific:

http://www.osxfaq.com/Tutorials/Lear...artup/index.ws

Another that's BSD specific:

http://osresources.com/2_10_en.html

I've done it in other *nix's but Apple usually has better ways of dealing with it.
pilotError is offline   0 Reply With Quote
Old Nov 30, 2007, 08:52 AM   #6
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Ok having thought about it a bit more something triggered in my brain, can't believe i didn't suggest it before (but then again my sleeping patterns have been all out of whack at the mo).

Lingon - Ok it is basically a GUI to editing launchd but it'll do the trick

Click image for larger version

Name:	Picture 1.png
Views:	77
Size:	33.4 KB
ID:	92816
xUKHCx is offline   0 Reply With Quote
Old Nov 30, 2007, 11:08 PM   #7
ethernet76
macrumors 6502a
 
Join Date: Jul 2003
Check out this link. http://www.osxfaq.com/Tutorials/Lear...artup/index.ws

It has everything you need to make the shell script execute on start up without having to mess around with applescript.
ethernet76 is offline   0 Reply With Quote
Old Nov 30, 2007, 11:11 PM   #8
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Quote:
Originally Posted by ethernet76 View Post
Check out this link. http://www.osxfaq.com/Tutorials/Lear...artup/index.ws

It has everything you need to make the shell script execute on start up without having to mess around with applescript.
Look two posts above yours, notice anything familiar.
xUKHCx is offline   0 Reply With Quote
Old Dec 12, 2010, 11:12 AM   #9
lawlist
macrumors member
 
Join Date: May 2010
We need an updated link please for a current tutorial.

The link to the osxfaq tutorial no longer works. Can someone please post a link to a current step-by-step to do this without an applescript. Thanks.
lawlist is offline   0 Reply With Quote
Old Sep 23, 2011, 08:52 PM   #10
panZ
macrumors newbie
 
Join Date: Jul 2010
web.archive.org

I know this is a stale thread but I found it on google. I also found the article that was removed from the original (down) host in a web archive.

http://web.archive.org/web/201008191...artup/index.ws
panZ is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Terminal command andynewfriends Mac Basics and Help 0 Jun 11, 2013 01:25 PM
Terminal run on startup command Zogw Mac Applications and Mac App Store 7 Jan 26, 2013 10:24 AM
Run Terminal Command as root on Startup evilblob OS X 10.8 Mountain Lion 1 Aug 2, 2012 01:25 AM
run terminal command current finder window SniperUK Mac Applications and Mac App Store 3 Jul 30, 2012 01:52 PM
Need command in terminal chadteetzen OS X 1 Jun 8, 2012 10:55 PM

Forum Jump

All times are GMT -5. The time now is 03:48 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC