• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Network Mount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Network Mount


  • Subject: Network Mount
  • From: William J Sisti <email@hidden>
  • Date: Tue, 09 Sep 2008 12:32:59 -0400
  • Thread-topic: Network Mount

We are having some issues with AD logins on our new macbooks and until we
come up with a real fix I want to put a local account on the machines that
will moun the users home folder.  Ideally this is what I want

1. Prompt for username
2. Prompt for password
3. Mount network drive based on account name (query dscl?)
4. open finder window

The sharepoint is names HomeDirs.  In the SharePoint there is a Faculty and
Student folder.  Within Student there are folders based on grade years.

HomeDirs/Students/GY2016
HomeDirs/Students/GY2015
HomeDirs/Faculty

Since student logins are their student numbers I am currently using some
simple logic to determine where the home directory is located, but can I
just use dscl to get the path from Active Directory?

Here is the script I have put together from around the web.


to getusername()
    display dialog "Enter your username:" default answer ""
    set username to text returned of result
    return {username}
end getusername

to getuserpwd()
    display dialog "Enter your password:" default answer "" with hidden
answer
    set userpwd to text returned of result
    return {userpwd}
end getuserpwd

set username to getusername()
set userpass to getuserpwd()


tell application "Finder"
    if (username > 161000 and username < 169999) then
        open location "afp://" & username & ":" & userpass &
"@wwrsdod2.wwrsd.org/HomeDirs/GY2016/"
    else
        open location "afp://" & username & ":" & userpass &
"@wwrsdod2.wwrsd.org/HomeDirs/GY2015/"
    end if
end tell

Thanks all

-William J Sisti
Wetwood Regional Schools

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: RE: another short form
  • Next by Date: RE: another short form
  • Previous by thread: Re: set optionKeyDown to...
  • Next by thread: photoshop cs3 path confusion
  • Index(es):
    • Date
    • Thread