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" start (profile named profileName) end tell