30 lines
1.0 KiB
Ruby
30 lines
1.0 KiB
Ruby
cask "abbyy-finereader-pdf" do
|
|
version "1402.15"
|
|
sha256 :no_check
|
|
|
|
url "https://downloads.abbyy.com/fr/fr_mac/current/ABBYY_FineReader_PDF.dmg?secure=5c11NlPrQmIZeGn6dK2PZA=="
|
|
name "ABBYY FineReader PDF"
|
|
desc "Scan, OCR, and convert documents to searchable PDFs and other formats"
|
|
homepage "https://pdf.abbyy.com/finereader-pdf-for-mac/"
|
|
|
|
livecheck do
|
|
url "https://www.abbyy.com/finereader-pdf-mac-downloads/"
|
|
strategy :page_match do |page|
|
|
page.scan(%r{(?:Part #:.*?\n<td>)(\d+(?:[./]\d+)+)}i)
|
|
.map { |match| match[0].tr("/", ".") }
|
|
end
|
|
end
|
|
|
|
app "ABBYY FineReader PDF.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/ABBYY",
|
|
"~/Library/Preferences/com.abbyy.finereader.pdf.plist",
|
|
"~/Library/Preferences/com.abbyy.FineReader.plist",
|
|
"~/Library/Preferences/com.abbyy.FRPDFViewer.plist",
|
|
"~/Library/Preferences/com.abbyy.ImageProcessService*.plist",
|
|
"~/Library/Saved Application State/com.abbyy.FineReader.savedState",
|
|
"~/Library/Saved Application State/com.abbyy.FRPDFViewer.savedState",
|
|
]
|
|
end
|