Clipstart provides a simple mechanism called File Actions to run scripts on selected movies. These are available under the File menu. Clipstart ships with several, but you can write your own in any language that can be run as a shell script, such as Perl, Python, Ruby, and even AppleScript.


The file action is sent a single parameter: the full file path for the movie to open or process.


File actions that ship with Clipstart include:


• Open with QuickTime Player

• Attach to New Email

• Add to iTunes Playlist

• Add to iPhoto


You can edit or duplicate these to add your own functionality. File actions are stored in /Users/your-user/Library/Application Support/Clipstart/File Actions.


Clipstart also includes some basic AppleScript support for getting data out of the Clipstart videos database. Open Clipstart in Apple's Script Editor to view a dictionary of available commands.


For example, the following script gets a list of all selected videos on Clipstart, then gets the tag names of the first one:


tell application "Clipstart"

set my_video to first item of (get selection)

name of tags of my_video

end


Or you can get videos that only match certain properties, such as whether they are flagged or by their name:


tell application "Clipstart"

videos whose flagged is true

end


tell application "Clipstart"

videos whose name contains "vacation"

end


You can also upload videos:


tell application "Clipstart"

set my_videos to videos whose name contains "vacation"

upload my_videos to Flickr

end


Clipstart's scripting support will continue to evolve. If you have specific automation needs, please email support.