Quickly and Neatly Open Two Pre-Specified Finder Windows Via Applescript

Several times a day on my Plex Mini I was opening the same two Finder windows (the “new downloads” folder and the “tv shows” folder) to make sure stuff in “new downloads” was being automatically transferred (using Episode Linker) to my “tv shows” folder.

Well, instead of manually opening the two Finder windows, resizing the windows, and navigating to the correct folders, I made an Applescript (with help from various other applescript sites/posts around the web) that does it automatically…
Here’s what the script looks like with comments on what you can tweak:

property monitor_width : 1680 --set to your display resolution width
property monitor_height : 1050 --set to your display resolution height

set p1 to "/Volumes/DOWNLOADING/_NEW/" --set folder for finder window 1, spaces are okay in folder path
set a to POSIX file p1
set p2 to "/Volumes/Drobo/TV/" --set folder for finder window 2, spaces are okay in folder path
set b to POSIX file p2

tell application "Finder"
	activate
	tell application "Finder" --remove this tell statement if you don't want all other open finder windows to close automatically
		repeat while window 1 exists
			close window 1
		end repeat
	end tell
	
	set this_window to make new Finder window
	set the target of this_window to the a
	set the bounds of this_window to {100, 50, (monitor_width div 2), (monitor_height div 1)} --edit these setting to change the size of finder window 1
	set the current view of this_window to column view --change if you don't want column view
	
	set this_window to make new Finder window
	set the target of this_window to the b
	set the bounds of this_window to {850, 50, (monitor_width div 1.03), (monitor_height div 1)} --edit these setting to change the size of finder window 2
	set the current view of this_window to column view --change if you don't want column view
end tell

You can download the script here.

Then set a custom trigger in Quicksilver (I use: control + option + f) so you can get to your neatly organized Finder windows in seconds.

Can we recover your failed hard drive, SSD, flash drive, or RAID?

Click below to submit our Chances Form and you'll hear back from a data recovery technician in minutes!

Submit Our Chances Form

300dollardatarecovery.com has a Shopper Approved rating of 4.9/5 based on 1140 ratings and reviews
DMCA.com Protection Status