Mount afp

Ronaldinho

Registered
Hi.
i've made a script so i mount my nas folder.
But i've got a ?.

Can i do i so i first ask for the afp network local then the External something like This.
**
tell application "Finder"
set Archive to "afp://Username:password@192.168.1.5/Archive"
if not (exists Archive) then
mount volume Archive
else
set Archive to "afp://Username:password@My Public IP/Archive"
mount volume Archive
end if
end tell
**
Or do i have to make 2 scripts one for the Local IP, and one for the WAN IP?
 
Last edited:
Back
Top