Skip to content

Instantly share code, notes, and snippets.

View Yaarik's full-sized avatar
🎯
Focusing

Dries Grobler Jr Yaarik

🎯
Focusing
View GitHub Profile
@dsummersl
dsummersl / makeFullScreen.applescript
Created November 30, 2012 12:19
Applescript script for toggling applications in and out of fullscreen mode.
on run argv
(*
Toggle an application from full screen to non full screen (or the reverse).
Parameters:
1: application name(ie, Chrome)
2: boolean (true/false).
When true ensure that the application is in full screen mode (if not, make it so)
When false ensure that the application is NOT in full screen mode (if not, make it so)
*)
set theapp to item 1 of argv