【发布时间】:2012-09-22 15:13:18
【问题描述】:
我使用 Hazel 在我的 Mac 上整理下载的文件。我知道我可以让它在每次触发规则时运行 applescripts。
我想知道是否可以让它发送如下内容:
http://my.server.com?type=Show&name=Big+Bang+Theory
然后我可以创建一个记录所有下载的小页面。
【问题讨论】:
标签: php macos get applescript
我使用 Hazel 在我的 Mac 上整理下载的文件。我知道我可以让它在每次触发规则时运行 applescripts。
我想知道是否可以让它发送如下内容:
http://my.server.com?type=Show&name=Big+Bang+Theory
然后我可以创建一个记录所有下载的小页面。
【问题讨论】:
标签: php macos get applescript
当然,命令行实用程序 curl 是一种方法。 Applescripts 可以通过“do shell script”命令使用命令行实用程序。所以试试这个...
set theURL to "http://my.server.com?type=Show&name=Big+Bang+Theory"
do shell script "curl " & quoted form of theURL
以上将页面结果返回给applescript。也许您宁愿在默认浏览器中打开链接...
set theURL to "http://my.server.com?type=Show&name=Big+Bang+Theory"
open location theURL
所以选择吧!
【讨论】: