I use a program to deal with the contents in sd card on startup. But the problem is that the program always starts before I can see the sd card in the finder. As a result, the program can't find the contents and can't run correctly. I think whether I can delay the startup time of a specified program in login items preference.


Make a simple bash script, that starts on startup instead:

#Wait for however long you want:
sleep <num of seconds>
#Use the following if the program is a .app:
open -a /path/to/app/myApp.app
#Use the following if the program is an executable (not a .app):

Now, save the file to your documents folder as startupScript.bash.

Note: If you use textedit to create the file, hold down shift + command + T before saving it.

Open up "Terminal". Type:

chmod +x ~/Documents/startupScript.bash

Then open up System Preferences, and add the script to the login items tab.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .