• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
De-lurk and Pop-up windows question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

De-lurk and Pop-up windows question


  • Subject: De-lurk and Pop-up windows question
  • From: Tim Clark <email@hidden>
  • Date: Sun, 25 Feb 2001 12:37:48 -0500

Hey all.

Been lurking for a week or so, and am a relative newbie scripter, at least
with AppleScript- I have a bit of PERL hanging out in the background, but
not too much.

Anyhow, the question I have is this- I'm trying to create a script to run at
start up that will create a number of pop-up windows. So far so good, The
catch is that I want them centered on the bottom of the screen, and I can't
seem to set the position of them in any way.

Here's the first code snippet, which positions this item in the lower left
corner of the desktop:

tell application "Finder"
activate
select file "Tim's Applications"
open selection
set position of container window of folder "Applications" of startup
disk to {446, 425}
set popup of window "Tim's Applications" to true
end tell

I also attempted to to position the window directly, in hopes that it would
transform, as with a mouse drag, into a popup as in
set position of container window of folder "Applications"
of startup disk to {394, 960}

Everything else that I've tried either results in errors, usually of the
"Wrong kind of window" variety.
It's starting to look to me as if the pop-up is limited strictly to a
Boolean T/F, and that a pop-up window just goes as far left as it can with
out hitting something, after which it becomes inaccessible to AppleScript.

Anyone got any suggestions?

TIA,

Tim


  • Prev by Date: Re: WWCD has done in MW Tokyo!
  • Next by Date: Do we want "Smilets" (was Re: Facespan versus Smile)
  • Previous by thread: Re: 2^1024
  • Next by thread: Re:De-lurk and Pop-up windows question
  • Index(es):
    • Date
    • Thread