• 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
I found a solution to my problem. (mount smb shares and place aliases on desktop)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I found a solution to my problem. (mount smb shares and place aliases on desktop)


  • Subject: I found a solution to my problem. (mount smb shares and place aliases on desktop)
  • From: email@hidden
  • Date: Wed, 23 Apr 2008 15:50:57 -0400


I found a way to make make a mount without the users being prompted for their passwords (assumes that the users are authenticating to AD on a bound Mac) and then places an alias on the desktop. My district leaves the "Connected Servers" unchecked from the "Show these items on the Desktop".

(*
        This script mounts the faculty and student shares for Mac clients connecting to Active
        Directory servers. The script does not prompt users for their login information and makes
        an alias on the desktop
       
        Copyleft Charles Profitt April 2008
        Tested Platform OS X 10.5.2

        replace <servename> with your server's fqdn or ip address and <sharename> with your share
*)

setcurrent_userto(do shell script "whoami")astext

tellapplication"Finder"
        #test for mount point StudentShare
        try
                do shell script ("mkdir /Volumes/serverShare")
        endtry
        try
                do shell script ("mount_smbfs -N //<servername>/<sharename> /Volumes/serverShare")
        endtry
        try
                do shell script ("ln -s /Volumes/serverShare /Users/'"&current_user&"'/Desktop/serverShare")
        endtry
endtell

Charles Profitt
Sr. Network Technician
District Technology Office
75 Barker Road
Pittsford, NY 14534
585-267-3395

Important Notice:
This communication, including any attachments, is intended only for the use of the individual(s) or entity(s) to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of any part of this communication in any format is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this communication and deleting the original and any automatically generated copies. Thank-you for your co-operation.

 _______________________________________________
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: Tiger & Leopard Together
  • Next by Date: Re: Apple Script to make an alias
  • Previous by thread: Re: AppleScript to make an alias
  • Next by thread: Frontmost Application Problem
  • Index(es):
    • Date
    • Thread