Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yod9999

macrumors newbie
Original poster
Jan 6, 2007
21
0
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
 

72930

Retired
May 16, 2006
9,060
4
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...
 

Mitthrawnuruodo

Moderator emeritus
Mar 10, 2004
14,665
1,478
Bergen, Norway
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...
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.
 

mkrishnan

Moderator emeritus
Jan 9, 2004
29,776
15
Grand Rapids, MI, USA
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

?
 

elppa

macrumors 68040
Nov 26, 2003
3,233
151
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.

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?
 

72930

Retired
May 16, 2006
9,060
4
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.

Oopsy daisy...I just assumed...it seemed to me that the Finder (like Quicktime) is used system-wide and should not be messed with...
 

iMeowbot

macrumors G3
Aug 30, 2003
8,634
0
Oopsy daisy...I just assumed...it seemed to me that the Finder (like Quicktime) is used system-wide and should not be messed with...
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.
 

yod9999

macrumors newbie
Original poster
Jan 6, 2007
21
0
Does the app really write to standard out? Not very many Aqua / GUI Mac apps that I've seen do that.

it certainly does. it's not really a proper mac app, it's been ported over from linux.

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

?

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

cheers
 

savar

macrumors 68000
Jun 6, 2003
1,950
0
District of Columbia
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

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.