I have an Applescript that works flawlessly. It opens a Safari window, goes to a specific URL. Then I use this code to log in:
(login1 and login2 are declared earlier)
On the inside, I search for a numeric value in the source code using som other Javascript. Then I close the Safari window.
This works just fine but I would like it to run without me seeing it. I need it to run like every 30 minute, and if I'm using the computer at the time, it would be really annoying to have a Safari window opening up twice every hour.
Any solutions?
Thanks.
Code:
set loginForm to "document.getElementById('username').value = '" & login1 & "'; document.getElementById('password').value = '" & login2 & "'; document.getElementById('commonlogin').submit();"
do JavaScript loginForm in current tab of first window
On the inside, I search for a numeric value in the source code using som other Javascript. Then I close the Safari window.
This works just fine but I would like it to run without me seeing it. I need it to run like every 30 minute, and if I'm using the computer at the time, it would be really annoying to have a Safari window opening up twice every hour.
Any solutions?
Thanks.