#!/bin/bash
#
Result=$(/usr/bin/osascript -e 'display dialog "请输入关键字:" default answer "" with title "aaaa搜索SOP"
set result1 to result
set the textValue to text returned of the result
set the button_data to button returned of the result1
if button_data = "Cancel" then
return ""
end if
return textValue')
if [ -z "$Result" ]; then
exit 0
fi
Result=$(echo "${Result}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')