Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Don't mess with user's config files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Don't mess with user's config files
Authored by: frigaut on Mar 10, '04 04:57:26AM

This hint is certainly useful, although there are simpler ways to do this that have been listed in other comments.

Another way is to use DropScript (you can find it in the apple osx apps download site), which I use daily. The advantage of DropScript is that the application it creates is duly registered, and you can associate file types to that application (e.g. I have ps and eps files associated to a dropscript-created app that launches gv).

Another thing: The proposed hint mention moving away the .xinitrc while launching and then restoring it. I think this is really bad practice. You don't want to mess with your other settings, or with config files used by other apps. What if your script die in the middle, for any reason (e.g. it can not find the unix executable)? Then your .xinitrc is not there anymore, and you might find yourself looking for the bug for some time the next time you start up X11.

That's one of the base principle of OSX: one app does not mess with other apps preferences. Stick to it, you'll find yourself much better for it.

Finally, to answer one of the precious comment question: No, there is no way (as far as I know) to make the application pass a file you would drop on the icon to the unix executable. This would require much more than just an applescript.



[ Reply to This | # ]