Re: Open Safari in fullscreen and hide toolbar script
Re: Open Safari in fullscreen and hide toolbar script
- Subject: Re: Open Safari in fullscreen and hide toolbar script
- From: Christopher Stone <email@hidden>
- Date: Sat, 01 Aug 2015 07:02:02 -0500
On Aug 01, 2015, at 03:07, Yvan KOENIG < email@hidden> wrote: I tried to borrow a piece of code to Christopher Stone but I discovered that it fails if there is no Safari window already open:
______________________________________________________________________
Hey Yvan,
C'mon, you know how to fix that... :)
--------------------------------------------------------------------------
tell application "Safari" try set frontDoc to first window where its document is not missing value
tell frontDoc set URL of its document to theURL close (tabs whose index is not 1) end tell
close (windows where it is not frontDoc)
on error make new document with properties {URL:theURL} end try
end tell --------------------------------------------------------------------------
-- Best Regards, Chris
|
_______________________________________________
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