1

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.

1

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

#!/bin/bash
#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):
/path/to/exec/theExec

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 .