Go Back   The macosxhints Forums > Working with OS X > OS X Developer



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-17-2008, 01:55 PM   #1
LukeScott
Prospect
 
Join Date: Feb 2007
Posts: 12
Add new or change green button?

Hello,

Does anyone know if there is a way to add a fourth color button to every window on Mac OS X (red=close,yellow=minimize,green=zoom).

I wrote an AppleScript to Maximize the current window and tied it to a hot key with FastScript Lite:

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

tell application "System Events" to tell process app_name
	tell front window
		set position to {0, 0}
		set size to {1280, 1024}
	end tell
	
	try
		click menu item "Zoom To Fit" of menu 1 of menu bar item "View" of menu bar 1
	end try
end tell
I have it tied to a hot key, but it would be better if it were a button... I'd like to either override the zoom button with my AppleScript (which I'd add to), or simply add a new button with a different color to the current AppleScript and use the Zoom button to un-maximize a window (which it does well).

I understand that if it is possible, it's probably not something very easy to do... But I'm wondering if it even is possible.

I'm currently using Leopard.
LukeScott is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.