I needed a way to make my apps full screen from bash scripts. There is no super-easy way, but it's not too hard either.
Put the attached script into e.g. /usr/local/bin
and make it executable. Now you can call
fullscreen Safari
and Safari will go full screen.
osascript -e 'tell application "System Events" to set UI elements enabled to true'
.TextMate
and not textmate
.You also may use the script to exit or toggle Full Screen. Just edit the script according to the comments.