Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've written a simple-minded "take a break" reminder which just opens a PDF notice. This works fine, but I wish I could open the PDF file in full screen mode from the command line. Does anyone know how to do that? Perhaps some osascript magic?

while true
        sleep $D
        open $B
share|improve this question
Why not use AntiRSI ? – user588 May 15 '12 at 22:16
@mankoff, for the fun of writing my own... – lhf May 15 '12 at 22:26

I've found a way. Does anyone way a simpler way?

tell application "Preview"
end tell

tell application "System Events"
        key down {command}
        key down {shift}
        keystroke "f"
        key up {shift}
        key up {command}
end tell

I wish I could do simply "osascript -e 'application "Preview" to fullscreen'.

share|improve this answer
You can. At least kind of...… – Max Ried May 15 '12 at 13:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.