Extended Attribute to pull Final Cut Pro 7 Serial

myronjoffe
Contributor III

We want to track down what serial numbers are being used. Has anyone out there scripted something? Im not even sure if its possible as the file where the serial is stored is encrypted.

3 REPLIES 3

jarednichols
Honored Contributor

Being that the file is encrypted, what you could do is an MD5 hash of that file. You'd first need to have a test machine where you install FCP, serialize it, and then take the MD5 hash. Since you'd then have a correlation of MD5 hash to serial, you could make an extension attribute for it.

Follow?

myronjoffe
Contributor III

Thanks Jared I follow but how would I capture the checksum?

jarednichols
Honored Contributor

Me, I'd case statement it as you're looking for particular patterns.

#!/bin/sh
checksum=`md5 <yourfilenname>`
case $checksum in
   <yourFirstPossibleChecksum>)
          <result>"Serial number 1"</result>
          ;;
   <yourSecondPossibleChecksum>)
          <result>"Serial number 2"</result>
          ;;
   *)
          <result>"Didn't find an expected serial number"</result>
esac

This is totally back of napkin and I haven't tested a single character. Test it, test it, test it.