Mac OS X Screen Capture, Default Location and Default File Name
On my post titled “Mac OS X Screen Capture, Default Image Format and How To Change It“, a user called “frz” asks:
Anyone know how to change the default filename to the date and time the capture is made? Example: “10-12-09 10:53.png” instead of “Picture 1.png” as it is saved as default today.
That’s a really great question!
Unfortunately, I haven’t found a way to change the file name to the creation date and time within the screencapture app settings themselves. However, there is a good way to handle this – though it requires a couple extra steps to get it set up.
The method is to change the default location that the screencapture app saves files and to use an AppleScript Action attached to a folder to handle the file renaming as it’s created.
Ryan Todd wrote a great script back in November 2005 that works perfectly for this application. Download it (and give him thanks if you like it) here. It will rename the file in a year/month/day/hour/minute/second format (e.g. 20090203163543.jpg) and create a sub-folder it will be put in named with a year-month-day format (e.g. 2009-02-03).
Here’s what I suggest:
- Download and install Ryan Todd’s “renameToDateTimeAndMoveToDateFolder” script and install it in the _root/Library/Scripts/Folder Action Scripts/ directory.
- Create a folder in a location such as your desktop or in your documents folder to receive screen captures. Name it something like “ScreenCaptures” or whatever works for you.
- Open terminal and change the default location that screencapture will save images by typing:
defaults write com.apple.screencapture location /Full/Path/To/Folder
then type:
killall SystemUIServer - Go to your new “ScreenCaptures” folder in the Finder and ctrl-click or right-click on it and select More > Enable Folder Actions
- Ctrl-click or right-click on the folder again and select More > Attach Folder Actions then navigate to and select the renameToDateTimeAndMoveToDateFolder.scpt to attach it to the folder
That’s it!
Now, every time you use screencapture, the image will be saved to that folder, the AppleScript Action will run and your image will be renamed with the creation date/timestamp and saved into a sub-folder with the current day’s date!
If you enjoyed this post, make sure you subscribe to my RSS feed!Tags: Apple, default filename, default image, default location, documents folder, file renaming, folder action scripts, folder actions, image format, library scripts, Mac, macs, open terminal, OS X, png, s, scpt, screen capture, screencapture, screencaptures, timestamp
This entry was posted on Tuesday, February 3rd, 2009 at 6:00 pm and is filed under General, Gizmos, Web Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Posts
February 12th, 2009 at 5:18 pm
Good
Posicionamiento Paginas Web
Posicionamiento Paginas Web
March 7th, 2009 at 4:39 pm
Dies ist ein gro?er Ort. Ich m?chte hier noch einmal.
March 7th, 2009 at 4:45 pm
@fehrrad Can you repeat that in English?
March 9th, 2009 at 6:03 am
now in my rss reader)))
————————
my blog: http://pedeno.ru/
April 1st, 2009 at 1:21 pm
Enable Folder Action to automatically rename screen capture files | En.dogeno.us says:[...] that the screen capture file is named as “Picture 1.png” etc. Based on instruction on here and the original AppleScript, I find the [...]
April 1st, 2009 at 8:31 pm
beautiiful blog merciiiiii
May 13th, 2009 at 4:32 am
What’s the platform number?
—————————————
signature: http://potet.ru
May 27th, 2009 at 2:46 am
I really liked your blog!
June 13th, 2009 at 12:00 pm
Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting
June 22nd, 2009 at 5:55 am
thanks
June 24th, 2009 at 5:16 am
thanks
SUPER !
July 6th, 2009 at 11:28 am
You know so many interesting infomation. You might be very wise. I like such people. Don’t top writing.
July 16th, 2009 at 12:58 pm
very helpful post, you should post more stuff related to this.
July 19th, 2009 at 11:13 pm
NIce article. Really nice! But i think that you could give some more info on a couple of points. However, keep on developing your good resource
July 21st, 2009 at 4:09 pm
Useful website ! will visit soon
July 23rd, 2009 at 4:02 pm
Hey, ok, I get it, I guess – but does this really work?
July 26th, 2009 at 8:08 pm
How long has this forum been here?
Very helpful.
Dankeydoo
August 8th, 2009 at 10:25 am
Jsut want to let you know I found this really interesting
October 20th, 2009 at 7:57 am
So nice site. I will visit it more often and read comments. Thx u a lot
January 28th, 2010 at 11:29 am
Nice read. I also saw a video in youtube about a review on new Apple iPad. Here is the link – http://www.youtube.com/watch?v=EAb_yg2XF-k
April 9th, 2010 at 8:59 pm
“No candle loses its light while lighting another candle” So never stop sharing and helping others because it makes ur life more meaningful.
April 25th, 2010 at 9:50 pm
i love photo blogs, there is a saying that a picture speaks a thousand words and this saying is also true for blogs that mostly displays photos.
June 12th, 2010 at 6:56 am
This post is so help to me! Thanks for share.