Re: Help clicking a web button with AppleScript without GUI scripting
Re: Help clicking a web button with AppleScript without GUI scripting
- Subject: Re: Help clicking a web button with AppleScript without GUI scripting
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 10 Jun 2008 00:33:14 -0700
- Thread-topic: Help clicking a web button with AppleScript without GUI scripting
Title: Re: Help clicking a web button with AppleScript without GUI scripting
'open location' does not need to be in a safari block. It opens the page on your default browser, whichever that may be - must be Safari in your case.
It must be the simple 'tell application "Safari"' that's opening a page all on its own, even without the 'activate'. if Safari was not open to begin with. Omit that. Write only:
open location "http://www.mail.yahoo.com"
That's all you need.
--
Paul Berkowitz
From: SVV Satyanarayana <email@hidden>
Date: Tue, 10 Jun 2008 10:19:44 +0530
To: Peter Baxter <email@hidden>
Cc: AppleScript-Users <email@hidden>
Subject: Re: Help clicking a web button with AppleScript without GUI scripting
Still its opening 2 windows of Safari ????
SVV Satyanarayana
Bangalore, India
P Please consider the environment
before printing this email.
On 09-Jun-08, at 2:13 PM, Peter Baxter wrote:
tell application "Safari"
--remove the line telling Safari to activate. This is what triggers the default page on opening.
open location "www.mail.yahoo.com <http://www.mail.yahoo.com> "
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden