Re: Maximizing and Minimizing and getting focus..
Re: Maximizing and Minimizing and getting focus..
- Subject: Re: Maximizing and Minimizing and getting focus..
- From: Axel Luttgens <email@hidden>
- Date: Wed, 20 Feb 2008 11:36:09 +0100
Le 20 févr. 08 à 11:06, Tim Piper a écrit :
I am able to get my script to minimize a window, in this example
Safari3
tell application "Safari3"
set the miniaturized of window 1 to true
end tell
But I can't see a way to maximise it back again?
Hello Tim,
Not sure if this is what you meant, but perhpaps could this be of some
help:
tell application "Safari"
-- Get a reference to the frontmost window: once
-- miniaturized, it may not be the frontmost one anymore...
set W to window 1
set miniaturized of W to true
delay 1
set miniaturized of W to false
end tell
Also, my Applescript has a few dialogue boxes... but on occasion all
that happens is the script bounces in the dock and the dialogue is
hidden.
How can I make sure that the running AS has front most focus when I
need it.
Is there only 'activate <SCRIPTNAME.APP>
IIRC, this could do the trick:
tell me
activate
display dialog "its me!"
end tell
HTH,
Axel _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden