Re: App Launch Order
Re: App Launch Order
- Subject: Re: App Launch Order
- From: Andrew Wylie <email@hidden>
- Date: Sun, 11 Feb 2001 15:37:39 +1300
>
on 1/28/01 11:57 AM, Matthew Fischer at email@hidden wrote:
>
>
> How would I go about using Applescript to get a list of my currently running
>
> applications in the order they were launched?
----------------------------------------------------------------------------
--all processes in launch order
tell application "Finder"
set x to every process
end tell
choose from list x
----------------------------------------------------------------------------
--without background
tell application "Finder"
set x to name of application file of every process
end tell
choose from list x
----------------------------------------------------------------------------
--quit them
set y to reverse of x
repeat with i in y
try
tell application i to quit
on error
exit repeat
end try
end repeat
_____________________________ Andy