• 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
Re: Stay Popup script doesn't work on this Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stay Popup script doesn't work on this Mac


  • Subject: Re: Stay Popup script doesn't work on this Mac
  • From: Nigel Garvey <email@hidden>
  • Date: Fri, 18 Apr 2003 02:10:41 +0100

Pat Cannon wrote on Thu, 17 Apr 2003 12:05:37 -0500:

>Thanks for testing it, Nigel. The fact that it failed for
>'absolutely no reason' even after I updated to 9.2.2 finally jogged
>my brain into remembering that from Scripter, you need to save as
>"Library-compatible script" and not just the default "compiled
>script". Duh.

Good job you remembered. I'd never have guessed that. ;-)

>So now, is there any way to script the position of the tabs at bottom
>of the screen?

The bad news is: not as such. They simply align themselves from left to
right, starting at the bottom left corner of the screen, as they're
converted to popups. In theory, it's possible to start with a temporary
popup window whose name, rendered in your preferred system font, makes
the tab wide enough that the other tabs line up from the desired
position. I don't know if anyone's found the effort worthwhile.

The slightly better news is that it's possible to grow to love
left-aligned tabs. I have mine sorted alphabetically and keep their
folders in a special folder on my hard disk. When I need to perform
cosmetic work on the tab line-up, I have a script which looks like this:

tell application "Finder"
activate

-- Start by turning all popup windows into ordinary container windows
try
tell every container window to set popup to false
on error -- shortage of container windows
end try
-- Open all the would-be popup windows in reversed alphabetical order
open reverse of (sort {alias files, folders} of folder "Launch
windows" of startup disk by name)
-- Convert the just-opened windows (only) to alphabetically ordered
popups
tell (container windows 1 thru (count result))
set {zoomed, popup, pulled open} to {true, true, false}
end tell
end tell

The terrible news is that popup windows aren't implemented in X. :-(

NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: BUG: AppleScript compilation problems
  • Next by Date: Re: Log progress to AS from "do shell script"
  • Previous by thread: Re: BUG: AppleScript compilation problems
  • Next by thread: BUG: Mail.app bugs
  • Index(es):
    • Date
    • Thread