Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automount AFP shares using Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automount AFP shares using Applescript
Authored by: andyinindy on Feb 18, '05 12:35:52PM
I use this Applescipt as a Login Item:

set sfiles to "afp://username:password@peter.butler.edu/student_files"
tell application "Finder"
	activate
	mount volume sfiles
end tell
No errors, works like a charm. What is this -36 error of which you speak?

[ Reply to This | # ]
Automount AFP shares using Applescript
Authored by: knujon on Feb 18, '05 01:32:24PM

Great hint; thanks. Do either of you, or does anyone else know how to do the opposite, to un-mount a network share?

Thanks in advance...



[ Reply to This | # ]
Automount AFP shares using Applescript
Authored by: allanmarcus on Feb 18, '05 02:48:14PM

sudo umount /Volumes/sharename

where sharename is the mounted volume. Do an

ls -l /Volumes

to see what's mounted.



[ Reply to This | # ]
Automount AFP shares without Applescript
Authored by: yan.nl on Feb 18, '05 08:41:49PM

Maybe i'm just a lucky bastard not needing al this. I dsilike using passwords etc. in scripts.
My most simple solution to mount a AFP share is just simply 'add' the (mounted) volume to the login items in teh account preference pane ...

---
Ukraine Spy



[ Reply to This | # ]