Matt Langtree

Leopard Mount Samba Shares

I have created a basic apple script that offers the user feedback about the progress of mounting your network samba shares on Leopard.

To use this script, post it into Script Editor, update the relevant server and share variables.

Click the Run button to test the script out.

Once you are happy with your new script, choose File > Save.. and choose Application as the File Format, and check ‘Run Only’ from the options in the Save dialog box.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
tell application "Finder"
  activate
  set theSharesCount to 3
  try
     display dialog "Mounting Share 1 of " & theSharesCount giving up after 1 with icon   note
     mount volume "cifs://WORKGROUP;matt@workserver/websites"
  end try
  try
     display dialog "Mounting Share 2 of " & theSharesCount giving up after 1 with icon note
     mount volume "cifs://WORKGROUP;matt@workserver/source"
  end try
  try
    display dialog "Mounting Share 3 of " & theSharesCount giving up after 1 with icon note
    mount volume "cifs://WORKGROUP;matt@workserver/admin"

  end try

end tell