AppleScript editor to connect and disconnect again to specific server
I finaly figered out how to do that so i write this code and it works

tell application "Finder"
    try
        eject alias "Volume name"
    end try
    mount volume "afp://Server/volume"
        open alias "Volume name"
end tell


I hope it will be helpful.