Change the Default Screen Shot File Name in Mac OS X

Feb 16, 2012 - 8 Comments

Change Screen Shot File Name in Mac OS X

Screen shots taken in Mac OS X save to files prefixed with “Screen Shot” in the file name, but this can be changed with a defaults write command to anything else.

Change the Default File Name of Screen Shots

  • Launch the Terminal and type the following command, replacing “OSXDaily” with the file name you wish to use
  • defaults write com.apple.screencapture name "OSXDaily"

  • Now restart SystemUIServer by killing it from the command line:
  • killall SystemUIServer

  • Take a screen shot to confirm the file name has been changed from default to the custom name

Only new screen shots will be effected by this change, existing screenshot file names will remain the same.

Return to Default Screen Shot File Names

  • Again from the Terminal, type the following command”
    defaults write com.apple.screencapture name "Screen Shot"

  • Again restart SystemUIServer by killing it
  • killall SystemUIServer

  • Confirm the file names have returned to the default by printing a screen shot to the Mac OS X desktop with Command+Shift+3

Other than changing file names, you can also change where screen shots save to and change file type to a format other than the PNG default.

Thanks to MacTrast for the tip.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Mac OS X, Tips & Tricks

8 Comments

» Comments RSS Feed

  1. Thalles says:

    In the line…..

    killall SytemUIServer

    should be

    killall SystemUIServer

    ?

  2. KKDK says:

    I would rather use this
    $ps -ef | grep [S]ystemUI | awk ‘{print $2}’
    25116
    $kill -HUP #PID fetched from above command#

  3. Stephen Strum says:

    The tip is well intentioned but really does not solve the issue of hte long filename that comes after “screen shot” or “OSXDaily”. In other words, you still have OSXDaily 2012-02-16 at 8.22.AM.jpg or whatever file format you have chosen.

    A tip that would change the entire filename would be great.

    Also, Onyx allows you easily to make a change in image format (jpeg vs png vs other), whether you would like a shadow or not, the location and the first part of the filename as well. The area for these selections is in Parameters menu item in Onyx.

  4. I agree with Stephen, it would be great to chance the entire naming convention. I would most prefer a different way to write the date, namely YYYYMMDD.HHmm.

    I would make it: perezfox_screen_20120216.1155.png, for example.

  5. IamAziz says:

    You don’t have to use:
    killall SystemUIServer

    The command takes affect right away.

  6. Peter says:

    To reset this to the default, you should actually use:

    defaults delete com.apple.screencapture name

    The default (when you delete the custom value) is region-specific and changes depending on the language you use for your computer.

    FYI you do need to kill the SystemUIServer on Mavericks.

  7. rjm says:

    Help… How can I change the default screenshot name, to whatever I have written on Preview search tool at the time of the screenshot. As a function on terminal or as a script. Thanks in advance

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates