PDA

View Full Version : Roaming ... Something...




zenman
Mar 21, 2007, 12:29 PM
Hi, i am looking at implimenting cross platform roaming profiles with the assistance of the mount command in applescript.

so far i have the network mounts working but i would like to mount them at a specific point on the directory tree... e.g.

mount /Volume/_netmount /home/enduser

unfortunately i have not been able to find anything on google which even remotely helps with this to such a point i sware i have aged 100 years.

If anyone can help me it would be brilliant, the code i have at the moment is...

set user_name to last word of (path to current user folder as text)
tell application "Finder"
try
mount volume "smb://" & user_name & "@192.168.0.17/" & user_name & ""
end try
try
mount volume "smb://" & user_name & "@192.168.0.17/_jobs"
end try
try
set mypath to "smb://" & user_name & "@192.168.0.17/" & user_name & ""
end try
end tell

Clearly also the attempt to set mypath to the network address hasnt worked. If anyone can help me i would be extreamly greatful.