Introduction

How I create an AppleScript script and application to map one or more network drives with username and password option. I have added examples and sample code at the bottom of this document. This is a Step-By-Step document created by Paul Luciano, MCSE

Steps
(8 total)

1

Launching AppleScript app

Creating the script

) Enter the code
) Click the Compile button to have AppleScript Editor check the code
) Fix any errors as needed
) Click the Run button to test the script
) Click File
) Click Save
) Enter a name for the script in the Save As: field
) Click the Save button

David,
Thank you for your comments. The generic versions of the scripts I use are noted in Step 8. The script itself is really no more than one line of code. I just add an additional line for each share I want to mount. To translate into windows as a .BAT file:

net use z: \\SERVERF\Sales /user:domain1\admin pass1212

There may be more complicated parts you can add to do fancier things, but I just needed something simple.

I actually didn't add numbers to the lists, the steps become somewhat messy when I added numbers.

Thank you! This is very sexy stuff that I can put to use immediately at the office.
I was curious to see if the script code could handle a password with a space in it (since, on Macs, in Terminal, a space-as-character is handled by "/") and it did!