Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URI-scheme to open webdav server-connections?



Paul Libbrecht wrote:

does anyone know the URI-scheme that'd be best to use so that, when opened, a connection to a web-dav server is made through the finder? I know webdav is an extension of http so http can be inserted in the connect-to-server finder dialog but I would like java applets or web- browser to be giving such URLs.

An applet would have to be signed, because it has to exec() an external command.


Here are some notes I made when I was investigating automatic mounting of a .Mac iDisk, about a year ago. It's probably different now with the me.com service name change. I think I also tried these with https as the protocol, but I can't find that in my notes. It won't be hard to test it, though.

------------
From AppleScript

osascript -e 'tell app "Finder" to mount volume "http://idisk.mac.com/ yournamehere/" as user name "yournamehere" with password "yourpassword"'

osascript -e 'mount volume "http://idisk.mac.com/yournamehere/"; as user name "yournamehere" with password "yourpassword"'

Either way works the same, so "tell Finder" is unnecessary.
Returns a classical pathname "file yournamehere:" on output.


------------ From Command-Line

mkdir  /Volumes/yournamehere
mount_webdav http://idisk.mac.com/yournamehere/ /Volumes/yournamehere

mkdir -p /Users/Shared/idisk501
ls -la   /Users/Shared/idisk501
umount   /Users/Shared/idisk501

mkdir -p /Users/Shared/.501/idisk


mount_webdav http://idisk.mac.com/yournamehere/ /Users/Shared/idisk501
.. the target (mount-point) dir must exist..
.. an interactive authentication dialog will be presented if not logged in..
.. volume is case-sensitive..


  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.