I’m trying to login to igoogle by applescript
I have used this to open the page, although it doesn’t work reliably.
It opens 2 pages 1 on the activate and 1 on the chosen page.
how can I get this script to open only the igoogle page?
property site_url : "https://www.google.com/accounts/ServiceLogin?service=ig&passive=true&continue=http://www.google.com/ig%3Fhl%3Den&followup=http://www.google.com/ig%3Fhl%3Den&cd=US&hl=en&nui=1<mpl=default"
tell application "Safari"
activate
open location site_url
-- wait until page loaded
end tell
I also tried this shell script to no avail
set pageSource to do shell script "curl [url=https://www.google.com/accounts/ServiceLogin?continue=http://www.google.com/ig%3Fhl%3Den&followup=http://www.google.com/ig%3Fhl%3Den&service=ig&passive=true&cd=US&hl=en&nui=1<mpl=default]https://www.google.com/accounts/ServiceLogin?continue=http://www.google.com/ig%3Fhl%3Den&followup=http://www.google.com/ig%3Fhl%3Den&service=ig&passive=true&cd=US&hl=en&nui=1<mpl=default"[/url]