How do I mount a network drive based on my IP address or wifi network?
set homeip to "Enter Your Home IP Here"
set homedrive to "afp://PlzUpvoteThis.Answer"
set workdrive to "smb://FeelFreeToEdit.This"

set myIP to (do shell script "curl ipinfo.io/ip") // Gets ip


if myIP is homeip then // Checks if your ip matches your home ip
    do shell script "open " &amp; homedrive
else
    do shell script "open " &amp; workdrive
end if