• 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: Michelle Steiner <email@hidden>
  • Date: Wed, 14 Sep 2005 21:26:38 -0700


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

--
Homosexuals do not recruit; Christians recruit, and so does the military.


_______________________________________________
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


  • Follow-Ups:
    • Re: don't understand how to use timeout
      • From: Robert Poland <email@hidden>
References: 
 >don't understand how to use timeout (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Scripting Image Events - some kind of bug ?
  • Next by Date: RE: Converting Mac Roman and/or UTF 16 to UTF 8?
  • Previous by thread: don't understand how to use timeout
  • Next by thread: Re: don't understand how to use timeout
  • Index(es):
    • Date
    • Thread