ResetFinderWindow

Atalantia

Atalantia

Aktives Mitglied
Thread Starter
Dabei seit
26.11.2009
Beiträge
1.894
Reaktionspunkte
432
Wer kennt es nicht. Beim Herumschieben und Suchen, Kopieren, Suchen und Vergleichen hat sich eine Menge von offenen Finder Fenstern angesammelt. Man muss nun wieder alle schliessen und die zwei die man braucht neu anordnen. Das frisst Zeit und hat mich immer genervt. Ich habe deshalb ein kleines Script gemacht um einen Zustand mit zwei Fenstern zu je zwei Tabs herzustellen.
Die Grösse ist für einen iMac 20' ausgelegt. Man kann die Grösse aber auch ändern. Script öffnen und die Zeilen "position" und "bounds" anpassen.

Das zip enthält einen Dienst workflow und ein Script.

Installation:
Doppelklick auf das Workflow File oder verschieben nach:
/Users/~/Library/Services/SimpleResetFinderWindow.workflow

SimpleResetFinderWindow.zip
 
Zuletzt bearbeitet:
Ich hab das Script nochmal verbessert.
SimpleResetFinderWindow1.3.zip
Code:
(*
SimpleResetFinderWindow
v1.3
written by Atalantia
20.03.2014
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Get a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
or visit http://www.gnu.org/copyleft/gpl.html
*)

tell application "Finder"
	close every window
	
	make new Finder window
	set bounds of Finder window 1 to {0, 44, 1524, 504}
	set target of Finder window 1 to folder "Desktop" of home
	activate
	
	tell application "System Events"
		tell process "Finder"
			keystroke "t" using command down
			
			tell application "Finder"
				set target of Finder window 1 to folder "Documents" of home
			end tell
		end tell
	end tell
	
	make new Finder window
	set bounds of Finder window 1 to {0, 527, 1524, 1050}
	set target of Finder window 1 to folder "Downloads" of home
	activate
	
	tell application "System Events"
		tell process "Finder"
			keystroke "t" using command down
			
			tell application "Finder"
				set target of Finder window 1 to folder "Library" of home
			end tell
		end tell
	end tell
end tell
 
Zurück
Oben Unten