]> xmof Git - DeDRM.git/commitdiff
Applescript now recognizes .azw Kindle files.
authorPaul Durrant <paul@durrant.co.uk>
Sun, 1 Mar 2009 10:30:42 +0000 (10:30 +0000)
committerApprentice Alf <apprenticealf@gmail.com>
Thu, 26 Feb 2015 17:27:32 +0000 (17:27 +0000)
Macintosh_Applications/Mobipocket Unlocker.app/Contents/Resources/Scripts/main.scpt
Macintosh_Applications/Mobipocket Unlocker.app/Contents/Resources/Scripts/main.scpt.txt

index 443c1ecfed10ce66e526b48d77c5bdb087f71d5d..72c8be4cdd2df365af35be4f312e689f3458adc6 100644 (file)
Binary files a/Macintosh_Applications/Mobipocket Unlocker.app/Contents/Resources/Scripts/main.scpt and b/Macintosh_Applications/Mobipocket Unlocker.app/Contents/Resources/Scripts/main.scpt differ
index aad343d518c8a620f274f22d012d395eb64f26fa..b4f777eae84c39d0bc47de008e2102951ca8f7df 100644 (file)
@@ -23,7 +23,7 @@ on unlockfile(encryptedFile, MobiDeDRMPath, encryptionKey)
 end unlockfile
 
 on unlockfolder(encryptedFolder, MobiDeDRMPath, encryptionKey)
-       tell application "Finder" to set encryptedFileList to (every file in folder encryptedFolder) whose (name extension is "prc") or (name extension is "mobi")
+       tell application "Finder" to set encryptedFileList to (every file in folder encryptedFolder) whose (name extension is "prc") or (name extension is "mobi") or (name extension is "azw")
        tell application "Finder" to set encryptedFolderList to (every folder in folder encryptedFolder)
        repeat with this_item in encryptedFileList
                unlockfile(this_item as text, MobiDeDRMPath, encryptionKey)
@@ -36,25 +36,24 @@ end unlockfolder
 on run
        set MobiDeDRMPath to POSIX path of file ((path to me as text) & "Contents:Resources:MobiDeDRM.py")
        set encryptedFolder to choose folder with prompt "Please choose the folder of encrypted Mobipocket files."
-       set encryptionKey to (display dialog "Enter Mobipocket key for encrypted Mobipocket files." default answer "Your PID Here" buttons {"Cancel", "OK"} default button 2)
+       set encryptionKey to (display dialog "Enter Mobipocket key for encrypted Mobipocket files." default answer "X12QIL1M3D" buttons {"Cancel", "OK"} default button 2)
        set encryptionKey to text returned of encryptionKey
        unlockfolder(encryptedFolder, MobiDeDRMPath, encryptionKey)
 end run
 
 on open some_items
        set MobiDeDRMPath to POSIX path of file ((path to me as text) & "Contents:Resources:MobiDeDRM.py")
-       set encryptionKey to (display dialog "Enter Mobipocket key for encrypted Mobipocket files." default answer "Your PID Here" buttons {"Cancel", "OK"} default button 2)
+       set encryptionKey to (display dialog "Enter Mobipocket key for encrypted Mobipocket files." default answer "X12QIL1M3D" buttons {"Cancel", "OK"} default button 2)
        set encryptionKey to text returned of encryptionKey
        repeat with this_item in some_items
                if (folder of (info for this_item) is true) then
                        unlockfolder(this_item as text, MobiDeDRMPath, encryptionKey)
                else
                        tell application "Finder" to set item_extension to name extension of file this_item
-                       if item_extension is "prc" or item_extension is "mobi" then
+                       if item_extension is "prc" or item_extension is "mobi" or item_extension is "azw" then
                                unlockfile(this_item as text, MobiDeDRMPath, encryptionKey)
                        end if
                end if
        end repeat
-       display dialog "Finished Unlocking." buttons {"OK"} default button 1
 end open