Re: Quit application: The whole problem
Re: Quit application: The whole problem
- Subject: Re: Quit application: The whole problem
- From: Shane Stanley <email@hidden>
- Date: Fri, 16 Nov 2001 11:43:50 +1100
On 16/11/01 9:59 AM +1000, email@hidden,
email@hidden, wrote:
>
This is the whole problem:
>
>
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
Just change it so your quit line is not addressed to the Finder:
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
end tell
repeat with v_fil in v_filer
tell application v_fil to quit
delay 30
end repeat
--
Shane Stanley, email@hidden