Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 28, 2011, 05:37 PM   #1
Mikel30
macrumors newbie
 
Join Date: Jan 2004
Reloading a webpage

I'm trying to write an Applescript, but I'm not quire sure how to do it. Basically, there's a web page that I want to keep checking on. It's not live yet, and I want to find out when it's up.

The tricky part is that the webpage redirects if it isn't up yet, so I can't simply reload the page. I want the Applescript to go to the webpage, check to see if it got redirected somewhere else, and if so, load it again. So I need to check to see what page it's currently at, and that's what I can't figure out.
Mikel30 is offline   0 Reply With Quote
Old Mar 28, 2011, 05:56 PM   #2
balamw
Demi-God (Moderator)
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
IIRC curl (http://curl.haxx.se/docs/manpage.html) won't follow redirects unless you tell it to. It also seems like you can ask it to output how many redirects it was asked to follow in case it does.

EDIT: I just checked this on a site I have registered, but not yet set up hosting for. curl http://parkedsite.com gives no output, while curl -L http://parkedsite.com gives me the Network Solutions "Coming Soon" page.

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme

Last edited by balamw; Mar 28, 2011 at 06:04 PM.
balamw is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Webpages are not responding. To visit the selected webpage, all webpages in other tab Toe Mac Applications and Mac App Store 0 Sep 16, 2011 12:35 PM
scroll up to reload a webpage in Safari Trixster Mac Applications and Mac App Store 0 Jul 26, 2011 11:23 AM
Soccer Reloaded, Tennis Reloaded & Cricket Reloaded For iPad - Added Features s.dasaraddi iPad Apps 0 Jan 25, 2011 03:38 AM
Issue: Safari reloading background webpages all the time. kinchee87 iPod touch 6 Dec 14, 2007 01:17 AM


All times are GMT -5. The time now is 12:45 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC