AppleScript

Many functions in Turbo.264 HD can be accessed
using AppleScript.
Dictionary
The AppleScript Dictionary of Turbo.264 HD lists all
available commands and parameters. To write
scripts and browse the dictionary the application
Script Editor is available on every computer
running Mac OS X. It can be found under
Applications/AppleScript. You can also find example
scripts in the online Elgato Knowledgebase.
If you find that there is functionality in Turbo.264 HD
that is not present in the AppleScript dictionary,
please write us at support@elgato.com. We will try
to accommodate your needs in future software
updates.
Turbo.264 HD AppleScript Commands
encode"v : Encode added files.
encode
[no error dialogs true] : Do not show error dialogs
that happen during encoding. Caller can check
lastErrorCode to find out about them.
add file"v : Add a file to the queue for later
encoding.
add file furl : The file(s) to be added.
[with destination alias] : file to export to
[exporting as iPod High/iPod Standard/Sony PSP/
AppleTV/iPhone/YouTube/YouTubeHD/HD720p/
HD1080p/custom] : type of export
[with custom setting text] : name of the custom
setting if the export type is set to ‘custom’
[replacing boolean] : replace file if it exists
Application"n : The Turbo application itself.
properties
lastErrorCode (integer, r/o) : Last error code that
occurred, e.g. during encoding.
isEncoding (boolean, r/o) : True if Turbo.264 is
currently encoding, False if you can start a new
encode.
isHardwarePluggedIn (boolean, r/o) : True if the
Turbo.264 hardware is plugged in.
Sample AppleScript
The following sample script will take a file called
“file.mp4” on the Desktop, and immediately encode
it for iPhone as a new file called “finished.mp4”,
saved on the Desktop.
tell application "Turbo.264 HD"
add file "/Users/nick/Desktop/file.mp4" with
destination "/Users/nick/Desktop/
finished.mp4" exporting as iPhone
encode
end tell
Please note that “ "/Users/nick/Desktop/” is an
example path; if your OS X account name is mary,
then the path would be “/Users/mary/Desktop/”. An
easy way to find the correct path to a file would be
to drag it onto the ScriptEditor window, at the point
you want to use it - AppleScript will take care of the
rest.
Turbo.264 HD Manual
22!
AppleScript