Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Apps and Games (http://www.mac-forums.com/forums/os-x-apps-games/)
-   -   Resize windows to specific size using Automator or Applescript? (http://www.mac-forums.com/forums/os-x-apps-games/266379-resize-windows-specific-size-using-automator-applescript.html)

DaGrandMastah 02-11-2012 08:15 PM

Resize windows to specific size using Automator or Applescript?
 
Ok, so I made the switch from the magic mouse (which I loved) to the trackpad (which I REALLY love). BetterTouchTool has made the trackpad unbelievably, amazingly useful. One thing though that I can't get right is the "return window to original size" function.

Basically, I have a 3 finger swipe up to maximize the window and 3 fingers down is supposed to bring it back to the original size. Problem is I switch through windows a lot so I think once you leave that page it forgets the original size.

To make a long story short, is there a way to set Automator or Applescript to resize windows to a specific size? I could replace the 3 finger swipe with the applescript and I'd be golden. I'm looking to do this universally, if possible....but otherwise the main programs I need it for are safari, finder and iTunes.

DaGrandMastah 02-11-2012 08:57 PM

As a follow up, I found an applescript that works (thanks goes to the below link). I had to mess around a little with the size but

I figured I'd post it here in case anyone is interested in using it.

iThug Applescript: Moving and Resizing Windows

Instead of using the author's suggestion though I went with one of the replies because it basically allows for only the foremost window to be resized...as opposed to a specific application.

tell application "System Events"
set frontmostApplication to name of the first process whose frontmost is true
end tell

tell application frontmostApplication
set bounds of the first window to {120, 40, 1110, 750}
end tell

IvanLasston 02-11-2012 11:06 PM

There is also better snap tool - made by the same guy that does better touch tool - $1.99 in the app store - helps support better touch tool. It allows snapping, move/resize with modifer-keys, and actions added to the buttons/titlebar - including restore old size. (May not help if you are having trouble with BTT forgetting size - but it is in there)

If the Apple script is working - great - just trying to get some support for Better Touch Tool as it is a great program, and better snap tool is a bargin at $1.99.
http://itunes.apple.com/us/app/bette...17375580?mt=12

DaGrandMastah 02-13-2012 11:51 AM

Quote:

Originally Posted by IvanLasston (Post 1368613)
There is also better snap tool - made by the same guy that does better touch tool - $1.99 in the app store - helps support better touch tool. It allows snapping, move/resize with modifer-keys, and actions added to the buttons/titlebar - including restore old size. (May not help if you are having trouble with BTT forgetting size - but it is in there)

If the Apple script is working - great - just trying to get some support for Better Touch Tool as it is a great program, and better snap tool is a bargin at $1.99.
Mac App Store - BetterSnapTool

Thanks. I actually bought that off the app store when I first bought my mac a couple of months back but I couldn't figure out what the difference is between Better Touch Tool and Better Snap Tool (i have both). I only run Better Touch Tool since it does all the stuff that Better Snap Tool does.

It is an amazingly awesome program though. The way I've been able to customize the trackpad has made a world of difference.


All times are GMT -4. The time now is 01:50 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.