Rép: Open Safari in fullscreen and hide toolbar script
Rép: Open Safari in fullscreen and hide toolbar script
- Subject: Rép: Open Safari in fullscreen and hide toolbar script
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 01 Aug 2015 16:25:15 +0200
Le 01/08/2015 à 15:57, Deivy Petrescu < email@hidden> a écrit :
On Aug 1, 2015, at 09:10 , Yvan KOENIG <email@hidden> wrote:
Hello
As you know I'm curious so, I decided to compare Christopher scheme to the brute force one.
# brute force
use framework "Foundation"
set beg to current application's NSDate's |date|()
tell application "Safari" activate close every window make new document with properties {URL:"http://www.google.com”}
Just use open locationL since Safaris is most likely the user’s browser first choice.
You will have to explain that to Christopher ;-) It's what I was doing before he posted. repeat # Wait until the window is really available delay 0.1 if exists window 1 then exit repeat end repeat end tell
<snip> tell frontDoc set URL of its document to theURL close (tabs whose index is not 1) end tell
Just a note tab 1 is not necessarily. The front tab is the "first tab whose visible is true".
Same comment here. I didn't make change to Christopher's code. close (windows where it is not frontDoc) on error make new document with properties {URL:theURL} end try end tell
</snip> If it doesn't I will file a bug report.
Yvan KOENIG running Yosemite 10.10.4 in French (VALLAURIS, France) samedi 1 août 2015
Deivy
Yvan KOENIG (VALLAURIS, France) samedi 1 août 2015 16:04:19
|
_______________________________________________
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