Re: scripting pop-up windows?
Re: scripting pop-up windows?
- Subject: Re: scripting pop-up windows?
- From: Mr Tea <email@hidden>
- Date: Mon, 19 Nov 2001 09:46:52 +0000
This from Jim at Mac.com - dated 18/11/01 10.34 pm:
>
Is it possible to script the creation of "pop-up windows"
Sure is. Your window needs to be open, before you can pop it, and will
initially appear in its 'pulled open' state (as if you'd just clicked on the
popup tab), but you can also script it to collapse neatly down to the bottom
of the screen. The only thing you can't do (without a lot of messing about)
is set the position and sequence of the popup tabs.
The two lines below, when wrapped in a Finder "tell" block, will do what you
need - once you have defined the variable 'theWindow'
set popup of theWindow to true
set pulled open of theWindow to false
A useful trick is to have a folder action script that automatically 'pops'
the window of the folder it's attached to when that folder is opened...
HTH
Mr Tea
--