On 16/02/2014, at 05:37, Deivy Petrescu < email@hidden> wrote: On Feb 15, 2014, at 16:38 , Nigel Garvey <email@hidden> wrote:
I wrote on Sat, 15 Feb 2014 15:50:51 +0000:
Yvan Koenig wrote on Sat, 15 Feb 2014 10:19:51 +0100:
I got this log report
tell application "TextWrangler" activate display dialog "com.barebones.textwrangler" giving up after 5 --> error number -1708 «event ascrgdut» --> error number -1708 display dialog "com.barebones.textwrangler" giving up after 5 Résultat : error "Erreur dans TextWrangler : Délai dépassé pour un AppleEvent." number -1712
What's causing that «event ascrgdut»? I don't get it myself when I run the script and it doesn't compile to a keyword on either of my machines. But it does cause error number -1708 when run.
error "TextWrangler got an error: Can’t continue «event ascrgdut»." number -1708
I've Googled the term since posting this and found that «event ascrgdut» is used to make AppleScript update its knowledge of the installed scripting additions. It usually generates an error, so in a script, one would normally put it in a 'try' statement. Presumably, on Yvan's system, 'display dialog' is not being understood (error number -1708) and «event ascrgdut» is then being generated to update the scripting addition inventory (same error). But that only explains the event log. It doesn't help with the origin of the problem. :\
NG
Hi Nigel, from what I understand you did not get the error -1708. I looked it up and got: "the AppleEvent was not handled by any handler”'
Which I believe happens when you send an standard addition command to an application. I tried a Portuguese system language and did not
So why is the mysterious -1708 creeping in certain systems?
Deivy Petrescu
More and more puzzling.
I booted in English and the error -1708 is striking as it does in French.
set p2d to path to desktop tell application "Finder" properties of p2d end tell
tell application "Safari" (get id) display dialog result giving up after 5 say "passed" end tell
gave this Events Log:
tell current application path to desktop --> alias "Macintosh HD:Users:yvankoenig:Desktop:" end tell tell application "Finder" get properties of alias "Macintosh HD:Users:yvankoenig:Desktop:" --> { class: folder, name:"Desktop", index:18, displayed name:"Desktop", name extension:"", extension hidden: false, container: folder "yvankoenig" of folder "Users" of startup disk, disk: startup disk, position:{76, 79}, desktop position: missing value, bounds:{44, 47, 108, 111}, kind:"Folder", label index:0, locked: false, description: missing value, comment:"", size:2.02792010691E+11, physical size:2.02841219072E+11, creation date: date "Wednesday 27 July 2011 10:54:05", modification date: date "Saturday 15 February 2014 22:10:01", icon: missing value, URL:" file:///Users/yvankoenig/Desktop/", owner:"yvankoenig", group:"(unknown)", owner privileges: read write, group privileges: none, everyones privileges: read write, container window: container window of folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk} end tell tell application "Safari" display dialog "com.apple.Safari" giving up after 5 --> error number -1708 «event ascrgdut» --> error number -1708 display dialog "com.apple.Safari" giving up after 5 --> {button returned:"", gave up:true} say "passed" --> error number -10004 end tell tell current application say "passed" end tell
I added instructions to show that the system is really running in English. This text brought to the surface an other difference. When I paste a piece of code or an events log in Mail running French, I get spurious, annoying tabs pushing the area in which I may type to the right. When the system is used in English as it is for this message, the extraneous tabs aren't here. One more report to file.
Yvan KOENIG (VALLAURIS, France) Sunday 16 February 2014 11:13:24
|