View unanswered posts | View active topics It is currently Wed Jun 19, 2013 2:10 pm



Reply to topic  [ 2 posts ] 
 AppleEvent not handled 
Author Message

Joined: Jul 15, 2007
Posts: 89
Post AppleEvent not handled
Matt, is there a way to automatically reload the script when that happens?


Sat Feb 02, 2008 3:26 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post Re: AppleEvent not handled
kidney wrote:Matt, is there a way to automatically reload the script when that happens?

Instead of reloading the script, you should catch the error to prevent the script from failing (throwing out of) when it occurs if that is what you need. You can modify the default (sample) script to not return (exit) out of the script for the AppleEvent not handled error by changing these lines:
Code: Select all
else if errNum is -1708 then
   log "AppleEvent not handled" using type "Error"
   return -- fatal error; exit script processing

to this:
Code: Select all
else if errNum is -1708 then
   log "AppleEvent not handled" using type "Error"

Regards,
Matt


Sat Feb 02, 2008 6:04 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.