[Cocoadialog-users] Dropdown Menu via CocoaD
Status: Beta
Brought to you by:
sporkstorms
From: Laeeq H. <lae...@gm...> - 2016-06-27 23:51:50
|
Hi Guys, can you please help. Please see the script below. I want to set if statement for every menu in the drop down. #!/bin/sh # This script will just give a Machinename. CD="/usr/local/HMUtils/CocoaDialog.app/Contents/MacOS/CocoaDialog" ICNS="/usr/local/HMUtils/CocoaDialog.app/Contents/Resources/info.icns" rv2=$($CD dropdown --title "Location Selector" --text "Select the location where this Mac will be used?" --items "Stockholm" "Borås" "Germany" "Gothenberg" "HongKong" "London" "Los Angles" "New York" Paris "Switzerland" --button1 "OK" --float) rv3=$($rv2 | cut -c 3-3) echo $rv3 |