Launch Finder Without Opening a New Window

Hello,
I'm making an application that resizes the icons on the desktop, and I would like to know if it's possible to launch the the Finder without it automatically opening a new Finder window.
My, Applescripts look something like this right now..
on «event coVScliI» theObject
(do shell script "defaults write com.apple.finder DesktopViewOptions -dict IconSize -integer 70")
(do shell script "killall Finder")
tell application "Finder"
activate
end tell
end «event coVScliI»
The reason for my killing the Finder in the first place is because it needs to be restarted for the changes to take affect.

Hi,
If you don't mind using [GUI Scripting|http://www.macosxautomation.com/applescript/uiscripting/index.html], then the following script should relaunch the Finder without opening any new window (at least it does on Mac OS X 10.6.2) :
tell application "Finder" to activate
tell application "System Events"
key code 53 using {option down, command down} -- ⌥⌘⎋
click (row 1 of table 1 of scroll area 1 of window 1 of process "loginwindow" whose value of text field 1 is "Finder")
keystroke return
keystroke return
keystroke "w" using command down -- ⌘W
end tell
(If the script doesn't work properly on your computer, first try adding a “delay” statement before the problematic line of code, for example “delay 0.2”.)

Similar Messages

  • Finder search opening in new window and sidebar gone

    Hi, just wondering if anyone could shed some light on this cause I'm quite lost.
    First of when hitting Command-F in the Finder it opens up in a new window, I'm pretty sure it didn't do this before. Opening folders does not open in new windows. Using the "Go" menu also has the same behaviour. However it's not really a big issue.
    Secondly and this is what's irritating me the most, the sidebar disappears when doing this. Toggling the sidebar and closing the window and starting a new search makes no difference, still no sidebar.
    I have done some pretty major changes to my system recently, and even if I don't really see why it would have effects like this (havn't noticed any other changes). What I have done is that I have moved /Users/* to a separate volume and is mounting the volume as /Users using fstab.
    I tried experimenting a little with com.apple.finder.plist and removing the file (i.e. letting finder recreate), this caused the sidebar to appear, however adding:
    <key>CreateDesktop<key>
    <false />
    Made it disappear again, freaky if you ask me... I have had the desktop off for ages without any problems so don't see why it wont work any longer. Or if it only has to do with this key and not also others.
    Property list is here (for one month) if it helps: http://pastebin.com/TYGsWj9T

    Okay, this is wierd (and embarrasing), everything suddenly started working again after days of not working... Did nothing I can think of, only thing that I have done actively is that I have defaulted property list and restarted Finder multiple times. I even reverted back to the old property list and it still worked, maybe some cache problem? (which I didn't think of till now) but otherwise I don't know, thanks for reading my question at least .

  • How do I disable finder from opening a new window upon mount?

    When an external drive is mounted (such as an iPod in disk mode) Finder opens a new window showing the root of the new drive.
    I realise why this happens, but is there any way of disabling this feature?.
    Cheers,
    Ebsy

    It seems that there is a special flag that can be set or cleared on the volume to control that behavior. There is an Apple developer article about it, with source code, that might help.
    http://developer.apple.com/qa/qa2005/qa1449.html
    I have to believe that someone has packaged up that code into a utility that can be found.

  • Can I execute my task without openning a new window?

    Hi, all.
    Is it possible to execute a task withiut openning a new window?
    If it`s possible, how can I do that? Thanks
    Best Regards.
    Louis Huang.

    Hi Louis,
    Well, you could change the configuration for the UWL item (System Administration -> System Configuration -> Universal Worklist & Workflow -> Universal Worklist - Administration).
    Somewhere on the admin page you'll find 'Click to Manage Item Types and View Definitions' which allows you to enter a new configuration (as changing the standard is not allowed).
    Simply have a look at the existing configurations in order to get familiar with it. In the action group there is a parameter launchInNewWindow. I put it on "no" for test purposes and taa daa it works.
    Nevertheless there are some drawbacks configuring this:
    - The popup (after completing the task) provides a 'Close' mechanism. If you decide to click it it will close the complete browser window and the UWL will be gone. Thus you would need to answer with 'Cancel' here and manually navigate back to the UWL.
    - Same is true for the 'Close' button which is part of the task execution UI. This isn't that useful anymore.
    So my general recommendation would be keeping the pop-ups as it would also allow you having multiple tasks open at the same time and does not come with the beforementioned drawbacks. Nevertheless you could try it out on your own
    Best regards,
    Martin
    edit
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC "-//SAP//UWL1.0//EN" "uwl_configuration.dtd">
    <UWLConfiguration version="1.0">
    <ItemTypes>
    <ItemType connector="BPEMUWLConnector" defaultAction="launchWebDynPro" defaultView="DefaultView" executionMode="default" name="uwl.task.bpem">
    <Actions>
    <Action groupAction="" handler="SAPWebDynproLauncher" launchInNewWindow="no" name="launchWebDynPro" referenceBundle="launch_sap" returnToDetailViewAllowed="yes">
    <Properties>
    <Property name="WebDynproApplication" value="ATaskExecution"/>
    <Property name="WebDynproDeployableObject" value="sap.com/tc~bpem~wdui~taskinstance"/>
    <Property name="DynamicParameter" value="taskId=${item.taskId}&amp;isSubstituted=${item.isSubstituted}&amp;locale=${item.locale}&amp;timezone=${item.timeZone}"/>
    <Property name="System" value="${item.systemId}"/>
    </Properties>
    </Action>
    </Actions>
    </ItemType>
    </ItemTypes>
    </UWLConfiguration>

  • How can I open my email without opening a new window with ad?

    When I open Firefoxand the first email I try to open, a new window opens with an ad. I have tried eliminating the same by deleting the cookie pertaining to the address in the window but to no avail. The address in thar window is: http://nym1.ib.adnxs.com/pop?enc=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAPA_AAAAAAAAAAAAAAAAAAAAAOEJxSjX1mgkTBUzhWf4bTmx69VQAAAAAPRnDQAdAgAAHQIAAAIAAAD4yUMAlEECAAAAAABVU0QAVVNEAOcD5wM_HgAAkloAAgQCAQUAAIQAKRUPAQAAAAA.&cnd=!3Bkj8QiP2zEQ-JOPAhgAIJSDCTAEOL-8CEAESJ0EUPTPNVgAYLQCaABwAHgAgAEAiAEAkAEBmAEBoAECqAEAsAEAuQEAAAAAAAAAAMEBAAAAAAAAAADJAYIVYAp8g_A_2QEAAAAAAADwP-ABAA..&udj=uf%28%27a%27%2C+45349%2C+1356196785%29%3Buf%28%27r%27%2C+4442616%2C+1356196785%29%3Bppv%2829846%2C+%272623583002533628385%27%2C+1356196785%2C+1356239985%2C+814479%2C+147860%2C+0%2C+4%2C+10368000%29%3B&ccd=!LAW0LwiP2zEQ-JOPAhiUgwkgBA..&vpid=45&creative_click=http%3A%2F%2Ffinancereports247.com%2F2%2F&referrer=http%3A%2F%2Fus.mg6.mail.yahoo.com%2Fneo%2Flaunch%3F.rand%3D65g3ng480fvtm&dlo=1
    Hope you can fix this or i will start using other browser.

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try some of the following programs to scan for malware:
    * [http://www.malwarebytes.org/mbam.php MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://windows.microsoft.com/MSE Microsoft Security Essentials] (A good permanent anti-virus if you don't already have one)
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Can't disable finder folders open in new window

    In Finder Prefs I changed it to always open folders in new window. Later I decided to switch it back so I unchecked it. It still opens folders in a new window. Obviously, I've tried several times, restarted many times, etc.  Suggestions?

    Exactly. Since the OS stores all code that runs the machine in RAM, you need to restart any app that you make changes to for it to use the new settings. Since the Finder is always running (it operates the Desktop and other things), relaunching via the Dock option forces it to dump its code from RAM and repopulating it with the new settings.

  • How do I stop finder from opening a new window every time I download an image (drag and drop)?

    Before I updated my computer I could drag and drop a new image from the internet to wherever I wanted on the desktop. Now when I download a new image from the internet it opens the "Desktop" finder windo. Also it systematically downloads the new image to be placed underneath the last downloaded/organized file. How do I stop it from doing both of these things?

    Try relaunching the Finder > Relaunch Finder… from the Mac OS X Finder

  • Finder opens a new window with tabs in the last closed window loaded automatically

    As the title says, I've found this happens more than a few times for some change. Maybe every time, I didn't count. Say, I closed a window with 3 tabs opened, then next time when I click finder to open a new window, I will find the 3 tabs loaded in the new window automatically. I am wondering if it is a new feature or bug. If it is not right, would anyone give me some suggestion to correct, if possible? Thanks.

    Yup. I think bring convenience or not is supposed to be the fundamental difference bugs and features.
    Convenience also comes with users' habit. I am sure I will get used to the new way as time goes by.

  • What code to navigate from page without opening a new page?

    Hello, I have a flash button embedded into a css/HTML page that I want to use to navigate into a new page without opening a new window. Here's the code I'm using in the SWF which I got from the adobe tv tutorial:
    http://tv.adobe.com/watch/adc-presents/buttons-and-interactivity-in-flash-cs4
    Here is the test page that I have embedded the flash button in: http://ianmartinphotography.com/testers/index-flash.html
    The flash button is the "about Ian" button on the upper left. I want the navigation to be like the traditional rollovers on the page. (I'm working my way up to having the embedded flash button fade into place, that's why I'm using flash.)
    // 1. Event handler function
    function clickHandler (Event:MouseEvent): void
       trace("CLICK!");
       navigateToURL(new URLRequest("http://ianmartinphotography.com/about.html"));
    // 2. Assign listener 
    about_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    I just want to go to a different page, not open a new window. How should I change this code to do that? Thanks!
    -Ian

    If you look up the navigate ToURL function in the help documents it lists all of the window options available.  For your case you can use:
    navigateToURL(new URLRequest("http://ianmartinphotography.com/about.html"), "_self");

  • Link in Flash keeps opening in new window

    I have l a flash file in my pages that links to other pages within my web site but when clicked they automatically open in another window. How can I link them without opening a new window as would happen with a normal web page  link?
    Here is my current Action Script code:
    index.addEventListener(MouseEvent.CLICK,indexbuttondown);
    function indexbuttondown(event:MouseEvent):void {
    var bbcURL:URLRequest = new URLRequest("index.html");
    navigateToURL(bbcURL);
    Thanks for your help
    Nick

    Try changing the one line to be:
    navigateToURL(bbcURL, "_self");
    And test on a server.  Testing locally isn't reliable when browser window commands are involved.

  • I try to launch firefox get the following message "firefox is already running, but is not resonding. to open a new window, you must first close the existing firefox process, or restart your system" firefox is not running and restart doesn't work

    when I launch firefox get the following message "firefox is already running, but is not resonding. to open a new window, you must first close the existing firefox process, or restart your system" firefox not running and a restart doesn't solve the problem

    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 12.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    See also:
    *https://support.mozilla.org/kb/Firefox+is+already+running+but+is+not+responding
    *http://kb.mozillazine.org/Profile_in_use
    *http://kb.mozillazine.org/Recovering_a_missing_profile

  • I can't open a new window in Firefox 4 on my mac. Was working great. I installed new mac firmware and restarted, probably without closing Firefox properly. Now window won't open.

    Hi:
    As noted above, Firefox won't open a new window. I restarted machine without closing Firefox. Now, I get the Firefox menu bar but it won't open a window. I'm using mac, with OS X 10.6

    Firefox doesn't install new versions of plugins, but Flash may update itself automatically.<br />
    You are still one version behind on Flash, current is Flash 10.1 r85<br />
    If the Flash player didn't update properly then you need to download the full version and run the installer as Administrator (right-click: Run as ...)
    Flash Global Notifications Settings Panel:<br />
    *http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.html
    You are more versions behind on Java updates with having Java 6 U11, current is 6 U22.
    *Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs

    When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs
    == This happened ==
    Every time Firefox opened
    == Noticed yesterday, June27, 2010

    i just went into preferences, deleted what was in the home page, and entered a new home page address which solved the problem, 

  • Can the "Finder" icon be set to always open a new window?

    Can the "Finder" icon (on the dock) be set to simply open a new window every time when clicked? Instead of always selecting the dialog "new finder window" under "File" ? Or having to right clicking on the FINDER dock icon, then selecting "new finder window".
    I'd like to simply click on the finder icon and have a new window just open every time.
    Same with Safair. Simply click on the "Safari" dock icon, and a new blank safari window would open, instead of selecting "new window" under safari "File" menu.
    I don't know if this can be set by setting a command via terminal, or ?
    There are no options under preferences to do this.
    Usually there is some "command line" done within the terminal app, to tweek most default settings, like what I want to do...?

    The easiest way to open new windows in Finder, Safari and just about any other program in Mac OS X is to use the keyboard shortcut, 'Command' + 'n'

  • Safari.1.1lion when i open a new window it opens as the old version without the reading list button or the download button why is that ?

    so i downloaded the new safari version safari.1.1lion and i installed it and i love it but when i open a new window or i close safari and open it again it opens like the old version (the safari leopard ) it doesnt have the doenload button or  the reading list button . it only opens as the new version if i restart the computer why is that.

    I did find the problem... It was the DivX Plugin for Firefox. I just found I wasn't using it. I went to Add/Remove Programs and uninstalled it. FYI I am running Windows 7.

Maybe you are looking for

  • How to read and display a signal from my PIC Microcontr​oller onto Labview?

    Hi, I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART? How do i implement and initiali

  • Validation in a Multi Row Delete

    Hi all, i made a page with an updateable report region - all works fine. But now i want to do a validation in the process 'Multi Row Delete'. The aim is to guarantee that the specific row is not deleted if the validation for that row fails. How can i

  • Required account rights for Alert and Performance/Topology collection and operations SDK

    Hi, My question is with regards to required user role privileges for performing certain operations using Operations Manager 2007 R2 SDK. - Registering an internal connector to MS SCOM for alert subscription: http://msdn.microsoft.com/en-us/library/bb

  • CD Burning Issue - P205-S476

    I have a Toshiba P205-S7476 and I'm constantly getting "CD Write Error 0x8040411f" when trying to burn a cd with Yahoo jukebox. I also get an error when trying to burn a cd with Itunes. This error occurs just when the burn is starting to initialize b

  • Determ VAT regist no in VBRK-STCEG in case of domestic & Export sales in EU

    Hello, In case you have come across a scenario to correctly determine the VAT registration no in VBRK-STCEG from SOLD to Party both for domestic sales and export sales , pls share the approach taken. Pls let me know in case some User exit is used to