Re: Newbies Question...
Re: Newbies Question...
- Subject: Re: Newbies Question...
- From: Nigel Garvey <email@hidden>
- Date: Fri, 22 Feb 2002 13:49:56 +0000
In my message of Friday, 22 February 2002 11:07:18, I wrote:
... with regard to opening a folder-load of folders and aliases to
folders, and turning the resulting windows into pop-ups ...
>
The following is a very simple and fast way of achieving what you want,
>
though I'm afraid it involves a few non-newbie concepts, such as the
>
Finder's ability to do things in bulk, setting by list, and 'telling'
>
something other than an application to do something.
>
>
tell application "Finder"
>
activate -- necessary for setting popups
>
close every window
>
open {alias files, folders} of folder "Tab Folders "
>
-- The only Finder windows now should be the ones just opened
>
tell every window to set {popup, pulled open} to {true, false}
>
end tell
Here's the deluxe version. It *doesn't* close all the Finder windows
(which you might not want to do). In fact, it doesn't close any of them
and is consequently a little faster - depending on how many windows are
open and how many of these you would have to have re-opened. Furthermore,
it arranges the pop-up tabs in alphabetical order. Personally, I'm
staggered that the 'open' line works:
tell application "Finder"
activate -- necessary for setting popups
set every container window's popup to false
open reverse of (sort {alias files, folders} of folder "Tab Folders
" by name)
tell (container windows 1 thru (count result)) to set {popup, pulled
open} to {true, false}
end tell
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.