欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

自己亲自做的 进行 打开网站搜索的功能 有大用 有大大用 有大大大用

#!/bin/bash
#

Result=$(/usr/bin/osascript -e 'display dialog "请输入关键字:" default answer "" with title "jsfaq搜索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:]]*$//')


普通分类: