Guest User

Untitled

a guest
Dec 11th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. set short_name to system attribute "USER"
  2. tell application "Finder"
  3. if not (exists alias file named short_name in desktop) then
  4.  
  5. if not (exists disk "profiles") then
  6. try
  7. mount volume "smb://transit-file1.admin.umass.edu/profiles"
  8. on error
  9. return
  10. end try
  11. repeat until exists disk "profiles"
  12. end repeat
  13.  
  14. end if
  15. set shareAlias to make new alias file to folder short_name of disk "profiles"
  16. set locked of shareAlias to true
  17. end if
  18. end tell
Add Comment
Please, Sign In to add comment