Applications running..
Applications running..
- Subject: Applications running..
- From: Martha Espinosa <email@hidden>
- Date: Tue, 14 Sep 2004 14:40:25 -0600
Title: Applications running..
Hi All,
Thank you all for your help. I got the applescript to work
to find what applications are running.. Now my dilemma is when I put
my code into my AS Application I get an error "Finder got
an error: Connection is invalid. (-609) when trying to quit the
application running..
Any help is appreciated...
here is my code...
tell application "System
Events" to set RunningApps to the name of
every process whose visible is true
set UserList to {}
repeat with CurrentApp from 1 to (the
count of text items in RunningApps)
if (text
item CurrentApp of RunningApps is not equal to
"Finder") and (text item CurrentApp of
RunningApps is not equal to "Script Editor")
then
set end of UserList to (text item CurrentApp
of RunningApps)
end if
end repeat
set appCount to count of UserList
if appCount 1 then
choose from
list UserList with prompt "Quit Application..." default
items UserList OK button name "Please Quit" cancel button
name "Cancel" with multiple selections
allowed
set AppsToQuit to the result of list
repeat with x from 1 to (the
count of AppsToQuit)
tell application (item x of AppsToQuit)
to quit
end repeat
--else if appCount = 0 then
-- display
dialog "No apps Running..."
end if
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden