• 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
Quit application: The whole problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quit application: The whole problem


  • Subject: Quit application: The whole problem
  • From: email@hidden
  • Date: Thu, 15 Nov 2001 23:59:32 +0100

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




John Erik

----------------------------------------------------------------------------------------------------------------------

John Erik Johnsen, seniorkonsulent/prosjektleder, 98 22 76 89, 71 19 19 10



Bill White
<email@hidden> To: =AppleScript Mailing List
Sent by: <email@hidden>
applescript-users-admin@lists cc:
.apple.com Subject: Re: Quit application


15.11.2001 23:23






> This does not work
>
> set v_appl to "Simple text"
> tell application "Finder"
> quit v_appl
> end tell
>
> Can anybody tell me why and what I'm doing wrong.

You don't need to involve the Finder at all here. Try this:

set v_apl to "Simple Text"
tell application v_apl to quit

Hope that helps.

Bill
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Quit application: The whole problem
      • From: Matthew Smith <email@hidden>
    • Re: Quit application: The whole problem
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Idle handling questions
  • Next by Date: Re: weird clipboard behaviour
  • Previous by thread: FMP custom menu via AppleScript still not resolved...
  • Next by thread: Re: Quit application: The whole problem
  • Index(es):
    • Date
    • Thread