Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ClarkeB

macrumors 6502
Original poster
Jan 24, 2005
319
0
My uncle is a lawyer and he's arguing in some court that has a webcast. My grandmother wants to see the feed desperately and will be the only one at home when it is on. Is there anyway I can use applescript (the main computer in my house only has Panther) so that the link (which I have put on the desktop) will open at a certain time and just go?

Thank you!
 
Not sure, but you could do this:

You could set the home page to the link that you want, tell her that all you have to do is press this button and it'll launch to it at whatever time.

just an idea. :eek:
 
drag the link to the desktop, so that double clicking opens the URL. then you can open up ical, and set up a new event, and make the alarm (set to 0 minutes before) opening that file. then it'll open at whatever time you set up.
 
Or if you wanted to do it the way you originally described then you could just set up an ical event that launches the file that is a bookmark to that page. Or you could write a simple html page that uses 2 frames and the refresh tag so she could just double click the html file you wrote and it would load that page you want and then it would continually reload at whatever interval you specify. There are lots of ways you could do it depending on exactly what you want to achieve. Think outside the 6 sided polyhedron.
 
Yes sir you can.

Copy past this text into "Script Editor":

tell application "Safari"
repeat
activate
open location "
URL of website. must be full URL and include http://"
delay
put the amount of minutes you want to go by before refreshing multiplied by 60 here
end repeat
end tell


Now go to File>save as, give it a name, make sure to save it as an Application, deselect the "Run Only", Startup Screen" and "Stay Open" check boxes. Hit save.
Navigate to the place where you saved it and double click it.
Safari will now open the specified web-page and refresh at the specified interval!

Unfortunately Im not a very good scripter, so unless you put a number after "repeat" (example: repeat 5) it will keep repeating into infinity.
The only way to stop the beast is to use the command, option esc and force quit it......
 
There is a functionality for running system events according to date, I saw it used for an applescript to back up your files.

EDIT: the basic setup for your applescript to hande dates is as follows,

Code:
global todaysDate
global today
set todaysDate to current date
set today to time of todaysDate as string
return today

From there, just use that variable to handle whatever it is you want to do

I'm trying to figure out why it's giving me a strange number for today, for example it returns "8675" instead of 2:24 AM....
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.