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. Apple script: tell application “Finder” try mount volume “afp://ipaddress” as user name “UserName” with password “Password” end try end tell
More here:
Access your Time Capsule over the internet (File Server)