DEV Community

Cover image for I made a script in Rust that will change your mac app's icon from a png
Kunal Bagaria
Kunal Bagaria

Posted on • Edited on

I made a script in Rust that will change your mac app's icon from a png

Thumbnail credit: Eric Hoffman

Cool, how do I use it?

Install the tool using brew

If you don't have brew, you can install it here

Now in you terminal, run:

brew tap kb24x7/redock && brew install redock
Enter fullscreen mode Exit fullscreen mode

It should be properly installed and ready to use.

Run the tool by using:

redock
Enter fullscreen mode Exit fullscreen mode

It'll prompt you to drag your PNG file. (The file should have a large resolution and should be square.)

Screen Shot 2021-08-06 at 11.26.24 PM

After adding the PNG file, it'll prompt you to drag the application you want to replace the icon of.

Screen Shot 2021-08-06 at 11.27.09 PM

After you do that, you can sit back and relax while the script does its thing.

(This is the first time I've ever coded in Rust, so you might see some ugly scripting if you want to check the source)

If you liked this content, hit this post a like and follow me on Twitter

Will see you the next time I create something :)

Top comments (0)