Re: Quit application: The whole problem
Re: Quit application: The whole problem
- Subject: Re: Quit application: The whole problem
- From: Matthew Smith <email@hidden>
- Date: Fri, 16 Nov 2001 11:45:31 +1100
on 16/11/01 09:59, email@hidden at email@hidden
wrote:
>
I am making a script who shall look inside a folder where there are
>
alias-files of applications. This files has exactly the same name as the
>
application.
>
>
I will make a script who quit these programs. The script I have made only
>
quits Finder, and that is not what I want.
>
>
This is the script:
>
>
set v_folder_p to (path to desktop as string) & "Oppstart:"
>
tell application "Finder"
>
set v_filer to name of every file in folder v_folder_p
>
repeat with v_fil in v_filer
>
tell application v_fil to quit
>
delay 30
>
end repeat
>
end tell
Telling an application to quit will launch the application if it is not
already running. What are you actually wanting to do? Are you wanting to
quit certain applications if they are running, or quit every application
that is running.
In either way, you will need to find out for the Finder the list of
application processes. These are the applications that are running. You can
then tell them to quit.
--
Matthew Smith