Substitute hyphens for spaces

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Substitute hyphens for spaces Tue Nov 21, 2017 3:38 pm • by 2b1ask1
This is my first post. I am excited to use Hazel.

Can you help me with my first script?

I want to convert a phrase with hyphens into spaces and then copy the result into my Mac's memory to paste.

For example:

convert-this-phrase-with-hyphens

Into:

convert this phrase with hyphens

Thank you in advance for your help on this.

Is this possible?
2b1ask1
 
Posts: 2
Joined: Tue Nov 21, 2017 3:34 pm

Re: Substitute hyphens for spaces Wed Nov 22, 2017 6:41 pm • by Mr_Noodle
I'm not sure if this is something for Hazel. Hazel operates on files and not on text on the clipboard. It seems like something you can do with AppleScript outside of Hazel.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Substitute hyphens for spaces Wed Nov 22, 2017 9:56 pm • by 2b1ask1
Mr_Noodle wrote:I'm not sure if this is something for Hazel. Hazel operates on files and not on text on the clipboard. It seems like something you can do with AppleScript outside of Hazel.

Thank you for replying to this... I will brush up on Automator.
2b1ask1
 
Posts: 2
Joined: Tue Nov 21, 2017 3:34 pm


Return to Support