Hi guys,
I have a QT export settings file. I need a droplet that when a video is is dropped on it it does all the settings stuff and then exports the new file to the desktop.
Any help or links would be great!
Thanks a lot,
Max
Hi guys,
I have a QT export settings file. I need a droplet that when a video is is dropped on it it does all the settings stuff and then exports the new file to the desktop.
Any help or links would be great!
Thanks a lot,
Max
Ok, I tried this, but it didn’t seem to work…
on open theFiles
tell application "QuickTime Player"
export theFiles to "Macintosh HD/Users/max/Desktop" as AVI using settings "Macintosh HD/Users/max/Desktop/iPodSettings"
end tell
end open
Any help would be great.
Thanks,
Max
Mac-style paths are delimited by colons, not slashes. Try replacing that with one of these:
"Macintosh HD:Users:max:Desktop:iPodSettings"
((path to desktop as Unicode text) & "iPodSettings")
Thanks for the help.
It still doesn’t seem to be working though. Quicktime opens up but then nothing happens.
on open theFiles
tell application "QuickTime Player"
export theFiles to "Macintosh HD:Users:max:Desktop" as AVI using settings "Macintosh HD:Users:max:Desktop:iPodSettings"
end tell
end open
Thanks,
Max
How about something like this?
on open theFiles
tell application "QuickTime Player"
activate
close every window
repeat with thisFile in theFiles
open thisFile
export thisFile to "Macintosh HD:Users:max:Desktop" as AVI using settings "Macintosh HD:Users:max:Desktop:iPodSettings"
close front window
end repeat
quit
end tell
end open
I’ll do this properly by adapting one of my previous export droplets.
on run
choose file with prompt "Export these video files to AVI:" with multiple selections allowed without invisibles
open result
end run
on open droppedItems
tell application "QuickTime Player"
activate
close every window
end tell
repeat with thisItem in droppedItems
set thisName to name of (info for thisItem without size)
tell application "QuickTime Player"
open thisItem
if (can export front movie as AVI) then
try
export front movie to ((path to desktop as Unicode text) & this_name & ".avi") as AVI ¬
using settings ((path to desktop as Unicode text) & "iPodSettings")
on error errorMsg number errorNum
display dialog "Error (" & errorNum & "):" & return & return & errorMsg buttons "OK" default button 1 with icon caution
end try
else
display dialog "QuickTime Player can't export "" & (thisFile as Unicode text) & "" as AVI." buttons "OK" default button 1 with icon caution
end if
close front movie
end tell
end repeat
quit application "QuickTime Player"
end open
See also:
QuickTime Export Droplet [DV]
Export QuickTime movie to image sequence