Jump to content
Amandeep Jawa

How do I get lowercase AND clipboard offset in a snippet

Recommended Posts

Hi -

 

I'm trying to make a simple snippet to use things from my clipboard, BUT I also want it to make the items from my clipboard lowercase.  Can this be done?

 

This works:

scp root@{clipboard:1}:{clipboard:0} ~/Downloads

 

This is what i WANT:

scp root@{clipboard:lowercase,1}:{clipboard:0} ~/Downloads

 

thanks in advance....

'deep

 

.ps I checked out the docs here, but it didn't have a way to do it:

https://www.alfredapp.com/help/features/clipboard/dynamic-placeholders/

Share this post


Link to post

Hi @Amandeep Jawa, Welcome to the forum :)

 

This isn't currently possible, so for now, you'll need to use a workflow for this:

  • Connect your Snippet Trigger (or keyword) to an Arg & Var Utility to put the clipboard content into variables
  • Connect it to a Run Script action, where the variables you've created will be available as environment variables, so you can construct the string you want
  • Use a Copy to Clipboard Output, with "Automatically paste to frontmost app" selected to paste it like a snippet

It's worth noting that transform syntax is coming to the clipboard placeholders in the future, but for now, it takes a little more work. If you need any further help, just post your workflow and we'll help you out.

 

Cheers,
Vero

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...