Jump to content

Full Screen Safari


Recommended Posts

Hi,

I am a total newbie. Does anybody know how to create a workflow to open Safari in Full Screen mode when Google searching?

I'd appreciate your solution. Thanks!

 

Hi,

 

I've added to the Google Searches workflow from Vero a "Run Scrip" item, including this:

set SafariFullscreenStatus to ""
tell application "System Events"
	try
		set SafariFullscreenStatus to (value of attribute "AXFullScreen" of first window of application process "Safari")
	end try
end tell
if SafariFullscreenStatus is false then
	tell application "Safari" to activate
	tell application "System Events" to keystroke "f" using {command down, control down}
end if

It's UI scripting though, but it works like a charm.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...