iChat - Auto Accept error -1708

Hey All

I’m trying to setup this auto accept script for iChat to auto accept files from a specific buddy. But what once worked now gives an error -1708

Script


using terms from application "iChat"
	
	on received text invitation theText from theBuddy for theChat
		accept theChat
	end received text invitation
	
	on received audio invitation theText from theBuddy for theChat
		if (screen sharing of theChat is none) then
			accept theChat
		end if
	end received audio invitation
	
	on received video invitation theText from theBuddy for theChat
		if (screen sharing of theChat is none) then
			accept theChat
		end if
	end received video invitation
	
	on received file transfer invitation theFileTransfer
		accept theFileTransfer
	end received file transfer invitation
	
end using terms from


Issue:
script gives -1708 error

setup: drop script in library > scripts > ichat

  1. select a buddy
  2. command I
  3. alerts > Invitation to Share My screen
  4. run applescript > name of script above

Any help would be appreciated.

any help or insight on this?

I did a search and from what I can see error -1708 (Event wasn’t handled by an Apple event handler) has something to do with the script not having the handler expected.

http://www.google.com/search?q=-1708%20error#hl=en&sclient=psy-ab&q="-1708"+applescript&oq="-1708"+applescript&aq=f&aqi=g-vC2&aql=&gs_l=serp.3..0i15i33l2.1541l6851l3l7737l13l13l0l0l0l0l143l991l11j2l13l0.frgbld.&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=7f32bd4e8fd43d69&biw=1155&bih=679 (Top link is simple enough to understand)

Unless you’re sending multiple files and it balks on a list of transfers (should give a different error), what I’d guess happened is either:

¢ The handler has changed (I’m using OS 10.6, check the applescript dictionary’s event handlers.)
¢ The iChat application has a bug.

Hopefully someone can come along and point out a fix off the back of this.