https://github.com/tachoknight/removequarantinelock
Workflow to remove the quarantine lock from files for macOS
https://github.com/tachoknight/removequarantinelock
applescript automator automator-action automator-script automator-workflow macos macos-service macosx quick-service workflow
Last synced: 11 months ago
JSON representation
Workflow to remove the quarantine lock from files for macOS
- Host: GitHub
- URL: https://github.com/tachoknight/removequarantinelock
- Owner: tachoknight
- License: gpl-3.0
- Created: 2025-05-06T15:28:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T16:06:06.000Z (about 1 year ago)
- Last Synced: 2025-08-19T16:26:26.618Z (11 months ago)
- Topics: applescript, automator, automator-action, automator-script, automator-workflow, macos, macos-service, macosx, quick-service, workflow
- Homepage:
- Size: 459 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RemoveQuarantineLock
Workflow to remove the quarantine lock from files for macOS.
## Purpose
Developers have a lot of programs that are not notorized, Java web apps like `.war` files, for example. These are files that I created and know are not malicious, but trying to open them in anything on macOS results in getting a dialog like:

So I decided to write a [Quick Action](https://support.apple.com/guide/automator/use-quick-action-workflows-aut73234890a/mac) in Automator to make it easy to disable the quarantine lock on any file.
## Installation
Simply place **Remove quarantine lock.workflow** in the `~/Library/Services` directory.
## Usage
Right-click on the file in question, then select "Services", then choose "Remove quarantine lock" from the "Quick Actions" menu item. There is no output; the file will now be usable.
## How It Works
The workflow is three steps:
1. Workflow receives the selected file
2. Run AppleScript to get the absolute path of the selected file in standard Unix format. This was taken _directly_ from [my GetAbsolutePath workflow](https://github.com/tachoknight/GetAbsolutePath/tree/master).
3. Run a one-line shell script that actually disables the quarantine lock. The command it runs is:
`xattr -d com.apple.quarantine $1`
where `$1` is the filename with path from step 2.