User Links for
 nheacock







CURRENT MOON
(North America)
History
209 Entries
09/13/15
08/16/15
07/18/15
06/14/15
05/28/15
06/17/12
06/05/12
05/18/12
05/15/12
05/13/12
05/12/12
05/11/12
08/31/11
07/01/11
06/24/11
06/01/11
04/29/11
04/22/11
04/19/11
04/18/11
03/28/11
03/27/11
03/22/11
03/14/11
02/25/11
02/17/11
02/08/11
02/01/11
• 01/31/11
01/02/11
12/30/10
10/13/10
09/12/10
08/28/10
08/15/10
07/17/10
07/11/10
07/07/10
06/14/10
06/07/10
05/20/10
04/24/10
04/10/10
03/22/10
03/18/10
03/15/10
03/05/10
02/21/10
02/09/10
01/13/10
12/14/09
12/09/09
12/08/09
12/05/09
12/01/09
11/24/09
11/01/09
09/24/09
09/19/09
09/01/09
08/30/09
08/22/09
08/15/09
08/12/09
07/25/09
07/22/09
07/21/09
07/02/09
07/01/09
06/29/09
06/22/09
06/15/09
05/22/09
05/21/09
05/20/09
05/07/09
04/30/09
04/24/09
04/20/09
03/29/09
03/27/09
03/26/09
03/06/09
02/28/09
02/15/09
01/19/09
09/27/08
09/25/08
09/22/08
08/27/08
08/03/08
07/25/08
07/24/08
07/11/08
07/07/08
07/06/08
07/04/08
07/02/08
06/27/08
06/24/08
06/12/08
05/03/08
04/30/08
04/11/08
03/24/08
03/05/08
02/21/08
02/17/08
02/16/08
01/15/08
11/06/07
09/11/07
08/28/07
08/18/07
07/26/07
07/13/07
07/10/07
07/09/07
06/15/07
05/14/07
05/10/07
05/07/07
04/22/07
04/15/07
03/16/07
12/17/06
12/02/06
08/27/06
07/23/06
07/20/06
07/19/06
07/16/06
06/23/06
06/13/06
06/10/06
05/22/06
05/02/06
04/28/06
04/23/06
04/01/06
03/11/06
02/12/06
01/25/06
11/09/05
11/08/05
10/27/05
09/27/05
09/12/05
08/01/05
07/29/05
07/25/05
07/24/05
07/18/05
07/14/05
07/09/05
07/04/05
06/26/05
06/18/05
05/06/05
03/12/05
03/11/05
01/10/05
01/02/05
12/30/04
12/06/04
11/03/04
11/01/04
09/22/04
09/21/04
09/10/04
09/06/04
09/05/04
08/13/04
08/08/04
08/07/04
08/06/04
08/03/04
07/20/04
07/12/04
07/10/04
07/08/04
07/06/04
07/05/04
06/28/04
06/22/04
06/19/04
06/18/04
06/16/04
06/15/04
06/14/04
05/31/04
05/23/04
05/14/04
05/09/04
05/08/04
04/30/04
04/25/04
04/23/04
04/22/04
04/21/04
04/19/04
04/09/04
04/01/04
03/30/04
03/29/04
03/08/04
03/02/04
02/24/04
11/30/-1
    
Monday, January 31st, 2011
AppleScript For Adding Camera Temp To CR2 File Name
 
I thought I'd share a little Mac utility script I just wrote for adding the Canon internal temperature information to the filename for CR2 files.

Certain models of Canon cameras store the temperature in the EXIF data. I'm tapping into that to put it in the filename where it's more easily accessible for dark frame matching.

NOTE: Please don't ask me which models, I don't know. I have a 1000D. You can run a simple test to see if your camera has the temp info in the EXIF by:
1) Open your CR2 file in Preview
2) Under the Tools menu choose "Show Inspector"
3) Under the Canon tab see if CameraTemperature is listed.

If it is, then you can use this script. If it's not, then you can't. So far as I know, most, if not all of the newer models have it.

Here is some info on the script:

Script Requirements
  • OS: Unknown - I wrote it in 10.6.5
  • Pre-Req: ExifTool (a command line EXIF extraction utility)
  • Camera: Must be a model that stores this information in the EXIF dataFilename: Must have "dXX" in the file name or you need to edit the script
 
Script Usage
  • Double click the script to launch it
  • Point it to a folder containing CR2 files (it will find the CR2s if there are other files in there)
  • Follow the dialog to abort, rename with confirmation for each file or rename all files blindly
 
Some info on the file name
  • I use as my file naming convention: Object-ISO-Duration-TempInDegrees-SequenceNumber.CR2
    • An example file name looks like this: M42-i800-s300-d35-001.CR2
  • To use this script as is, the filename must have dXX somewhere in it.
    • Examples: M42-i800-s300-dXX-001.CR2, or ABC-123_dXX.53888.CR2
  • As is, the dXX will be replaced with the temperature rounded to the nearest whole number
  • As is, the script will convert the temp from C to F (easily modified if you don't want that)
 
Tips for changing the script
  • Open the script in the Apple Script Editor to make changes to it (or to just look at it)
  • The script logic should be pretty self explanatory if you don't like my naming convention or if you want it to do something else. Applescript is very easy to write.
  • There is some info in the script itself to help guide where someone may want to change it. It's less then 100 lines and only a handful do the things most folks would want to change.
  • There are some default parameters at the beginning of the script to do some basic customization:
    • Convert to Fahrenheit (default is true)
    • String To Replace (default is "dXX")
    • Whether to do a replace or just append the temperature to the end (default is to perform a replace)
    • A leading and trailing character or string
        
DISCLAIMER:
You can ask me some questions about it if you want, but I'm not an AppleScript expert.

This script is NOT supported or guaranteed. It's free and I don't want donations or anything. USE AT YOUR OWN RISK.

Download the script here:
http://tinyurl.com/CR2TempScript

Download ExifTool here:
http://www.sno.phy.queensu.ca/~phil/exiftool/

Someone may want to do something similar for Windows users.





Comments:


Add A Comment:
Your Name (optional):

*Your Comment:



CAPTCHA Image   Reload Image
Enter Code*:


NOTE: Comments are moderated and do not post immediately.



© 2008 Triad Technology Systems | www.triadtechsys.com