Hidden Revolution on Mac

Bruce Lewis lewisbruce at rogers.com
Wed Nov 22 06:38:56 EST 2006


On the Macintosh the user can hide all the windows of a program to avoid
clutter.

I have a Revolution palette that I want visible at all times. This is done
by setting the systemWindow to true. Works fine.

The palette has buttons to open stacks.

When Revolution is hidden, the buttons have no visible effect.

I want them to show the relevant stack.

The following in the button will show **all** open Revolution windows:

    put "tell application" && quote & "Revolution" & quote & return into
tApplescriptMsg
    put "activate" & return after tApplescriptMsg
    put "end tell" & return after tApplescriptMsg
    do tApplescriptMsg as applescript
   
But I can't figure out how to show just the one window whose button is clicked.

I tried:

    set the systemwindow of stack tbOpened to true
    set the systemwindow of stack tbOpened to false

But if Revolution is not hidden, the above creates two flashes, which are
unacceptable. If Revolution is hidden, the above sometimes creates one
flash, but always ends without the window visible.

Anyone know how to show just one window.

Thanks.

Bruce

-- 

This e-mail and any enclosures contain information from the law firm Lewis
& Collyer for the sole use of the intended recipient.  Its contents may
also be protected by privilege, and all rights to privilege are expressly
claimed and not waived.  Any review, distribution or use by others is
strictly prohibited.  If you have received this message in error, please
notify the sender and delete all copies.  Thank you.

Bruce Lewis
Lewis & Collyer
160 John Street, Suite 401
Toronto, Ontario
Canada  M5V 2E5
(416) 598-4357
FAX (416) 598-1067
bruce at lewiscoll.com
nancy at lewiscoll.com
sandy at lewiscoll.com
joan at lewiscoll.com
eva at lewiscoll.com


More information about the use-livecode mailing list