Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to check if a url exists with applescript/scripteditor

So I want to check a url with applescript/scripteditor, if the url exists it should display a dialog and if it doesn't exists it should do nothing.

I should use it to check for updates for my own app.

iMac, OS X Mavericks (10.9.5), It's the beta version of yosemite

Posted on Jan 19, 2015 10:21 AM

Reply
Question marked as Best reply

Posted on Jan 19, 2015 10:24 AM

Use the following:


paragraph 1 of (do shell script "curl -si http://www.apple.com/")


and then check the result; this will typically return "HTTP/1.1 200 OK" if the URL exists.


(120606)

13 replies

How to check if a url exists with applescript/scripteditor

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.