Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to activate window from Dock?



> 
> Message: 1
> Date: Mon, 19 May 2008 21:08:22 +1000
> From: Brian Christmas <email@hidden>
> Subject: Re: How to activate window from Dock?
> To: applescript-studio-request <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
> 
> 
> On 12/05/2008, at 1:15 PM, Brian Christmas wrote:
> 
>> G'day.
>> 
>> I've built my Studio App, but a minor point is niggling me.
>> 
>> If I close the App window, then, before clicking anywhere else,
>> click on the Dock icon, the window does not reopen.
>> 
>> If I click on the desktop, then the icon, up pops the window.
>> 
>> I've fiddled with settings but can't work out which is the right code.
>> 
>> Can anyone tell me please which is the correct procedure for this.
>> 
>> BTW thanks to Philip Buckley for your answer to my last question.
>> 
>> Regards
>> 
>> Santa
>> 
> 
> I've found my own answer, and just for posterity, it's to use the 'on
> open untltled' handler from the  Application list.
> 
> Regards
> 
> Santa
> 


So Brian, let me ask a dumb question -- why have a close widget on the
window to begin with?  It sounds like you want that window in front all the
time.  I wouldn't even let it be closable in the first place.  Close should
be a window-specific behavior that sticks.  Hiding (the app) may be what
you're really after.  I know I see a lot of Windows people going crazy
closing app windows one by one on the Mac when they want to get to the
desktop, but hiding the app (command-H) is the way to go.  It will always
come back in the state you left it when you click on the dock icon.  The
workaround of interpreting close to mean hide ends up getting kludgey when
you want windows back on the screen later on.

Craig

-- 
Dr. Craig Hunter
NASA Langley Research Center
Configuration Aerodynamics Branch
email@hidden
(757) 864-3020

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.