Summary: I got an automount to work in Tiger without the Finder window appearing using an Automator workflow saved as an App for Login Items. Sorry so long - wanted to be precise for other Mac newbies.
I too needed to automount my network HDD for iTunes purposes on OS 10.4.5 (Tiger). This thread helped a lot - although, the AppleScript solutions simply did not work - cryptic Error Type -36 with no additional message - Console revealed that it was probably having a problem getting the password).
I tried
leturner's drag/drop method and it
wanted to work. I got an error dialog saying "The Finder cannot complete the operation because some data in "<url>" could not be read or written. (Error code -36).
I eventually got it to work, building on lessons learned attempting the above solutions, as follows:
If you do not have an "Internet Location" type of file saved for the remote server in your
~/Library/Recent Servers directory, then you can create one. This is probably optional in that the Automator entry below allows you to drill down to the network level, but, it causes an extra dialog to come up, which you may want to do if the password is not on the Keychain.
- In a Finder window, Go/Connect to Server (shortcut meta-K). Type in the volume name. In my case, an IOMEGA drive with default settings, this turned out to be <font class="code"><pre>code:<br>smb://<WORKGROUP>;<USERNAME>:<PASSWORD>@IOMEGA-NETHDD/NETHDD/Volumes/NETHDD</pre></font>
- I then +'d this to Favorites in an attempt to persist it beyond the norm, if that means anything.
- Note that the file name will not reflect the actual contents of the URL in this case (specifically, the file name does not carry the password in it)
Now open the Automator Application. This step took me some time and the interface and manual are obtuse. Fortunately I am a highly-trained software engineer and it only took me about four hours to figure out what I needed to do.
- In the Library column, select Finder.
- In the Action column, drag "Get Specified Servers" to the workflow area.
- In the "Get Specified Servers" workflow window, click the '+'
- Select your Server - either enter an address or choose your saved favorite.
- Choose File Server (this worked for me - I'm not sure that choosing Web Server does anything different)
- I had to insert a delay to make it work. I used 5 seconds, which worked, but did not experiment to see what minimum value would always work. You can insert the Pause step later if you want. The next 3 steps tell how:
- Back in the Library column, highlight Automator
- Drag the Pause Action to be second in the Workflow area
- Set the desired pause value.
- Back in the Library column, highlight Finder again
- Drag the "Connect to Servers" action to be the 3rd and final step in the workflow.
- You can run your Workflow from here to test it.
- Save your workflow somewhere that makes sense, for future reference.
- More importantly, Save As Application, somewhere in the Applications folder makes sense.
Now go to System Preferences, Accounts, unlock it if necessary, go to Login Items, and add the saved workflow application.
When you Restart, you will see an Automator toolbar overlain on the Finder bar and it will spin during the Pause cycle, but, if all went well, then you should see the network drive icon on your desktop and it will appear in subsequent Finder windows.
I have not yet tested the case where the Network drive is not available but I'm sure that will happen one way or another real soon.
I hope this helps others - I spent a lot of time playing with these cool toys.