display dialog "Enter Profile Name:" default answer "default" buttons {"Cancel", "OK"} default button 2 set the profileName to the text returned of the result tell application "AlmostVPNProMenuBar" stop (profile named profileName) end tell