finder button - new finder window

Discussion in 'macOS' started by 4now, May 30, 2008.

  1. 4now macrumors regular

    Joined:
    Sep 20, 2007
    #1
    Is there a setting that will launch a new finder window whenever the finder dock icon is selected?
     
  2. Virgil-TB2 macrumors 65816

    Virgil-TB2

    Joined:
    Aug 3, 2007
    #2
    You should just have to click it.

    Maybe you need a reboot?
     
  3. psychofreak Retired

    psychofreak

    Joined:
    May 16, 2006
    Location:
    London
    #3
    I think the OP means that a new Finder window should be opened, even if one is already open, right?
     
  4. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #4
    what I mean
    is that if a finder window is already open
    then it will come into focus when the dock icon is selected

    but I want a separate finder window to launch every time the icon is selected

    usually I need to right click the icon and select 'new finder window'
     
  5. psychofreak Retired

    psychofreak

    Joined:
    May 16, 2006
    Location:
    London
    #5
  6. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
  7. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #7
    I think adding the bits in bold will be better, this way it won't throw an big confusing error if it fails and also the Finder will be the active application at the end with the window at the front. Just my thoughts.

     
  8. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #8
    is there a line I can add to make it open to my user's 'Documents' folder by default?

    thanks
     
  9. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #9
    This should work

     
  10. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #10
    That works great! thanks a lot

    sorry I'm still new to the mac platform
    after I've entered the script into script editor
    how do I save it as an .app
     
  11. Consultant macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #11
    1. What's so hard about Command-N? Can do it faster than mousing over and click something.

    2. Go into Finder Preferences, and set:
    "New Finder windows open:" to documents
     
  12. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
  13. imac123 macrumors regular

    Joined:
    Apr 26, 2008
    #13
    oo i've been wanting the same thing too, thanks for posting this!

    Is there a way to make the default window a certain size too?
     
  14. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #14
    File - Save - Select Application Bundle (makes it universal) and uncheck startup screen if already selected.

    Play around with the values to make it how big you want and where abouts on the screen

    Not the prettiest as it will create the window then make the size and position of the window but it happens very quickly indeed and I don't have the time now to figure it out.
     
  15. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #15
    Hi - Just noticed this doesn't open a 'new finder window'

    can the script be adjusted somehow

    I tried everything I could think of

    thanks
     
  16. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #16
    Strange does it on mine any how is this better

     
  17. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #17
    I get a syntax Error

    Expected “given”, “with”, “without”, other parameter name, etc. but found class name.
     
  18. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #18
    no it doesn't open a new finder window whenever the app is clicked


    try
    tell application "Finder"
    make new Finder window at front
    activate application "Finder"
    end tell
    end try

    opened a new window every time
     
  19. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #19
    Where does it highlight in the script when it says that.

    What exactly do you mean by "this doesn't open a 'new finder window'"

    The second script is semi borked but the try should remove that part. It works fine here.

    Here is the first script that I posted and works fine here unless I am misunderstanding how you want it to work
     

    Attached Files:

  20. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #20
    Ok read your latest posting, problem is (as far as I am aware) if there is a window already open with that folder then the script will just refer to that window.

    The easy way to get around that is to just set the Finder preferences to open your Documents window by default then the script that you quoted will work. To do that go to Finder - Preferences - General - New Finder Window Opens - Then select where you want
     
  21. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #21
    when I select the button (script.app) from the dock
    finder opens - to documents

    but if I click the dock button again I do not get a second finder window
    instead it reloads into the finder window that is already open

    but the first script you made 'make new Finder window at front' opened a separate window every time
    just not to 'documents'

    test.app opens only once - thanks
     
  22. 4now thread starter macrumors regular

    Joined:
    Sep 20, 2007
    #22
    I already tried that

    I thought that would work too - but it didn't
    it won't open to 'documents' even though it has been selected in preferences

    oh well - thanks for your efforts
     

Share This Page