Can Applescript send or send requests?

I use Hazel to organize downloaded files on my Mac. I see, I can get it to run applescripts every time it invokes a rule.

I was wondering if it is possible to send something like:

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

Then I could create a small page in which all downloads are logged.

+5
source share
1 answer

Of course, hanging the command line utility is one way. Applescripts can use command line utilities with the do shell script command. So try this ...

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

!

+11

All Articles