alanhe421 / alfred-workflows

Save time, Improve life.🚀 ☕️ 💻
https://alfred.1991421.cn
MIT License
659 stars 63 forks source link

[Bug]: universal action doesn't respond #311

Closed vanwoods closed 9 months ago

vanwoods commented 2 years ago

Describe the bug

There is no action when trying to activate this in universal actions. Any chance to know what could be the issue?

MacOS Version

macOS 12 Monterey

Alfred Version

5.0.4

Workflow Name

Airdrop

alanhe421 commented 2 years ago

@vanwoods

Any chance to know what could be the issue?

image

vanwoods commented 2 years ago

Hi Alan.He,

Thanks for reminding for the debugger output. Below the error I’m getting this back from the debugger:

[15:41:07.383] ERROR: Airdrop[Run Script] /Users/patrick/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/9FE38F2A-0AA7-43CE-BD03-18619326CFDF:78:119: execution error: System Events got an error: button 1 or toolbar 1 or window 1 of process "Finder" whose description = "Share" could not be requested. Invalid index. (-1719)

Hope you can tell what’s going wrong?

Thanks in advance!


Regards, Patrick On 2 Nov 2022, 15:23 +0100, Alan.He @.>, wrote: @vanwoods Any chance to know what could be the issue? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

alanhe421 commented 2 years ago

button 1 or toolbar 1 or window 1 of process "Finder" whose description = "Share" could not be requested. Invalid index

You need to see if there is this menu on the UI. Maybe your system locale is not en

vanwoods commented 2 years ago

Hi,

I changed the system language to English. But unfortunately I’m getting the same error message.

[17:55:03.740] ERROR: Airdrop[Run Script] /Users/patrick/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/4E370D6A-D5AB-45CB-B14A-5B7BB1CC81CE:78:119: execution error: System Events got an error: Can’t get button 1 of toolbar 1 of window 1 of process "Finder" whose description = "Share". Invalid index. (-1719) I’m not getting a UI menu.

Is there anything else what I can check to fix this?


Regards, Patrick On 4 Nov 2022, 17:18 +0100, Alan.He @.***>, wrote:

button 1 or toolbar 1 or window 1 of process "Finder" whose description = "Share" could not be requested. Invalid index You need to see if there is this menu on the UI. Maybe your system locale is not en — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

alanhe421 commented 2 years ago

@vanwoods

Is it convenient to provide a screen recording?

vanwoods commented 2 years ago

Thanks for getting back to me. I tried a different computer and it has the same issue and debugger output.

Attached is the screen recording.


Regards, Patrick On 5 Nov 2022, 2:31 PM +0100, Alan.He @.***>, wrote:

@vanwoods Is it convenient to provide a screen recording? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

alanhe421 commented 2 years ago

???Attached is the screen recording. where?

vanwoods commented 2 years ago

It is attached in the email! The email was not uploading it here.

https://user-images.githubusercontent.com/20803030/200162303-1d725994-92b9-4412-8526-aab34bbe59a6.mov


Groetjes, Patrick On 6 Nov 2022 at 09:20 +0100, Alan.He @.***>, wrote:

???Attached is the screen recording. where? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

augusl commented 2 years ago

After macOS upgraded to Ventura, I also encountered this problem

alanhe421 commented 1 year ago

After macOS upgraded to Ventura, I also encountered this problem

  1. I haven't upgraded my new system at the moment, so I can't test verify the issue.
  2. The workflow relies on the UI, so the cause of the problem should be here.
katelynnbarlowe commented 1 year ago

Would love some movement on this. Doesn't work for me either.

alanhe421 commented 1 year ago

update

root cause is os ui change. image

vanwoods commented 1 year ago

Hi,

Thanks for the feedback. What can I do to fix this, I don't get it?

alanhe421 commented 9 months ago

@augusl

for Ventura/Monterey/Sonoma User, just have a try. download the latest workflow.

I found that the AppleScript documentation is too scarce. I really can't solve the more advanced menu automation operations, so I'm adopting a compromise solution here.

You need to manually drag and drop AirDrop into the toolbar. This way, the workflow can be operated conveniently. For specific setup instructions, please refer to the documentation I have posted.

image

doc

https://github.com/alanhg/alfred-workflows/tree/master/airdrop#sonoma-need

The official workflow is also available now.

https://alfred.app/workflows/alfredapp/share-with-airdrop/