In the lives of many makovodov sooner or later there comes a crucial moment, when the need arises to open the Finder the same folder in two different windows. Those who are in a hurry to advise some two-pane file manager, - stop. Armed with "Avtomatorom", the task can be easily solved without third-party applications.
All you need to do - is to create a duplicate of the current window "Finder", an exact copy. And this will help you elementary AppleScript script language, which will be the only action in the new service "Avtomatora":
If we translate the contents of the script on the Russian language, it can be written as: "Order the Finder to create a A new window active identical, with the same object display mode, which is set in the initial window. " Copy the following code below and paste it into action Run AppleScript (Run AppleScript):
on run {input, parameters} tell application "Finder" try set newWindow to target of the front window set newView to current view of the front window make new Finder window to newWindow set current view of the front window to the newView end try end tell. end run
Notice that the header of the process specified: no data on input does not accept and bind a new service only the application Finder (which in itself is logical, as an AppleScript script-only "Finder" and addresses).
Save the service under the way you want the name - for example, Duplicate the current window (Duplicate Current Window). After that, switch to the Finder and in the menu Finder> Services (Finder> Services) you will see a new item. By clicking on this item opens a new window that is on the outside does not mean the content and no different from the one that was active a moment ago.
Housekeeping tip. As you can see, when using an AppleScript script code-it is all colored in purple. To view code with syntax highlighting, press fn + input (Or just a key input in the digital unit, if you have an extended keyboard).