2

I need to change .sh file icon only for the single file how can i do it with terminal

2
  • It need to be an app not a command line file. SO wrap it in Applescript and alter that icon. Also a shell script wont be in the dock and will open a new Terminal. You might need to be more explicit in what you are trying tu do Commented Mar 28, 2019 at 13:52
  • Take a look here, this might be directly relevant to your question: apple.stackexchange.com/questions/6901/… Commented Mar 28, 2019 at 14:27

1 Answer 1

3

Easiest thing to do is is to wrap your script in an app. Platypus (https://sveinbjorn.org/platypus) is an easy to use app that can help you do this (and allow you run the script as an app).

Also worth mentioning you may want to look at iconutil (man iconutil) it will change a folder (normally with the extension of .iconset) of png images (icon_16x16.png, [email protected], icon_32x32.png, [email protected], icon_128x128.png, [email protected], icon_256x256.png, [email protected], icon_512x512.png, [email protected]) into a proper .icns bundle.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.