Open finder window on a specified place on the screen

Hello,
In trying to somehow replicate the drop stack in PathFinder (www.cocoatech.com), I use a very simple script that I save as app bundle and place on the finder toolbar. The script is
do shell script "open /Users/myusername/temp"
I know this is not quite Applescript, but it works .
I have two questions to improve my little script
1) Is there a way to force the new finder window to open on a specified place on screen (ideally to the side of and flushed against the window from which it was called)
2) If I close the "temp" window without toolbar and sidebar (click on the oval top-right button), it will come that way when called again. However, I may forget sometimes to close temp that way. Is there a way to force a finder window to be opened without toolbar and sidebar?
Any help will be appreciated.
Thanks,
MarceloC

I think I answered my own question, thanks to an older post by Camelot on another topic. I use the following script
tell application "Finder"
set {l, t, r, b} to bounds of (Finder window 1)
do shell script "open /Users/myusername/temp"
set bounds of (Finder window 1) to {l - 305, t, l - 5, t + 300}
set current view of (Finder window 1) to icon view
set toolbar visible of (Finder window 1) to false
set the sidebar width of the (Finder window 1) to 0
set statusbar visible of (Finder window 1) to false
end tell
This works like a charm! Now my appetite is whetted, so I want an even more refined script . I tried to set the path bar to invisible (which I have visible by default), but failed. I tried with "set pathbar visible...", but that did not work. Maybe the Path Bar is a global property for all finder windows and cannot be set individually?
Also, expressions of the form
set the iconsize of (Finder window 1) to X (or with textsize or gridsize)
are accepted and compiled by Script editor. However, all my attempts at puting a value for X led to an error at execution time. Is this the correct way to do this? What is the format to do it?
I guess an even more encompassing question is where does one find this kind of info (as in being able to know everything I can set for a window with applescript...)
Thanks again. This is a great support list!
MarceloC

Similar Messages

  • Is there a way to view just one open Finder window (without any other Finder or other application windows coming into view) from a Desktop hot corner in Yosemite?

    I just upgraded to Yosemite from Snow Leopard on a MacBook Pro. Previously, I could view just one open Finder window by viewing the Desktop via a hot corner and then selecting Finder from the Dock. This would pull only the top Finder winder into view, without showing any other open Finder windows, and most importantly, any other open application windows. I could then easily drag files/folder from my Desktop into the Finder window (which I do A LOT). Since upgrading to Yosemite, whenever I use the Desktop hot corner and select Finder from the Dock, it pulls every open application and Finder window back into view, putting Finder in front.
    Is there any way to view just one already open Finder window (or all Finder windows for that matter) without seeing all other open applications, without having to Hide the other applications or using Spaces?

    Yes I've created an Automator Application that does the job, but the "watch me do" function that does the Mail Merge is a rather Clunkey work around, as the mouse moves all over the place, thats the part i want to remove and replace with a script, or work out a different way around it that avoids the "watch me do" function.
    Is this Possible? or where/who is there i can ask to write me a script, im not a novice to scripting, but i am a novice to Applescript.

  • Make all open finder windows come to the front?

    Things that used to be so simple on the Mac are now so complicated.
    I have a bunch of finder windows open. Most of them are hidden behind other application windows, like my browser.
    I used to be able to click anywhere on the desktop to make all windows come to the front. No longer. Later, I could do it by mousing all the way over to the Dock and clicking on the Finder icon there. Now even that doesn't work!
    How the heck do you simply make all open finder windows come to the front???

    DrBeckenstein:What to use in its place though?The utilities of choice for Mac OS X are Tech Tool Pro and Disk Warrior. Both of these pick up where Disk Utility leave off. When DU reports errors it cannot repair, you turn to one or the other of these two. Many Mac users like Disk Warrior for it excellent work in repairing and rebuilding directories. I use TTP because it not only does excellent work with directories, but it also does hardware checks, disk optimization, files checks, eDrive (emergency boot drive) etc. In the long run, though, it is largely a matter of personal preference.
    Again, I don't know what maintenance procedures you employ, but our Systems get rather sluggish sometimes as caches fill up, preference files become corrupted, the need for Unix maintenance allow CRONs to build up. Here are a few sites that offer good suggestions and links to resources:
    1. Macintosh OS X Routine Maintenance
    2. Maintaining Mac OS X
    3. Mac OS X: How to force background maintenance tasks (logs and temporary items)
    4. http://discussions.apple.com/thread.jspa?messageID=607640&#607640
    I mentioned in my earlier post that if the problem is essentially with one application you can go into Home Folder > Library > Preferences, find the .plis for that application, drag it to the desktop and restart. Check to see if that makes a difference. If it doesn't you can replace the new .plist created with the one on the desktop, or just drag the desktop copy to the Trash.
    In your situation I would run Repair Disk from the install CD, then implement some of the suggestions on maintenance.
    One other thing to note: a too full HDD can cause problems. If it is over 50% full it could need disk optimization. If have near 85% of available capacity used, you are running a risk not only of compromised performance, but also of directory overlapping and, eventually of a crash.
    Good luck.
    cornelius

  • File can not be moved by drag and drop in the finder when not open Finder windows

    With the operating system OSX Snow Leopard, it was possible, for example, a file from the desktop to pull drag and drop on the Finder icon, the page opened after a short and you could put the file in a folder.
    At this stage I must first open the Finder to drag a file into the destination folder.
    Is it a setting or is there anything wrong with my Mountain Lion properly?
    It is often the case that several windows of other applications are open or in Fullscreen are, then I would, as I also already knew and am accustomed, for example a file regardless of the location from which drag drag and drop in the Finder without leaving the / program / ​​site to open the Finder, before returning to the file then select I wanted to move.
    Note: For all other programs it works.
    Finder not only in where it makes the most sense.
       Picture 1: Finder window opens when you drag a file to the Finder icon
       Picture 2: Finder icon flashes but the Finder window does not open. Finder windows have previously by clicking on the icon in the Dock will be open to pull a      file into it.
       Thanks in advance for your help :-)

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • File Open/Find Window

    Dear All,
    I want to call the file open/find window of MS windows from the forms 6.0. Please help.................................

    Create a Button Named Browse and Put When Button Pressed Trigger and write these code on When_Button_Pressed Triggers.
    DECLARE
         filename VARCHAR2(256);
    the_command varchar2(2000);
    BEGIN
    filename:= GET_FILE_NAME
    ('C:\',File_Filter=> 'TXT Files (*.TXT)|*.TXT|');
    :block3.file_name:=filename;
    END;
    Khurram Siddiqui ([email protected])

  • Cannot switch to open finder windows

    when i command-tab to finder, my currently open finder windows do not appear! if i re-launch finder, finder behaves normally for a little while, but at some point open finder windows simply do not appear when i switch to the finder. i've properly switched to finder because my menubar says so; and if i use expose i can see that i do have a finder window indeed open, it's just hidden behind whatever application i was switching from.
    at first i noticed this problem was occurring right after running certain automator workflows as finder plug-ins; only some caused this to happen, not all of my finder plug-ins. i ran the workflows IN automator and it did not cause the problem, but immediately after running them from the finder the problem appeared. i've been using these workflows for months: appzapper, cleanapp, and a couple i made.
    but even if i don't invoke those workflows, the problem duplicates itself eventually, until i'm forced to restart finder!

    SOLVED.
    problem: having items in both the /Library/Contextual Menu Items and ~/Library/Contextual Menu Items.
    the program NoteTaker by Aquaminds automatically installs an item into your global contextual menu items; for some reason, the existence of items in both folders would break open finder window focus when switching to finder, after any contextual menu item was invoked--even if it's a standard OS X one, like "get info"!
    this has been annoying the crap out of me the last few days. amazing what revelations we have in the shower.

  • Can't open Finder windows or Preferences

    I can't open Finder windows or Finder Preferences.
    When I click on the Finder icon in the dock, use File>New Finder Window, the Go menu, or Finder>Preferences, nothing happens. I even tried opening a folder from Spotlight and "Open in Finder" from a stack but still nothing. I ran a cleaner (Cocktail) but no change. It's like having a virus. (Safari Autocomplete and Facebook login also stopped working about a day before I noticed this).
    The only thing problematic that has happened recently was while I was on familyguyx.net, the page loaded without any trigger to one of those pop-ups that repeatedly appears until you reset your browser. Since then I haven't been on that site but these other issues have started.
    Any help is really appreciated!

    Do you possibly have the Applescript menu or even some text processor in your dock?
    If you have the Script menu, open the script editor from that menu and type this into the untitled window:
    tell application "Onyx"
    activate
    end tell
    Then run it.
    If you don't, open a text editor-if you can-and type the same thing into it. Select all of the text and look for Services>Script Editor>Run As Applescript. That should run the above script and open Onyx. Services is under the Application Name menu.
    If those don't work, let me know what you have in your dock, and maybe I can figure out another way.
    Jim
    Message was edited by: Barney-15E

  • Multiple drag emails from Mail to a finder window and for it to name the files as the subject heading

    Hi
    I have been using Mac's now for about 10 years and this is my first problem.
    I have recently moved into an office that use PC's with a Windows server.
    I have set up the network to transfer files and view the windows server and it  works fine.
    I have a problem in that my colleagues on PC need to be able to view my emails which I send and receive using Mail. They therefore need to have logical title names and the date sent and ideally who to or from. I view them and archive them using Mail which is fine for me.
    I understand about the archiving and copying of mailboxes but this gives every email the un-fathomable title name 9944847 etc.
    I can get round the problem by dragging and dropping every email I send and receive individually and it will automatically give it a more logical title of the subject heading however the date is when it was dragged not when sent. This is a pain if I am away or forget to save an email for a day or two and then the date is inconsistent.
    Is there a way to batch copy emails from Mail to a finder window and for it to name the files as the subject heading or to archive the files in a similar way so they retain the detailed information my colleagues require.
    And no I can not get to all change to Mac and I don't really fancy using Outlook, Entourage or Parallels.
    Please help.
    Toby

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the text on the line below to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. If you get a warning that the file is in use when you try to empty the Trash, log out and log back in.

  • Open a external application in a concrete place in the screen

    I need to open an external application from my swing app, but the application window should be opened in a concrete place in the screen, such as using setBounds in a JInternalFrame. Runtime methods just run the application in a new thread, but I can't place the window it the place I need.
    I think some kind of external dll with jni should work, but I don't know which methods to use or even if it's a solution made in swing.
    any ideas?
    thanks in advance

    The fact is that I need to move "any" application, because today it's some app like netmeeting but noone knows what will want tomorrow. Embbeding sounds good, can you give me more info?
    And thanks a lot!

  • Why are some jpg images scrambled when they appear in my screen saver?   The same images look fine in Preview and Finder.  Some images appear scrambled in the screen saver 'preview' window and the actual screen saver. Other jpg images look fine.

    Why are some jpg images scrambled when they appear in my screen saver?   The same images look fine in Preview and Finder.  Some images appear scrambled in the screen saver 'preview' window and the actual screen saver. Other jpg images look fine.

    The desktop image is fine, taken from the exact same pool of jpg photos.  However, as soon as the slide show screen saver comes on, the images are scrambled.  What is it about the apple screen saver algorithm that scrambles the pics?

  • Recently when opening a window a spining multicolored pinwheel replaces the cursor. what's going on?

    Reccently when opening a window a spining multicolored pinwheel replaces the cursor. what is going on?

    I'm not an expert on this, but it could indicate different problems. I assume that the pinwheel goes away after a while. If not, then seems that the activity in the window is locked up.
    You might look at the memory usage on your computer. Open Activity Monitor in your Utilities folder and look at the memory usage on your computer. You may not have enough ram.
    If you hadn't shut down and restarted your computer lately, you may try doing that to see if it clears up temp files and free up some memory. If you don't have enough memory, try closing other applications to see if it helps any.
    You can also look at the CPU usage in Activity Monitor to see what's using up any high percentage of the CPU.

  • I have used the resume tablet and put my resume into format but when emailing it, it will not open on windows. How can I change the format to where they will be able to open and view it?

    I have used the resume tablet and put my resume into format but when emailing it, it will not open on windows. How can I change the format to where they will be able to open and view it?

    I guess you mean one of the resume templates.
    What "format" have you saved your finished resume in?
    The only formats a Windows user will be able to open are .doc (Word), .pdf and rtf. The 1st 2 are usually the best.
    There is no Windows version of Pages.
    Peter

  • How to position the Stage at the first available place on the screen

    Im creating a Stage,
    but for any reason when I dont define x,y it shows in different places on the screen, and sometimes outside of the screen
    if I set x=0 and y=0 I have problems, because some user, like me, use the taskbar on the top of the screen,
    anybody knows how do workaround this ?
    this is the code of my Stage
    public class Game extends Stage {
        public var tick: Timeline = Timeline {
            repeatCount: Timeline.INDEFINITE
            keyFrames: [
                KeyFrame {
                    time: 0.01s
                    action: function() {
                        mainLoop();
        // main game loop
        public function mainLoop(){
            for (node in scene.content) {
                if( node instanceof Updatable){
                    (node as Updatable).update();
        public function play(){
            tick.play();
    }and this is how I'm using it
    var game: Game = Game {
        title: "Cabecudinhos, episódio 1 o ataque dos mosquitos"
        x: 0
        y: 0
        width: 800
        height: 600
        scene: Scene {
            content: [
                background
                littleBox
    function run(__ARGS__ : String[]) {
        game.play();
        soundtrack.play();
    }

    You can ask Java for that.
    You can just center the stage on screen, that's quite easy given the screen dimensions:
    import java.awt.*;
    var dim: Dimension = Toolkit.getDefaultToolkit().getScreenSize();
    println("Screen is {dim.getWidth()}x{dim.getHeight()}");I suppose it works for main screen, there is code to get the info for all screens (if several are connected).
    If you need to know the placements of the taskbar and other bars, you need to get the insets, which is a bit more convoluted.
    var ge: GraphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();
    var gsl: GraphicsDevice[] = ge.getScreenDevices();
    var gcl: GraphicsConfiguration[] = gsl[0].getConfigurations();
    var ins: Insets = Toolkit.getDefaultToolkit().getScreenInsets(gcl[0]);
    println("Insets are T {ins.top}, L {ins.left}, B {ins.bottom}, R {ins.right}");It shows B 34 for my setting and T 34 if Windows' taskbar is on top, etc.

  • The find/change box keeps popping up off the screen. Rebooted and screen is fine, box is not

    the find/change box keeps popping up off the screen. Rebooted and screen is fine, box is not

    Is it visible at all? If so, drag it to a new location, hit the "Done" button to close, close your document and launch InDesign again. By the way, are you on OSX or Windows? I'm on OSX and that works for me. My InDesign version is CS6. Hope this helps.
    Cheers!
    -Mikey

  • My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the screen to open with a password.  How do I fix this?

    My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the screen to open with a password.  How do I fix this?

    You will need to restore it. It may not sync, but the iPad's sidebar has to appear you can restore it and it will be as the last time ou synced it to iTunes. For more info:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

Maybe you are looking for