Created
February 8, 2009 04:30
-
-
Save nerdEd/60182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert all dvdmedia files in the current directory to iso images | |
# OSX only | |
# .dvdmedia files are really just folders that hold the VIDEO_TS/AUDIO_TS | |
# but adding .dvdmedia make OSX do nice things | |
movie_directory = Dir.open( Dir.pwd ) | |
movie_directory.entries.each do |movie| | |
if movie.include? '.dvdmedia' then | |
movie_name = movie.chomp '.dvdmedia' | |
puts movie + " --> " + movie_name | |
result = `hdiutil makehybrid -udf -udf-volume-name #{movie_name} -o #{movie_name} #{movie}` | |
puts result | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment