When creating screenshots for the latest version of Textastic for Mac in OS X Yosemite, I needed a way to quickly hide the Dock and all desktop icons without using a separate demo account on my Mac.
This is the resulting shell script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Setting the “CreateDesktop” default to false hides the desktop icons, but still displays the wallpaper. The script uses AppleScript to hide the Dock.
Now I can just use Spotlight to execute the
toggle_presentation_desktop.command shell script and it will toggle the Dock and desktop icons.
I also used Bartender to hide all menu bar icons except Spotlight and Notification Center.
This is one of the resulting screenshots: