Hello,
I'm trying to write an applescript to connect automatically to my NAS over AFP on my local network, or over FTP if I'm outside.
I'm a beginner with Applescript, and I tried that:
I would like the script to check connection with AFP, and if the connection cannot be set, to try a connection with FTP. And if it cannot connect, to do nothing (not even an error message).
Is it possible?
Thank you,
Mathieu
I'm trying to write an applescript to connect automatically to my NAS over AFP on my local network, or over FTP if I'm outside.
I'm a beginner with Applescript, and I tried that:
tell application "Finder"
try
mount volume "afp://XXX:XXX@192.168.X.X/VOLUME"
end try
else
mount volume "ftp://XXX:XXX@xxxx.dscloud.me/VOLUME"
end tell
try
mount volume "afp://XXX:XXX@192.168.X.X/VOLUME"
end try
else
mount volume "ftp://XXX:XXX@xxxx.dscloud.me/VOLUME"
end tell
I would like the script to check connection with AFP, and if the connection cannot be set, to try a connection with FTP. And if it cannot connect, to do nothing (not even an error message).
Is it possible?
Thank you,
Mathieu