• 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: Thanks for the follow up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thanks for the follow up


  • Subject: Re: Thanks for the follow up
  • From: Nigel Garvey <email@hidden>
  • Date: Wed, 21 Nov 2001 11:00:51 +0000

Ron Bishop wrote on Tue, 20 Nov 2001 12:13:17 -0600:

>And this one makes popups of selections
>
>tell application "Finder"
> activate
> set theFolders to selection
> repeat with i in theFolders
> if i is folder then
> open container window of i
> set theWindow to container window of i
> set popup of theWindow to true
> end if
> end repeat
> try
> set pulled open of theWindow to false
> end try
>end tell
>
>Yea, it's sort of sloppy. But for a couple of minutes of work it gets the
>job done. Thanks to everyone for sharing.

It doesn't actually work with Mac OS 9.0.4, probably because of the 'if i
is folder' line. This is an economical way of doing the job:

tell application "Finder"
activate
tell container window of every folder of selection
open
set {popup, pulled open} to {true, false}
end tell
end tell

As you replied to Bill in a later message, it's only strictly necessary
to set the *last* window's 'pulled open' to false, as the others are made
false automatically with each new popup creation. However, the bulk
method's convenient here.

NG


  • Prev by Date: help with workflow-scripiting
  • Next by Date: Re: OS 9.1 or AppleScript problem?
  • Previous by thread: RE: Thanks for the follow up
  • Next by thread: RE: Thanks for the follow up
  • Index(es):
    • Date
    • Thread