extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add finder-helpers extension

Open madebyankur opened this issue 1 year ago • 1 comments

Description

This extension adds a set of helper actions for the finder in macOS. For now this consists of opening the context menu from raycast but will be adding more over time.

Screencast

Checklist

madebyankur avatar Apr 04 '24 15:04 madebyankur

Congratulations on your new Raycast extension! :rocket:

We will aim to make the initial review within five working days. Once the PR is approved and merged, the extension will be available on our Store.

raycastbot avatar Apr 04 '24 15:04 raycastbot

@pernielsentikaer sorry about the delay - got sidetracked with some other things. Not sure why you're seeing that - AXShowMenu should be available for Finder normally. Can you try running this in Script Editor:

tell application "Finder"
	activate
	tell window 1
		set oldView to current view
		if oldView is icon view then set current view to list view
	end tell
end tell

tell application "System Events" to tell application process "Finder"
	set theSelection to value of attribute "AXFocusedUIElement"
	tell theSelection to perform action "AXShowMenu"
end tell

tell application "Finder"
	activate
	tell window 1
		if oldView is icon view then set current view to icon view
	end tell
end tell

madebyankur avatar Apr 18 '24 20:04 madebyankur

I'm getting this error

Raycast19042024-8UH1BCDC png@2x

pernielsentikaer avatar Apr 19 '24 10:04 pernielsentikaer

@pernielsentikaer the first line was removed for some reason 🤦 try again now?

madebyankur avatar Apr 19 '24 12:04 madebyankur

Still getting an error, it runs for 20+ seconds and give me this error

Raycast22042024-NMyJhVCR png@2x

pernielsentikaer avatar Apr 22 '24 10:04 pernielsentikaer

@pernielsentikaer I added some additional checks to make sure the finder is open.

Let me know if it's working now.

madebyankur avatar Apr 27 '24 15:04 madebyankur

I'm still getting random errors, it worked once but then I ended up in this error

finder-helpers 2024-04-29 at 22 05 22

It might be something in macOS that doesn't work as expected, do you have a clue about that?

pernielsentikaer avatar Apr 29 '24 20:04 pernielsentikaer

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

raycastbot avatar May 13 '24 20:05 raycastbot

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

raycastbot avatar May 20 '24 20:05 raycastbot