Skip to content

Instantly share code, notes, and snippets.

@dawnerd
Created November 5, 2012 00:44
Show Gist options
  • Save dawnerd/4014592 to your computer and use it in GitHub Desktop.
Save dawnerd/4014592 to your computer and use it in GitHub Desktop.
on run {input, parameters}
repeat with movieFile in input
try
if name extension of (info for movieFile) is "mp4" then
tell application "iFlicks"
import movieFile as QuickTime movie with deleting
end tell
else if name extension of (info for movieFile) is "mkv" then
tell application "iFlicks"
import movieFile as QuickTime movie with deleting
end tell
else if name extension of (info for movieFile) is "m4v" then
tell application "iFlicks"
import movieFile as QuickTime movie with deleting
end tell
else
tell application "iFlicks"
import movieFile with deleting
end tell
end if
end try
end repeat
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment