Skip to content

Instantly share code, notes, and snippets.

@knice
Last active November 5, 2015 22:10
Show Gist options
  • Select an option

  • Save knice/c85ffd1466af86d20e81 to your computer and use it in GitHub Desktop.

Select an option

Save knice/c85ffd1466af86d20e81 to your computer and use it in GitHub Desktop.
Tell the Rittenhouse screen to activate, load a URL, and go into full screen mode
tell application "Google Chrome"
activate
-- 1. Close all windows
-- 2. Open a new window
set chromeWindow to window 1
tell chromeWindow
-- 1. Go to: http://s.codepen.io/knice/debug/NGYNXd
-- 2. Enter presentation mode
end tell
end tell
@shleewhite

Copy link
Copy Markdown
tell application "Google Chrome"
    activate
    set windowCount to count (windows)
    if windowCount > 0 then
       close windows
    end if
make new window
set chromeWindow to window 1
tell chromeWindow
    open location "http://s.codepen.io/knice/debug/NGYNXd"
    enter presentation mode
end tell
end tell

@shleewhite

Copy link
Copy Markdown

the indentation somehow got off but that should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment