vitor Posted September 28, 2016 Share Posted September 28, 2016 (edited) Usage Unquarantine files or folders via the Universal Action. Alternatively, search for quarantined apps via the rq keyword. ↩ to remove the quarantine. ⤓ Install on the Alfred Gallery | Source Edited July 28, 2023 by vitor Link to comment
vitor Posted October 3, 2016 Author Share Posted October 3, 2016 When reporting issues, please include your exact installed versions of:The Workflow.Alfred.macOS.In addition to:The debugger output. Perform the failing action, click “Copy” on the top right and paste it here.Details on what you did, what happened, and what you expected to happen. A short video of the steps with the debugger open may help to find the problem faster.Thank you. Accurate and thorough information is crucial for a proper diagnosis which allows me to help you better. Link to comment
vitor Posted October 4, 2016 Author Share Posted October 4, 2016 Updated to use the most recent version of OneUpdater (released today). Link to comment
vitor Posted September 14, 2017 Author Share Posted September 14, 2017 Update. Allow typing to filter apps. To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater. Link to comment
vitor Posted July 2, 2020 Author Share Posted July 2, 2020 Update. Updated icon, and added support for DMGs. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. Link to comment
vitor Posted December 17, 2021 Author Share Posted December 17, 2021 Update. Removed restriction on file types to remove quarantine from. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. Link to comment
iandol Posted June 20, 2022 Share Posted June 20, 2022 Hi Vitor, I can't get the V21.2 version of this working with the File Action. For example I select an app, bring up Actions, then select remove quarantine and I end up with the path of the app in the Alfred window: I select that actions and I get this: In the debug pane, showing all information I see this: [13:25:24.672] Logging Started... [13:25:34.175] RemoveQuarantine[Script Filter] Queuing argument '(null)' [13:25:34.540] RemoveQuarantine[Script Filter] Script with argv '(null)' finished [13:25:34.543] RemoveQuarantine[Script Filter] <?xml version='1.0'?><items> The script was sent 'null' which is bizarre as I definitely action the application and it does end up in the Alfred window... Link to comment
vitor Posted June 20, 2022 Author Share Posted June 20, 2022 You’re not using the File Action but the Script Filter. Write “remove” there and you should see two options. It happens because you have on Alfred Preferences → Features → Universal Actions → Workflow Script Filters. iandol 1 Link to comment
iandol Posted June 20, 2022 Share Posted June 20, 2022 Thanks for the prompt reply and for the knowledge and solution to my problem. Offtopic for this thread, but I suppose it would be nice if the Alfred UI could somehow identify these two as different… Link to comment
vitor Posted December 19, 2022 Author Share Posted December 19, 2022 Updated to 2022.1. Workflow is now distributed via the Alfred Gallery. Download the new version from there or update directly from Alfred.New repository.New icon.New About.Add configurable keyword.Remove OneUpdater in favour of Gallery updating. gingerbeardman 1 Link to comment
Quicksilver Posted March 5, 2023 Share Posted March 5, 2023 Re: Plea to community & @vitor I registered here to ask this question. This workflow has been absolutely invaluable to me, but I want to plea/request for 1 addition. When someone uses the keyword "rq", can you (pretty) please add an option for "Remove Quarantine from All" option at the top? It's not terrible removing quarantine one app at a time, but it would really be useful to have a bulk function. Thank you! Link to comment
vitor Posted March 5, 2023 Author Share Posted March 5, 2023 @Quicksilver What you do is add apps to the File Buffer from the results list, then apply the Universal Action on all of them. Link to comment
gingerbeardman Posted March 18, 2023 Share Posted March 18, 2023 (edited) Thanks for this workflow. I installed via Gallery. And thanks for the tip about using the File Buffer! Edited March 18, 2023 by gingerbeardman Link to comment
vitor Posted July 28, 2023 Author Share Posted July 28, 2023 Updated to 2023.2.When using rq, query apps from the Spotlight database to show apps in more locations.Show apps without .app suffix.Show subtitle with full app path.New configuration option to ignore signed and notarised apps when searching.Updated to use /bin/zsh --no-rcsUse JSON instead of XML.General code improvements. gingerbeardman 1 Link to comment
gingerbeardman Posted October 15, 2023 Share Posted October 15, 2023 (edited) Since 2023.2 this is really slow to list results for me (~6 seconds every time). It used to be pretty much instant. It also now lists results that aren't really Mac apps. Can I limit it to /Applications folder (and its subfolders)? edit: I spent some time removing quarantine from all search results. now it's quicker, but i'd still like to limit to /Applications Edited October 15, 2023 by gingerbeardman Link to comment
vitor Posted October 15, 2023 Author Share Posted October 15, 2023 2023.2 has a broader search, as it includes apps everywhere and not just /Applications. But it uses Spotlight’s indexing so that part should be fairly fast. Another change is that it now checks for signing and notarisation if Ignore Notarised is off, which also affects speed. But limiting to /Applications is perfectly reasonable and a good addition. It is now in 2023.3. Link to comment
gingerbeardman Posted January 25 Share Posted January 25 I just upgraded to Sonoma and this is no longer working for me. I have it set to only look in /Applications But it just sits at "Finding qunarantined apps..." Log says: [21:53:18.717] Logging Started... [21:53:19.702] Remove Quarantine[Script Filter] Queuing argument '(null)' Any ideas? Link to comment
vitor Posted January 26 Author Share Posted January 26 Because it’s not returning anything, I’d bet it’s still running. Only show apps in /Applications shouldn’t really affect speed, but Ignore signed and notarised apps will. Do you have that on or off? Also, removing quarantine from apps where it doesn’t matter (they are signed and notarised) will also make it run faster (because it skips the check). This version writes a verifying_apps.txt file to your Desktop as it’s checking them, so you can tail -f ~/Desktop/verifying_apps.txt in a Terminal to see it as it happens. It may provide a clue. Link to comment
gingerbeardman Posted March 8 Share Posted March 8 (edited) Sorry I totally missed the notification for this reply. No idea how. I think the above download has expired. I have both "only /Applications" (since you added it for me) and "Ignore signed/notarised" on (since the workflow stopped working). I think maybe it stopped working when I upgraded from Monterey to Sonoma. I skipped Ventura. Nothing showing in debug log of Alfred for the existing version. Edited March 8 by gingerbeardman Link to comment
vitor Posted March 8 Author Share Posted March 8 2 hours ago, gingerbeardman said: "Ignore signed/notarised" on That affects speed by a good amount. Please turn it off and recheck. 2 hours ago, gingerbeardman said: (since the workflow stopped working) What do you mean? Link to comment
gingerbeardman Posted March 10 Share Posted March 10 (edited) I mean that I only turned on "ignore" after things stopped working, no results shown, to see if it helped. So I turned it off and there are still no results showing. I know for certain I have some apps that should be found. Edited March 10 by gingerbeardman Link to comment
vitor Posted March 10 Author Share Posted March 10 Try this. It’s the version from before. On 1/26/2024 at 12:08 PM, vitor said: writes a verifying_apps.txt file to your Desktop as it’s checking them, so you can tail -f ~/Desktop/verifying_apps.txt in a Terminal to see it as it happens. It may provide a clue. Link to comment
gingerbeardman Posted March 18 Share Posted March 18 (edited) That works, it took 27 seconds to find 57 of 986 apps. I'm not sure I ever gave the old version that long, as it used to take only a few seconds at most before something changed. Logging grows by ~40 lines per second on my machine, which feels slow. Nothing untoward in there, apps listed are as expected. I notice that when you close the alfred window the mds command keeps running. So if I invoke rq multiple times (for example when I think it's not working, oops) then there will be multiple scans happening at once. Can that be avoided? The mdfind is aspect is pretty much instant, as confirmed on the command line. So the slow bit is the checking? Which is surprising. Maybe the use of osascript for the app_as_json function is slow? [10:56:48.804] Logging Started... [10:56:49.913] Remove Quarantine[Script Filter] Queuing argument '(null)' [10:56:50.440] Remove Quarantine[Script Filter] Queuing argument '(null)' [10:57:15.225] Remove Quarantine[Script Filter] Script with argv '(null)' finished [10:57:15.232] Remove Quarantine[Script Filter] { "items": [{"title":"prima","subtitle":"/Applications/... Edited March 18 by gingerbeardman Link to comment
vitor Posted March 21 Author Share Posted March 21 On 3/18/2024 at 11:04 AM, gingerbeardman said: I notice that when you close the alfred window the mds command keeps running. The mds command? Not sure what you mean. On 3/18/2024 at 11:04 AM, gingerbeardman said: So the slow bit is the checking? Yes, that’s why it’s an option. On 3/18/2024 at 11:04 AM, gingerbeardman said: Which is surprising. Verifying signatures and notarisation are expensive operations. Apple’s server may need to be contacted especially for the latter. On 3/18/2024 at 11:04 AM, gingerbeardman said: Maybe the use of osascript for the app_as_json function is slow? AppleScript is slow, but not that slow. It’s fast enough for that number of results, and it’s done efficiently. I have workflows which handle more results than that without breaking a sweat. Another thing you can try is to remove quarantine even from the signed and notarised apps. That is because apps without the quarantine bit are skipped, so removing it from those will skip the check, and be faster. By the way, congratulations on the gaming awards! I don’t own a Playdate, but if I ever get to try one I know whose games I’ll want to try first. Link to comment
gingerbeardman Posted March 22 Share Posted March 22 Thanks so much! I think there are some crossed wires in this, so let me summarise: workflow used to be very fast almost instant at some point it has become slow (Sonoma? I came straight from Monterey) I'm using only the option "Only show apps in /Applications" the mdfind part is instant (I mistakenly said mds earlier, sorry) ~1000 apps reported in a fraction of a second the slow part is the xattr call which is taking 0.023 seconds per app on my machine, which for 1000 apps is the ~23 seconds So I'm going to look into parallel-ising the xattr loop. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now