Re: Thanks for the follow up
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