• 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: 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


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

  • Prev by Date: Re: problem with applets in osx
  • Next by Date: Re: Quit application: The whole problem
  • Previous by thread: Quit application: The whole problem
  • Next by thread: Re: Quit application: The whole problem
  • Index(es):
    • Date
    • Thread