• 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: Where do the errors go?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where do the errors go?


  • Subject: Re: Where do the errors go?
  • From: Gil Dawson <email@hidden>
  • Date: Thu, 10 May 2018 11:10:29 -0700

Hi, Axel--

Thanks for your suggestion...

> If you open Console.app, ensure to display debugging messages

...but I cannot figure out how to tell Console to display debugging messages.
Using the filter "applet", I scanned down some of the logs listed in the left
windowpane.  I found a few entries that contained "applet", but none had the
text of the diagnostic messages.

Can you perhaps explain how to set up Console for this?

--Gil

> On May 4, 2018, at 3:19 PM, Axel Luttgens <email@hidden> wrote:
>
>
>> Le 4 mai 2018 à 02:45, Gil Dawson a écrit :
>>
>> While running a stayopen application produced by Script Editor, such as the
>> one below, where can I view any execution-time errors or "log" outputs?
>>
>> --Gil
>>
>> This works well enough so long as no execution-time errors show up:
>>
>> […]
>
> Hello Gil,
>
> Please find hereafter a slightly modified version of your script:
>
> - perhaps a bit more "academic"
> - with a 1/0 statement intended to raise a runtime error
>
> on run
>       logsome("Starting." & return)
> end run
>
> on idle
>       logsome("Doing... " & time string of (current date) & return)
>       1 / 0
>       return 20
> end idle
>
> on quit
>       logsome("Ending." & return)
>       continue quit
> end quit
>
> on logsome(aString)
>       set TestLog to (((path to desktop) as text) & "TestLog.txt")
>       try
>               close access file TestLog
>       end try
>       open for access file TestLog with write permission
>       write aString as text to file TestLog starting at (1 + (get eof of file
> TestLog))
>       close access file TestLog
> end logsome
>
> If you open Console.app, ensure to display debugging messages, and filter on
> "applet" for convenience, you’ll see messages containing:
>       Can’t divide %1 by zero.
> while running the stay-open applet.
>
> HTH,
> Axel
>
> _______________________________________________
> 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

 _______________________________________________
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: Where do the errors go?
      • From: Christopher Stone <email@hidden>
    • Re: Where do the errors go?
      • From: Christopher Stone <email@hidden>
References: 
 >Why won't this quit? (From: Gil Dawson <email@hidden>)
 >Re: Why won't this quit? (From: Steve Mills <email@hidden>)
 >Where do the errors go? (From: Gil Dawson <email@hidden>)
 >Re: Where do the errors go? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Compare two AppleScripts
  • Next by Date: Re: Where do the errors go?
  • Previous by thread: Re: Where do the errors go?
  • Next by thread: Re: Where do the errors go?
  • Index(es):
    • Date
    • Thread