Be sure to check out more tutorials at http://www.wyattjohnson.ca/
This is a tutorial on how to connect your time capsule to the internet and to access the wifi drive over the internet. Note: You will NOT be able to test the results of this tutorial from within the network, try accessing it from outside your network. This is more designed for macbook users who take their computer outside the network.
tell application "Finder"
mount volume "afp://ipaddress" as user name "UserName" with password "Password"