I'm sure I'm just not typing the right keywords in Google. In Ubuntu I use synergy, which I have automatically starting after the user desktop has been started to ensure the application correctly processes the desktop dimensions. I want to do the same for the Mac, however, when I add the script to the login items the Mac opens it as a document instead of executing it. When I search for start-up scripting the material refers to system level (root) starting, what I believe to be the same as run level starting in other Linux distributions.
Excellent, thanks. I had made it executable (chmod +x) and I had placed the shebang in the first line, but I had not called it .command. I renamed the script (mv autoSynergy.sh autoSynergy.command), added it to my login items, rebooted and it started successfully.
I returned to the user login items and changed it to hide at start, but it does not want to hide, but that is not so important, it is automatically running which is great.
You can cheat, wrap the script into an Automator action or Applescript saved as an Application that way you can simply put the Application into the login items in the Users and Groups system preference.
Depends on the script if it does not terminate. Then the automator program will also not quit.
In any case you could add "&" to the end of your command in the script and then add exit to the end of the script. you will also then need to make sure terminal will exit on the exit command. You can do this by doing the following. Terminal > Preferences > Settings > Shell: > When the shell exits: -> Close if the shell exited cleanly
Setting the terminal to exit works a treat, thanks (the program I'm invoking from the script already performed the spawning so I didn't have to manually background it).
Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly
to your computer or smartphone by using a feed reader.