View Single Post
Old 10-25-2009, 11:40 AM   #65
epstewart
Connoisseur
epstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enough
 
Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
ADEPTKey Generator AppleScript for Mac OS X

Quote:
Originally Posted by kjk View Post
This would be awesome
OK, I have made an AppleScript script that can generate an ADEPT Key in an adeptkey.der file (or a file by any other name the user chooses) on a Mac OS X platform. You can download this script's .zip file from

link removed

This is a script in the form of an application called ADEPTKey_Generator_1.1a. To use it, un-zip the ADEPTKey_Generator_1.1a.app.zip file to retrieve the script app. Then double click on the script app's icon. A standard "Where should I put the ADEPT key output file?" dialog will appear. You can Save As: any file name (default is adeptkey.der) to any folder (default is Desktop).

The script then uses "shell script" UNIX code provided by one of the participants in this thread to generate a "private key" that is saved in the ADEPT key output file and then can be used by the ineptepub.py Python script to decrypt downloaded ADE books.

ADEPTKey_Generator_1.1a should not be used until the user has (1) created an Adobe account online using a web browser and then (2) authorized that account in Adobe Digital Editions on the Mac. It requires that a ~/Library/Application Support/Adobe/Digital Editions/activation.dat file be present in the user's home folder hierarchy. Activating/authorizing the ADE account causes that file to be created.

Also, if more than one user have ADE accounts, the most recent one authorized is the one ADEPTKey_Generator_1.1a will use in generating the ADEPT Key.


Edited on 12/4/2009 to refer to ADEPTKey Generator 1.1a, which is now compatible with Mac OS X 10.6 "Snow Leopard." The previous version of this script application, 1.1, generated an error condition in S.L. The reason apparently was that S.L. expects a script app to be not an "application" per se but what was called an "application bundle" by the Mac OS X 10.5 "Leopard" Script Editor. I had saved it as a plain "application." Apparently, if the same source code is saved, in Script Editor under S.L., as an "application," the result is the same as an "application bundle" under Leopard. Under S.L., there is no option to save as an "application bundle" any more. I am running Leopard at this time, not S.L., so I can't actually test that.

Last edited by Alexander Turcic; 12-22-2009 at 04:49 AM. Reason: Update to ADEPTKey Generator 1.1a
epstewart is offline   Reply With Quote