• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quit application: The whole problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Quit application: The whole problem (From: email@hidden)

  • Prev by Date: Re: Quit application: The whole problem
  • Next by Date: Re: Quit application
  • Previous by thread: Re: Quit application: The whole problem
  • Next by thread: re: counting lines of a file
  • Index(es):
    • Date
    • Thread