7

我使用 Hazel 在我的 Mac 上组织下载的文件。我看到我可以让它在每次触发规则时运行 applescripts。

我想知道是否可以让它发送类似的东西:

http://my.server.com?type=Show&name=Big+Bang+Theory

然后我可以创建一个记录所有下载的小页面。

4

1 回答 1

16

当然,命令行实用程序 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

所以选择吧!

于 2012-10-01T18:45:34.120 回答