Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've written an AppleScript app that I use to open certain files with (it sends them to Vim in the Terminal).

I'd like to set all my .Tex files to automatically open with this app. The problem is this changes the files icons to the blank file icon.

Is there a way to change the app's icon? In other apps I use (non-AppleScript apps) I know how to "change" this icon by replacing it in but in my app there is no icon there yet.

Is it possible to add one?

share|improve this question
up vote 2 down vote accepted

See this answer and this answer of mine on SuperUser, where I explain how to create new or edit existing file types, including icons.

share|improve this answer

You can create an icon file named droplet.icns inside the app package inside

share|improve this answer
yes this changes the droplet icon (which can be done using "get info") but doesn't change the icons of the files that are to be opened with this app. (I set the "open with" default for these file to my app) – romeovs Apr 5 '11 at 20:41
Oh, okay, I didn't read your original question closely enough. Sorry about that. I'm guessing you'll need to create a document-based AppleScript Studio app at a minimum or more likely an AppleScriptObjC document-based app so that you get a custom file type. That might be more work than you want to put into this. – Stephan Apr 5 '11 at 21:14
Ok how would I go about this? – romeovs Apr 6 '11 at 10:29
I've not jumped into AppleScriptObjC yet. It's on my To Do list... So, I'm afraid I can't give you any concrete assistance. – Stephan Apr 6 '11 at 15:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.