Page 1 of 1

Substitute hyphens for spaces

PostPosted: 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?

Re: Substitute hyphens for spaces

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

Re: Substitute hyphens for spaces

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