Scripts

This sections includes a number of script handlers that I find useful with iMagine Photo. If you would like to add your own scripts or handlers just e-mail me at: ktam at yvs.eu.com. Mostly the scripts can be opened in Script Editor by clicking on the link using Safari. If this sections proves popular, I will be archiving the scripts in a script library for download.

 

Updated: 8th June 2005

I have written a script that adds a text caption to the bottom of image files. It is has numerous configurable options that can be modified by setting the properties at the beginning of the script. To download the script click here.

Updated: 7th June 2005

I have written a script that takes snapshots of movies. This script is a droplet applciation. To configure the script double click it. To use the script just drop your movie files onto the script. The script takes a snapshot of the of the dropped movies at a specified time into the move and saves the snapshot as a jpeg file in specified folder. The snapshot file name is the same as that for the movie except the file extension has been replaced with jpeg. You can download the script here.

Updated: 3rd April 2005

The script displaying a map in Safari had a bug in it relating to the calculation of seconds in longitude and latitude. The link has been updated for the 13th February addition. Thanks to Mark Wright for pointing this out.

Added: 3rd April 2005

This is the first non iMagine Photo script. A script to behave as a folder action replacement when files are copied into the folder which would have had a folder action script attached and the files are either large or being copied over the network. This script is designed to avoid the problem where a folder action will trigger before a file is completely copied.

To use the script you will need to replace the code in ProcessThisFile with your own code. Do not try and add this script as a folder action. Just run the script and it will ask you to specify the folder to watch.

Thanks go to Jonathan Nathan for cleaning up and optimizing my original script. http://homepage.mac.com/jonn8/as/

Click here to download the script.

Added: 2nd March 2005

Another movie creation script. This script asks you to choose the frame rate, the codec for compressing the data. The script also asks for a folder to watch where image files arrive, a folder to temporarily move the files to and the name of the movie you want to create. If no new image files arrive in the folder for five minutes the script processes the last image file and then creates the movie, and moves all the files back to the original folder. Download this script by clicking here.

Added: 13th February 2005

Two small scripts that take advantage of the GPS exif information in image files.

The first script which can be opened in Script Editor by clicking here will display a map in Safari that centres on the GPS location embedded in the digital image, if the image file contains GPS information. If you save this script as an application package from Script Editor then you will be able to just drop an image file onto the script to see a map centred on where it was taken.

The second script allows you to set the GPS exif information in a digital image file. This script can be opened in Script Editor by clicking here.

Added: 7th February 2005

The AppleScript droplets included with iMagine Photo do not copy the exif information when they process the image files. These scripts behave the same except that they copy the exif information. Click here to download these scripts.

If you would like to modify the droplets you will need this AppleScript library file. When you modify the files make sure that the load script command refers to the new file not the old one.

Added: 3rd February 2005

The first script contains three handlers for getting particular exif information out of the list of exif records and can be opened in Script Editor by clicking here. For information on how to get exif information see the Read/Write Exif metadata section.

The second script creates a movie made from blending digital photos. It will ask you to specify a folder with images in it, I wouldn't advise more than half a dozen images to be in the folder. It will also ask where you want the movie to be created. You can open the script in script editor by clicking here. This script is quite slow if you are processing digital photographs that are much larger than the size of the movie you are going to create. It is best to scale your images to the size of the movie dimensions, in which case the script will be quite quick.