I need an applicator to open safari in full screen to hide the toolbar from mavericks

I need an applicator to open safari in full screen to hide the toolbar from mavericks.

It sounds simple, but it is not!

I need to open safari, then open google in full screen and then hide the toolbar.

this would be equivalent to the sample below, but instead for safari

tell the Google Chrome app the open location " http://internet.ceo.wa.edu.au/Pages/default.aspx " end tell

tell the Google Chrome app to activate telling the System Events app to press the f key with {command down, shift down} end tell

+2
source share
2 answers

May be simple:

tell application "Safari"
    activate

    if (count of windows) is 0 then -- Remove "if" statement if you don't want to make a new window if there is none
        make new document at front
    end if
    tell application "System Events" to keystroke "f" using {command down, control down}
end tell

Not sure if you can do this without a toolbar.

Update 4/4

not sure what you can do with it, but look at this program. If it works the way you want. Add system events to use the drop-down lists to select an item.

The Barbarian Group has a free app called "Plainview", which seems to be a wrapper for Webkit. It works as a “full-screen kiosk-style presentation content viewer,” similar to how Chrome's presentation mode works.

, , . : http://barbariangroup.com

: http://s3.amazonaws.com/plainviewapp/plainview_1.0.178.zip

+2

:

MyApps { "Google Chrome", "Skype", "Finder" }

MyApp MyApps

tell application MyApp

    activate

    delay 3

    tell application "System Events" to tell process MyApp

        set value of attribute "AXFullScreen" of window 1 to true

    end tell

end tell

end repeat

0

Source: https://habr.com/ru/post/1680743/


All Articles