使用 Automator 在 Web 上搜索文件名
Web search for filename using Automator
我正在尝试制定一个 Automator 脚本,该脚本从 Finder 获取文件名并使用 Google 在特定网站上搜索它。
看起来我得到了正确的文件名并且可以把它放在一个变量中,但我不知道是否有办法将变量传递给搜索URL。 URLs 没有变量输入字段。也许可以使用一些中间函数?
您可以使用此脚本,它 return 一个 URL(不需要其他操作或变量):
on run {input, parameters}
set tName to name of (info for (item 1 of input) without size)
return "https://www.google.com/search?q=" & tName & "%20site%3Amywebpage.com"
end run
我正在尝试制定一个 Automator 脚本,该脚本从 Finder 获取文件名并使用 Google 在特定网站上搜索它。
看起来我得到了正确的文件名并且可以把它放在一个变量中,但我不知道是否有办法将变量传递给搜索URL。 URLs 没有变量输入字段。也许可以使用一些中间函数?
您可以使用此脚本,它 return 一个 URL(不需要其他操作或变量):
on run {input, parameters}
set tName to name of (info for (item 1 of input) without size)
return "https://www.google.com/search?q=" & tName & "%20site%3Amywebpage.com"
end run