• 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: don't understand how to use timeout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: don't understand how to use timeout


  • Subject: Re: don't understand how to use timeout
  • From: Robert Poland <email@hidden>
  • Date: Thu, 15 Sep 2005 07:10:08 -0600

On Sep 14, 2005, at 5:49 PM, Robert Poland wrote:

I have a script that process multiple files. If one of the files (text) is formatted wrong it will cause an error.

try
    set message to x & (return) & (return) & "Of file: " & currentFileName
    display dialog message buttons {"OK"} default button 1 with icon stop
    return -- quit program
on error
    log message
end try

The question is; Where do I view the log?

Well, first of all, you have to write the error routine properly:

try
    set message to x & (return) & (return) & "Of file: " & currentFileName
    display dialog message buttons {"OK"} default button 1 with icon stop
    return -- quit program
on error message
    log message
end try

You can then read the log in the Log pane of the script window or in the Event Log History window.

-- Michelle

Thanks Michelle,

I normally run this script as an application. So, "the log in the Log pane of the script window or in the Event Log History window" being part of the "Script Editor" don't normally come into play.

I loaded the script into the "Script Editor" and tried it there. Didn't get any meaningful results.

Guess I understand even less than I thought.
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >don't understand how to use timeout (From: Robert Poland <email@hidden>)
 >Re: don't understand how to use timeout (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How to deal with Asynchronous Finder operations
  • Next by Date: Mount volume without a timeout box
  • Previous by thread: Re: don't understand how to use timeout
  • Next by thread: Re: don't understand how to use timeout
  • Index(es):
    • Date
    • Thread