Jump to content

Kaihao

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. There is an error in bash capturing. It should remove the spaces around the equal sign. output=$(osascript -e 'display dialog "this is the text" buttons {"Cancel","Confirm"} default button 2 with title "this is a title" with icon file "System:Library:CoreServices:CoreTypes.bundle:Contents:Resources:SideBarDownloadsFolder.icns"') answer=${output#button returned:} or just like this answer=$(osascript -e 'button returned of (display dialog "this is the text" buttons {"Cancel","Confirm"} default button 1 with title "this is a title" with icon file "System:Library:CoreServices:CoreTypes.bundle:Contents:Resources:AlertStopIcon.icns")')
×
×
  • Create New...