Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I know the icons representing programs that end in .app are really a specially treated folder, and not a single file. And inside that folder, there is a folder called Contents, and in that folder lies all the guts of an application.

If one wanted to store information about an application (say, notes to oneself about crashes, workflows, or projects involving that application), just how bad of an idea would it be to create another folder inside the application bundle alongside the Contents folder? Would it break code signing? Make the folder stop behaving like an application bundle? Have no adverse side effects at all? Will folders inside the app bundle but outside Contents get clobbered in an app upgrade?

For instance, I bought Byword from the app store. I have /Applications/Byword.app on my computer. /Applications/Byword.app/Contents/* contains the application itself. Could I create /Applications/Byword.app/My notes/* and store my own comments about the application there?

share|improve this question
1  
It won't affect the application. I don't think it will break code signing, but you should save a backup copy and test it. Make sure you actually add files and not just folders for the test. –  ughoavgfhw Mar 19 '12 at 1:22
add comment

1 Answer 1

up vote 1 down vote accepted

It wouldn't be that bad except for the whole completely using app packaging completely incorrectly. Anything inside that app won't get indexed by spotlight, if you delete that app then all notes and references are also gone.

I can't think of a sensible use case where this would be a good idea. Unless of course you are an app developer and you are wanting to store things during app execution.

I would not recommend doing this even though it should technically work.

share|improve this answer
add comment

Your Answer

 
discard

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.