1
Apr
There are very neat things in mac osx. For example, this Folder Action

I do a lot of screen capture on the iMac, and love the “command+shift+4″ shortcut. However, one thing really bothers me is that the screen capture file is named as “Picture 1.png” etc. Based on instruction here and the original AppleScript, I find the solution.
- Download the AppleScript and put it into _root_/Library/Scripts/Folder Action Scripts/. (I host a copy of Ryan’s script here, renametodatetimeandmovetodatefolder.zip)
- * I modified the original script a little, in which way the screen capture file will not be moved to a year-month-day sub-older. Here is the original script,

and I modified (deleted several lines and changed one variable) the end intoset thePhotoFolderName to ((yearNum as string) & "-" & (monthNum as string) & "-" & (dateNum as string)) set the target_folder to theFolder -- rename the file to the new file name - Enable the Folder Action via contextual menu
I did for my Desktop folder (my default location)

and sign the AppleScript to it

- Yes, it is working now. By the way, if you are not sure where is the default location, try the following in the terminal
defaults write com.apple.screencapture location /Full/Path/To/Folderand use the following to enable it
killall SystemUIServer
Have fun!
One Response to “Enable Folder Action to automatically rename screen capture files”
Leave a Reply
blog by cail
- » Buy Chinese Painting
- » a page for 99life, fdu
- » 2shRNA - design oligos for RNAi
- » Feed collection of leading biology journals
- » How to use ImageJ to analyze images?
- » Play background music
- » About CaiLog
New in 'How-To'
- http://pubmeder.appspot.com/ open to public
- PubMed-er : ease your paper reading in browser
- Use vUSBbus to backup and emulate Sentinel and HASP dongles (HASP3/HASP4/Hasp HL USB keys) #getkey
- Install Snow Leopard on EeePC 1000HA (for Google Contact Sync with photo)
- How to setup Exchange ActiveSync account on #htc #evo 4G (should work for other #android phone with HTC Sense)
- Sprint HTC #evo running on Verizon network … and speed comparison
- HTC #evo: #root from @toastcfh, RUU stocks, OTA update and @unrevoked
Hot in 'How-To'
- analog – analog/digital – digital, VGA – DVI – HDMI - 26,386 views
- Ez-12 windsurfer antenna - 14,546 views
- How to add new ringtones to iPhone - 12,324 views
- Air Video, video stream and live convert your favorites to iPod Touch, iPhone and iPad (How to setup the server for Ubuntu and OpenSolaris) - 9,504 views
- mac osx 10.5.1 kalway on Lenovo Thinkpad T43 2668AJU - 8,399 views


I delete the code “move (this_item) to theFolder” from the AppleScript. The file is in the right place and does not need to be relocated. Actually, with that code, the computer will be confused and there will be no file display on the Desktop – the file is there, you can find it in Finder – how strange @#$%