Jump to content
BBenj

[SOLVED] Hotkey trigger copies selection to clipboard

Recommended Posts

Hello,

 

I created a workflow to open in a specific App the currently selected file in the Finder, via a hotkey trigger.

Issue is, the hotkey trigger action copies the file name to the clipboard in the process, which I don't want.

 

Seems like a bug to me, but not really sure if it is supposed to do that or not, I couldn't find any info on that.

Otherwise, how could I fix that?

 

Thanks!

Benjamin

Share this post


Link to post

Welcome @BBenj,

 

It’s not a bug, it’s something Alfred needs to do to act on the selection. To keep the current clipboard selection, go to Alfred Preferences → Advanced → Selection Hotkeys and choose Restore previous clipboard item (uses more memory). Though it seems that option has a small bug as of now, not restoring the previous item if the current selection wasn’t already on the clipboard.

Edited by vitor

Share this post


Link to post

Oh, I see. That just fixed my issue!

I do not have the bug you experienced though, it seems (on 10.15.3, Alfred 4.0.8 [1135]). I tried with a file I never opened before with the hotkey, and the clipboard was preserved.

 

Thank you!

Share this post


Link to post
3 minutes ago, BBenj said:

I do not have the bug you experienced though

 

I’ll have to test it a bit more. It seems it depends on if you act on the selection or cancel it.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...