applescriptを独学するため
サイトに記載されている例を元に逆引きの技術をつくってみる
http://tukaikta.blog135.fc2.com/blog-entry-67.html
display dialog "Choose VNC or SSH" buttons {"VNC", "SSH", "Cancel"} default button 3 with icon note
copy the result as list to {buttonp}
if the buttonp is "VNC" then
else if the buttonp is "SSH" then
end if
set aUserName? to "--ユーザー名"
"vnc://" & aUserName? & ":" & aPassword
try
end try
tell application "Terminal" to activate
tell application "Terminal"