I found a solution to my problem. (mount smb shares and place aliases on desktop)
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")astexttellapplication"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/'"¤t_user&"'/Desktop/serverShare") endtryendtell
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