Jump to content

Recommended Posts

As my CleanShot X workflow is now on the Alfred Gallery I thought it better to create a new thread here for it.

 

Version 1.4 has been re-written as a script filter to take advantage of Alfred 5.5 caching. Apart from minor updates to the ReadMe there are no other material changes so if you are using a version of Alfred earlier than 5.5 please stay on version 1.3 of the workflow.

 

Stephen

Link to comment
1 minute ago, Stephen_C said:

If I've understood the request correctly, just choose the one you want a couple of times and it will rise to the top of the list. In other words, Alfred recognises the most frequently used utilities.

 

Edit: See Understanding Result Ordering for an explanation.

 

Stephen

It's true!! Excuse me!! I will execute the one I want 3 or 4 times.

 

THANK YOU! 😃

Link to comment

Hi!

I have updated Alfred to the latest version (Alfred 5.5 Build 2257, Monday 18th March 2024)
I downloaded your extension from github v1.4, but it doesn't work for me ((

I run Alfred - I enter csx - and the actions don't work
Am I doing something wrong, or?

Thanks

Link to comment
Just now, dit7c1 said:



 

 

Hi!


It's strange (I'm a user) but honestly it should work because I also use the 5.5 (powerpack).

Have you checked that you have the key "cs" in the extension configuration file?

Sample capture :)

Link to comment
11 minutes ago, jesused said:

Hi!


It's strange (I'm a user) but honestly it should work because I also use the 5.5 (powerpack).

Have you checked that you have the key "cs" in the extension configuration file?

Sample capture :)

hmm...
let's just say I'm a new user of Alfred))
Maybe I didn't understand how this extension should work, I thought so:
1. I must have the Clean Shot X program installed! - it is installed.
2. I'm installing an extension for Alfred! - it is installed.
3. in the Alfred search bar, I enter csx (this word was used when installing the extension) and select any action suggested by cleanShot X (for example, Area capture). And here it doesn't work anymore.

Link to comment
27 minutes ago, dit7c1 said:

hmm...
let's just say I'm a new user of Alfred))
Maybe I didn't understand how this extension should work, I thought so:
1. I must have the Clean Shot X program installed! - it is installed.
2. I'm installing an extension for Alfred! - it is installed.
3. in the Alfred search bar, I enter csx (this word was used when installing the extension) and select any action suggested by cleanShot X (for example, Area capture). And here it doesn't work anymore.

 

It is an extract, in this case I advise you to wait for the creator of the plugin.
Anyway, I understand that cleanshot works correctly (without Alfred app plugin...).
You may need to check Cleanshot permissions in Mac Settings -> Security & Privacy -> Accessibility or Capture...

Greetings.

 

Link to comment
7 hours ago, dit7c1 said:

And here it doesn't work anymore.

 

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.

Link to comment
8 hours ago, dit7c1 said:

Hi!

I have updated Alfred to the latest version (Alfred 5.5 Build 2257, Monday 18th March 2024)
I downloaded your extension from github v1.4, but it doesn't work for me ((

I run Alfred - I enter csx - and the actions don't work
Am I doing something wrong, or?

Thanks

Apologies for the delay responding: I'm out of the/my country until the end of the week. Please follow the exact instructions in the post preceding this one and someone will tell you why it's not working for you.

 

Stephen

Link to comment
4 hours ago, vitor said:

 

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.

 

 

Apple MacBook Pro (M3 Pro 18 gb)
mac OS Sonoma 14.4 (23E214) latest
CleanShot X 4.6.2 (4f80db4) - latest (OS permissions granted)
Alfred 5.5 Build 2257 - latest (OS permissions granted)
CleanShot.X.alfredworkflow v1.4 - latest
(with https://github.com/Stephen-Lon/Alfred-workflow-cleanshot/releases/tag/v1.4)

video (Dropbox)

 

what I expect:
I expect to take a screenshot using alfred and the CleanShot.X.alfredworkflow workflow

how I think it should work:
1. Open the alfred search box.
2. Enter csx or cs. 
3. Select the desired action from the suggested one (none of these actions work for me).

The behavior is strange, someone works, and someone does not...
Only once I managed to make the screenshot action work, moreover, the debug does not work completely either, once I was shown a longer log there was something like "menu actions", but I did not see this anymore and I don't know how to reproduce it.

I uploaded the video to dropbox (you can watch it without registration), there is a limit of 1 megabyte to upload here

 

reinstalling and resetting alfred's settings did not help. 
reinstalling the CleanShot.X.alfredworkflow workflow did not help.

 

log debug

[21:56:39.347] CleanShot X[Script Filter] Using cached script output. Expires in 3131 second(s) [Flush]

[21:56:45.862] CleanShot X[Script Filter] Processing complete

[21:56:45.870] CleanShot X[Script Filter] Passing output 'capture-area' to Open URL

[21:56:51.859] CleanShot X[Script Filter] Using cached script output. Expires in 3119 second(s) [Flush]

[21:56:57.149] CleanShot X[Script Filter] Processing complete

[21:56:57.155] CleanShot X[Script Filter] Passing output 'open-history' to Open URL

[21:57:16.422] CleanShot X[Script Filter] Using cached script output. Expires in 3094 second(s) [Flush]

[21:57:19.834] CleanShot X[Script Filter] Processing complete

[21:57:19.844] CleanShot X[Script Filter] Passing output 'self-timer' to Open URL

Alfred Preferences000132.png

cleanShotX.png

Edited by dit7c1
Link to comment

here is the long log I was talking about (which I couldn't reproduce)

 

[22:56:31.546] CleanShot X[Script Filter] Deleted expired script output

[22:56:31.553] CleanShot X[Script Filter] Queuing argument '(null)'

[22:56:31.581] CleanShot X[Script Filter] Script with argv '(null)' finished

[22:56:31.585] CleanShot X[Script Filter] {

  "cache": { "seconds": 3600 },

  "items": [

    {

      "title": "All-in-one mode",

      "subtitle": "Choose your CleanShot utility on screen",

      "arg": "all-in-one",

      "icon": {

        "path": "./Images/All-in-one mode.png"

      },

      "uid": "all-in-one-mode"

    },

    {

      "title": "Annotate clipboard image",

      "subtitle": "Annotate an image from the clipboard",

      "arg": "open-from-clipboard",

      "icon": {

        "path": "./Images/Annotate.png"

      },

      "uid": "Annotate clipboard image"

    },

    {

      "title": "Open Annotate",

      "subtitle": "Open the Annotate utility",

      "arg": "open-annotate",

      "icon": {

        "path": "./Images/Annotate.png"

      },

      "uid": "Open Annotate"

    },

    {

      "title": "Area capture",

      "subtitle": "Take a screenshot of a selected area on screen",

      "arg": "capture-area",

      "icon": {

        "path": "./Images/Capture area.png"

      },

      "uid": "Area capture"

    },

    {

      "title": "Area capture with self-timer",

      "subtitle": "Capture a selected area using self-timer",

      "arg": "self-timer",

      "icon": {

        "path": "./Images/Self-timer.png"

      },

      "uid": "Area capture with self-timer"

    },

    {

      "title": "Full-screen capture",

      "subtitle": "Take a screenshot of the full screen",

      "arg": "capture-fullscreen",

      "icon": {

        "path": "./Images/Capture full screen.png"

      },

      "uid": "Full-screen capture"

    },

    {

      "title": "Open history",

      "subtitle": "Open CleanShot history",

      "arg": "open-history",

      "icon": {

        "path": "./Images/Capture history.png"

      },

      "uid": "Open history"

    },

    {

      "title": "Previous area capture",

      "subtitle": "Take a screenshot using the previous area",

      "arg": "capture-previous-area",

      "icon": {

        "path": "./Images/Capture previous area.png"

      },

      "uid": "Previous area capture"

    },

    {

      "title": "Record screen",

      "subtitle": "Make a recording of the screen",

      "arg": "record-screen",

      "icon": {

        "path": "./Images/Record screen.png"

      },

      "uid": "Record screen"

    },

    {

      "title": "Scrolling capture",

      "subtitle": "Take a screenshot of a scrolling area",

      "arg": "scrolling-capture",

      "icon": {

        "path": "./Images/Scrolling capture.png"

      },

      "uid": "Scrolling capture"

    },

    {

      "title": "Text capture",

      "subtitle": "Capture text (OCR)",

      "arg": "capture-text",

      "icon": {

        "path": "./Images/Capture text.png"

      },

      "uid": "Text capture"

    },

    {

      "title": "Window capture",

      "subtitle": "Take a screenshot of a window",

      "arg": "capture-window",

      "icon": {

        "path": "./Images/Capture window.png"

      },

      "uid": "Window capture"

    }

  ]

}

[22:56:31.587] CleanShot X[Script Filter] Script output cached for 3600 seconds

[22:56:34.963] CleanShot X[Script Filter] Processing complete

[22:56:34.984] CleanShot X[Script Filter] Passing output 'capture-area' to Open URL

Link to comment
14 minutes ago, Stephen_C said:

@dit7c1 what happens when you simply use CleanShot X (i.e., without running it through the Alfred workflow)? Do you get access to all the utilities and do they work?

 

Stephen

 

when using clean shot x (WITHOUT using alfred and workflow) everything is working correctly!
that is, if I click on the cleanshot x icon in the menu and select some action, for example, "capture area", everything will work well (as expected).

but, using alfred + workflow - does not work ((

Link to comment

OK - thanks for that test. For the moment I have no idea what causes your problem (sorry!)…but don't give up, we shall sort it somehow!

 

What I find strange is that this is a very popular and frequently downloaded workflow and nobody has reported a similar problem so there must be something odd about your particular setup. From your debug report the script appears to be doing exactly what it should be doing.

 

When you first ran the workflow did you receive a system prompt asking you to confirm that Alfred should be allowed to action CleanShot X? If do, did you confirm at that stage? (However, i don't think that is problem because you have said some CleanShot X actions work but others do not—and I can’t think of any logical reason for that.)

 

Stephen

Link to comment
24 minutes ago, Stephen_C said:

When you first ran the workflow did you receive a system prompt asking you to confirm that Alfred should be allowed to action CleanShot X?

I may be wrong, but I don't remember that... how do I check this?

Link to comment

@dit7c1 You can review permissions in macOS's System Settings > Privacy & Security, where you can check you've granted Alfred appropriate access under:

  • Accessibility: This is a single toggle that should be enabled
  • Automation: If Alfred is listed here, click "Alfred 5" to see the applications for which Alfred has requested control. You should ensure these are all toggled to the right
  • Full Disk Access: Single toggle, should be enabled

All of the above may not be relevant for the CleanShotX workflow, but will ensure your Alfred experience is as smooth as it should be :)

Link to comment
26 minutes ago, Vero said:

@dit7c1 You can review permissions in macOS's System Settings > Privacy & Security, where you can check you've granted Alfred appropriate access under:

  • Accessibility: This is a single toggle that should be enabled
  • Automation: If Alfred is listed here, click "Alfred 5" to see the applications for which Alfred has requested control. You should ensure these are all toggled to the right
  • Full Disk Access: Single toggle, should be enabled

All of the above may not be relevant for the CleanShotX workflow, but will ensure your Alfred experience is as smooth as it should be :)

 

@Vero @Stephen_C

Guys, first of all, thank you for helping!

I checked the permissions and saw that there is no cleanshot x in the automation list!

how do I add it there?
maybe I'm somehow incorrectly installing the workflow (I install it with a double click), maybe I need to do something else?

 

 

Системные настро000140.png

Link to comment

@dit7c1 The permissions needed by CleanShot may fall under System Events; I'm sorry, you may have to wait until Stephen is able to provide some more details as he knows the workflow far better than I do :)

Link to comment

@dit7c1 I'm running more or less the same system as you and CleanShot X does not show in the System Settings Automation list so you don't need to worry about that.

 

At this stage the only thing I can suggest is to try deleting and re-installing CleanShot X. However, don't do that unless you have a record of your licence key because you'll need that when re-installing.

 

If you are able to do that run the workflow and you should see CleanShot X asking if you wish to allow Alfred to action it (I don't recall the exact message but there definitely should be some request from the system).

 

Aside from that I'm afraid I've rather run out of ideas: sorry.

 

Stephen

Link to comment

@Stephen_C

hello!

yesterday I reached the limit of messages to send, because of this I could not reply...

I followed your advice and it worked!!! thanks

 

To be honest, I don't remember earlier (initially) such a window may have been missed in a hurry or it did not exist at all.

 

just in case, I will describe my steps, maybe it will be useful to someone:

delete cleanshot x.

just in case, reset the default workflow and delete the cleanshot x workflow.

I rebooted the device just in case.

settup the workflow.

installing the cleanshot x application.

the final stage, we call the search bar alfred, Vadim cs (or what you set by default), and here it is the cherished window with a request for permission - we agree!


thanks all!

 

Edited by dit7c1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...