Jump to content

[SOLVED] Using find and replace on clipboard and pass it to terminal


Recommended Posts

Yo

 

I need some quick help about building this workflow. Assuming I have some content on my clipboard that contains:

 

<p><a href="https://extreme-commerce.teachable.com/courses/392385/lectures/9786542?wvideo=kq8qkcou90"><img src="https://embed-ssl.wistia.com/deliveries/ebed1d02876b16bbe631160edc9168069bdd66c1.jpg?image_crop_resized=800x432.5&amp;image_play_button_size=2x&amp;image_play_button=1&amp;image_play_button_color=09A59Ae0" width="400" height="216.25" style="width: 400px; height: 216.25px;"></a></p><p><a href="https://extreme-commerce.teachable.com/courses/392385/lectures/9786542?wvideo=kq8qkcou90">How to add and use product hunting tools | Extreme Commerce</a></p>

 

I would like alfred to get the video ID that is  "kq8qkcou90" in the above string (all the other parts are dynamic before wvideo= and after "> so I am guessing the script should somehow filter the rest of the string. After doing that the script should place it under this string:

youtube-dl http://fast.wistia.net/embed/iframe/kq8qkcou90

 and pass it to terminal.

 

Any help would be appreciated.

 

P.S. I tried to do this way but it didn’t help:

 ppLkJUSq9gxLsOmKqpkjSQJMbOnsU8

 

 

 

Edited by selfmade69
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...