Yeah, so, I want to put all of my DVDs on my Mac mini. Not all at once, just one or two here or there. The problem is that it's a media center, so I removed the keyboard and mouse. In other words, I needed to put a DVD in and have the Mac mini rip it... automatically. But sometimes, I want to put in a DVD and just watch it. Thankfully, I learned that Front Row ignores your System Preferences-set direction for what to do when you insert a DVD. So if I want to rip a movie, I exit Front Row and insert the DVD. If I want to watch it, I just stay in Front Row -- no problem.
Anyway, I wanted to post my script on here. It's worked fine thusfar, but I'm sure there are a couple of instances where it would not work quite right (or at all). What I'd like to know is if anyone has any suggestions for making this script more foolproof, more elegant, and more efficient.
I'm a beginner at AppleScript, so please be gentle with me.
Any ideas?
Anyway, I wanted to post my script on here. It's worked fine thusfar, but I'm sure there are a couple of instances where it would not work quite right (or at all). What I'd like to know is if anyone has any suggestions for making this script more foolproof, more elegant, and more efficient.
I'm a beginner at AppleScript, so please be gentle with me.
Code:
tell application "MacTheRipper"
activate
delay 10
end tell
tell application "System Events"
tell process "MacTheRipper"
tell window 1
click button "Go!"
delay 5
end tell
end tell
end tell
tell application "System Events"
tell process "MacTheRipper"
tell window 1
tell sheet 1
try
click button "Continue"
end try
try
click button "Ok"
end try
try
click button "Open"
end try
end tell
end tell
end tell
end tell
set MagicNumber to 0
repeat until MagicNumber is 1
delay 10
tell application "System Events"
tell process "MacTheRipper"
tell window 1
tell sheet 1
try
click button "Close"
set MagicNumber to 1
end try
end tell
end tell
end tell
end tell
end repeat
tell application "Finder"
do shell script ("drutil eject")
end tell
Any ideas?