cask "script-debugger" do version "8.0.8-8A80" sha256 "1e76cd711c2ba5f96b8ea2bdf515fe907dabe1839f8d01a42ef75a31338b6555" url "https://s3.amazonaws.com/latenightsw.com/ScriptDebugger#{version}.dmg", verified: "s3.amazonaws.com/latenightsw.com/" name "Script Debugger" desc "Integrated development environment focused entirely on AppleScript" homepage "https://latenightsw.com/" livecheck do url "https://latenightsw.com/download/" regex(/action=.*?ScriptDebugger(\d+(?:\.\d+)+-\d+A\d+)\.dmg/i) end depends_on macos: ">= :mojave" app "Script Debugger.app" zap trash: [ "~/Library/Application Support/Script Debugger #{version.major}", "~/Library/Caches/com.latenightsw.ScriptDebugger#{version.major}", "~/Library/Preferences/com.latenightsw.ScriptDebugger#{version.major}.plist", ] end