Re: how to make/move a new window underneath the other windows
Re: how to make/move a new window underneath the other windows
- Subject: Re: how to make/move a new window underneath the other windows
- From: Kim Holburn <email@hidden>
- Date: Thu, 18 Nov 2004 13:11:18 +1100
Hmmm, OK I tried setting the index of my window:
try
set c to count of the windows
set index of theWindow to count of the windows
display dialog "window count was : " & c & " idx of w : " & index of
theWindow
on error errText
display dialog "error was: " & errText
end try
The dialog says it's still 1 after being set to 6.
On 2004 Nov 18, , at 12:34 PM, Malcolm Fitzgerald wrote:
On 18/11/2004, at 11:17 AM, Kim Holburn wrote:
Hi,
I have a script that creates a window (it's a Mail.app rule script)
so it uses a command from the Mail.app library:
--------------------------------------------
set theWindow to make new message viewer with properties
{visible:true}
--------------------------------------------
Now the window appears at the top of all windows, which is I assume
the end of the list of (all or just Mail.app?) windows.
Well, its dictionary says "index integer -- The index of the window in
the back-to-front window ordering" though window 1 is at the front and
window 3 is at the back.
Another aspect of the problem is that the application class in the
standard suite has two elements; document and window. However, the
application class in the Mail suite has quite a few elements - neither
document nor window is among them. Mail's application class contains
an element called "Message viewer" and it has a window property. It's
described twice:
window window [r/o] -- The window for the viewer
window window -- The window for the message viewer
I tried setting the index of the window of the message viewer. That
succeeded, however the message viewer window is still visibly the
front most regardless of its index.
Malcolm Fitzgerald ph: 02 93180877
Database Manager fax: 02 93180530
The Australian Society of Authors www.asauthors.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Kim Holburn
IT Manager, Canberra Research Laboratory
National Information and Communication Technology Australia
Ph: +61 2 61258620 M: +61 417820641
Email: email@hidden - PGP Public Key on request
Cacert Root Cert: http://www.cacert.org/index.php?id=16 ->
http://www.cacert.org/cacert.crt
Aust. Spam Act: To stop receiving mail from me: reply and let me know.
Use ISO 8601 dates [YYYY-MM-DD]
http://www.saqqara.demon.co.uk/datefmt.htm
Democracy imposed from without is the severest form of tyranny.
-- Lloyd Biggle, Jr. Analog, Apr 1961
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden