Opening/Copying Locked DVDs

At work we sometimes receive DVDs that we need footage off of that are locked. They will play back fine in DVD Player but we don’t want it for playback. The resulting DVD images are always titled SONATA_VOLUME and are created by a stand alone Sony DVD Recorder.

In order to copy the VIDEO_TS file off of the DVD you require sudo access but given that sudo access is limited to administrators (and not the editors) - this gets to be a bit of hassle because I have to be called to copy the DVD which adds unnecessary overhead to just get some footage off a simple DVD.

The solution? Create a droplet application (in this case AppleScript with shell scripts) so the editors don’t have to disrupt their workflow to get me to unlock the footage they need.

The source follows:

(* Files dropped onto the application will be copied to the root folder
of the main hard drive and set so the user has ownership - allowing
them to move, rename and delete said file/folder. )
on open files_
    repeat with file_ in files_
        –Get name of file, path, and the current username of editor
        set name_ to name of (info for file)
        set file to POSIX path of file_
        set username_ to short user name of (system info)
        ( The 3 shell commands here can be condensed into one longer line
            but I left them separate for debugging and readability reasons
        *)
        do shell script “/bin/cp -R ” & quoted form of file_ & “ /” & quoted form of name_ user name “ADMIN_USERNAME” password “PASSWORD” with administrator privileges
        do shell script “/bin/chmod -R 777 /” & quoted form of name user name “ADMIN_USERNAME” password “PASSWORD”” with administrator privileges
        do shell script “/usr/sbin/chown -R ” & username & “ /” & quoted form of name_ user name “ADMIN_USER_NAME” password “PASSWORD”[email protected]#$” with administrator privileges
        do shell script “open /”
    end repeat
end open