[Ti] Panther network functionality
Chris Olson
chris at astcomm.net
Fri Nov 21 20:42:00 PST 2003
On Nov 21, 2003, at 10:25 PM, Barry Lyden wrote:
> I would think that you could also use AppleScript to mount a series of
> drives and set the script to run automatically at login time. Does
> anyone have experience doing this?
I do lots of things with AppleScript, but you don't need AppleScript to
do this.
Once you have a share mounted, you can simply drag it to the Dock, or
to the "startup items" section in the System Prefs under your account
information. It will then let you either single click it to mount from
the Dock, or auto-mount on login.
If you're more technically inclined and like to fiddle with things:
Open your Script Editor (found in /Applications/Apple Script/) and cut
and past the following into it:
tell application "Finder"
mount volume "smb://username:password@192.168.1.1/share name"
end tell
replacing username, password, ip address, and share name specific for
what you use. Save this script as an application in the menu (File ->
Save As ->) and in the dialog select 'Application' for file format, and
enter the desired name of your scripted application. Double clicking
the icon for this script will mount the server. or if you want it to be
automatic, add the script to your System Preferences - > Accounts ->
Startup Items tab. You can add as many mount lines for different
servers in that script as you want. When you log on it will
automatically mount your network servers/shares in Finder. If one is
not available when you log on the Script will display an error and halt
execution, so I recommend making a separate script for each server or
share you want to auto-mount.
--
Chris
More information about the Titanium
mailing list