Skip to content

Instantly share code, notes, and snippets.

@RobertLowe
Last active April 6, 2018 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertLowe/3fda35ef4825ed1216c3446464385ba9 to your computer and use it in GitHub Desktop.
Save RobertLowe/3fda35ef4825ed1216c3446464385ba9 to your computer and use it in GitHub Desktop.
forceFinderBoundsAndPosition.scpt

Force Finder Bounds and Position - Stay boy stay!

Create files below and and load:

launchctl load ~/Library/LaunchAgents/com.you.forceFinder.plist

Enjoy Finder windows with a static position and size! Adjust to your personal preferences.

Stay in place finder

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.you.forceFinder</string>
<key>ProgramArguments</key>
<array>
<string>/Users/you/workspace/forceFinderBoundsAndPosition.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>1</integer>
<key>ThrottleInterval</key>
<integer>1</integer>
</dict>
</plist>
tell application "Finder"
set the bounds of every Finder window to {0, 426, 1440, 896}
set the position of every Finder window to {0, 426}
end tell
#!/bin/bash
# update window positioning every 2s (rate limit in .sh rather than plist, meh)
while [ 1 ]
do
osascript ~/workspace/forceFinderBoundsAndPosition.scpt
sleep 2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment