Pages

Saturday 21 May 2005

My tip got posted!

A tip I submitted to the folks at MacOSXHints is now up. It's a suggestion as to how to get more types of movies into iTunes 4.8 for playback. More about the hint in the continuation.
Note that after I submitted that hint, I found a slightly better way, for Panther users at least. Panther users can exploit QuickTime Player's scriptability to get the movie exported as a QuickTime media link file which is draggable into iTunes. The AppleScript I used is below:


tell application "QuickTime Player"
--open theFile
set theName to name of (first movie)
export (first movie) to ("Panther:private:tmp:" & theName & ".mov") as QuickTime media link with replacing
close (first movie)
quit
end tell

tell application "iTunes"
add (file ("Panther:private:tmp:" & theName & ".mov"))
end tell

tell application "Finder"
delete (file ("Panther:private:tmp:" & theName & ".mov"))
end tell

tell application "iTunes"
activate
end tell

Note: Make sure you replace every instance of Panther in the script with the name of your boot drive (as it appears on the Desktop). This does not work with QuickTime 7.0 on Tiger (might work with Pro installed).

No comments:

Post a Comment