Replacing the Finder

Discussion in 'Mac Programming' started by yod9999, May 25, 2007.

  1. yod9999 macrumors newbie

    Joined:
    Jan 6, 2007
    #1
    Hi

    I know that I can replace the Finder as the default application that's run by loginwindow by doing the following:

    Code:
    defaults write /Library/Preferences/com.apple.loginwindow Finder /Applications/MyApplication.app
    but does anyone know if it's possible to pass parameter to the application. I've got an app which I want to run instead of the Finder, but I need to tell it to write it's output to a log file, otherewise it just goes to standard out and is lost.

    Cheers

    yod
     
  2. ATG macrumors regular

    Joined:
    Aug 7, 2005
    #2
    Maybe you could write a shell script or a tool to do this
     
  3. psychofreak Retired

    psychofreak

    Joined:
    May 16, 2006
    Location:
    London
    #3
    I'm not certain about this, but my gut feeling is that this could have bad consequences (if possible at all), as the finder is used all over OS X, in places like Save As windows...
     
  4. yod9999 thread starter macrumors newbie

    Joined:
    Jan 6, 2007
    #4
  5. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #5
    Huh...?

    The Open File and Save As windows work fine from any app even if you've quit the Finder**...

    ** add Quit menu item using TinkerTool or similar, or just type 'defaults write com.apple.finder QuitMenuItem -bool yes' in Terminal and restart.
     
  6. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #6
    Does the app really write to standard out? Not very many Aqua / GUI Mac apps that I've seen do that. If it does, can you perhaps replace the call to /applications/myapp.app with a call to an executable script file that has in it something along the lines of:

    open /applications/myapp.app > logfile.log

    ?
     
  7. elppa macrumors 68040

    elppa

    Joined:
    Nov 26, 2003
    #7
    Thanks so much.

    That actually works as a remarkably good way of hiding files on my desktop w/o paying for a shareware app which uses additional resources. Genius!

    BTW: Did you solve that form-within-a-form problem you had the other day? What did you do?
     
  8. psychofreak Retired

    psychofreak

    Joined:
    May 16, 2006
    Location:
    London
    #8
    Oopsy daisy...I just assumed...it seemed to me that the Finder (like Quicktime) is used system-wide and should not be messed with...
     
  9. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #9
    It can be necessary for things that use OSA (Applescript), but if Finder is needed in those cases, it will be started up when required. So, deleting or otherwise making Finder inaccessible would be a bad plan, and it shouldn't be messed with in that sense.
     
  10. yod9999 thread starter macrumors newbie

    Joined:
    Jan 6, 2007
    #10
    it certainly does. it's not really a proper mac app, it's been ported over from linux.

    i was going to try something like this, i was just wondering if someone knew of a better/proper way of doing it

    cheers
     
  11. savar macrumors 68000

    savar

    Joined:
    Jun 6, 2003
    Location:
    District of Columbia
    #11
    I don't know of any "good" way to do this -- I don't think Apple really supports replacing the Finder. Writing a shell script is probably your best bet, although I don't know if Window Manager can launch a non GUI application.
     

Share This Page