Mount network drive before starting an app
Filed under Apple, Mac OSX
On my Mac Mini, I have SABNZBd+ installed. I wanted to make it download my usenet downloads straight to my NAS.
So I made my Mac automaticly mount a drive on the NAS on boot, and I also put SABNZBd+ in my login items. But that gave me a problem, sometimes SABNZBd started before my network drive was mounted. SABNZBd then created a directory called /Volumes/Media. After that, when my NAS was mounted, it mounted to /Volumes/Media-1. So that sucked. I could not find a way to change the order at which startup programs ran, so I decided to create an AppleScript application which first mounted a network drive and then runned SABNZBd.
Here it is:
1 2 3 4 5 6 7 8 | set Media to "smb://myUsername:myPassword@192.168.1.1/Media" tell application "Finder" activate mount volume Media end tell tell application "SABnzbd" activate end tell |





Recent Comments