• 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
How to make an app quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to make an app quit


  • Subject: How to make an app quit
  • From: Gil Dawson via AppleScript-Users <email@hidden>
  • Date: Wed, 21 Oct 2020 15:39:29 -0700

Hi--

I made an app to check some stuff.  Once it was working, I made a few changes
so that it would run every minute, then saved it as an app.

It works fine, EXCEPT that it won't quit when I tell it to Quit.  (But Force
Quit works.)

Below is a skeleton of my code.  Is this enough to figure out what I'm missing?

--Gil


property Done : false

repeat until Done
        try

                # tell...
                # if (X) then error...

                # The "--" lines allow me to ⌘R this script for testing.

                --              return

                delay 60 -- not used when testing

        on error errm number errn
                --      log "Error: " & errm & " (" & errn & ")"
                --      return
        end try
end repeat

on quit
        set Done to true
        continue quit
end quit


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to make an app quit
      • From: Andrew Oliver via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Position Dialog Display on Screen?
  • Next by Date: Re: How to make an app quit
  • Previous by thread: [ANN] Uni Detector v1.0 released on Mac App Store
  • Next by thread: Re: How to make an app quit
  • Index(es):
    • Date
    • Thread