"Accepts high-level events" bust in Finder?
"Accepts high-level events" bust in Finder?
- Subject: "Accepts high-level events" bust in Finder?
- From: Charles Arthur <email@hidden>
- Date: Thu, 27 Sep 2001 14:01:06 +0100
While trying to automate something to dismount a disk by quitting apps but
leaving others alone... I wanted to find apps which might have documents
open from the disk.
Some of those apps might be hidden, with open documents from the disk.
There are also FBAs like Instant Palm Desktop, which wouldn't. Gotta close
the docs before dismounting the disk.
So I thought that I could compile a list of processes which might have
documents by
--(tested)
tell application "Finder"
set thelist to processes whose accepts high level events is true
end tell
thelist
--> {process "Control Strip Extension" of application "Finder", process
"DVD AutoLauncher" of application "Finder", process "Folder Actions" of
application "Finder".....
etc. Which deffo are not the sort of apps that I would have thought accept
high level events, viz
"accepts high level events boolean [r/o] -- Is the process high-level
event aware (accepts open application, open document, print document, and
quit)?"
(Finder 9.04).
Nor does
set thelist to application processes
--> {process "Control Strip Extension" of application "Finder", process
"DVD AutoLauncher" of application "Finder", process "Folder Actions" of
application "Finder", yada yada yada.
(noting dictionary deffo: "Class application process: A process launched
from an application file")
Err, Instant Palm Desktop launched from an app file? Folder Actions? I
think not.
I did find a way to do it involving making a list of running processes,
activating each in turn, seeing if they were then visible (and adding those
to a list) and then dealing with the sublist of apps which become visible
when you activate them... but it feels inelegant. And very slow, given that
it involves a lot of Finder-ing.
Am I missing something? Or is it the Finder?
Charles
----------------------------
http://www.ukclimbing.com : 1000+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. Plus Britain's busiest climbing discussion boards. And there's
even a cool shop attached.