Hello
I retrieved an events log returned under Mavericks.
The script was :
tell application "Mail"
activate
display dialog "x"
end tell
tell application "Safari"
activate
display dialog "x"
end tell
tell application "TextEdit"
activate
display dialog "x"
end tell
The event log was :
tell application "Mail"
activate
display dialog "x"
--> error number -1708
«event ascrgdut»
--> error number -1708
display dialog "x"
--> {button returned:"OK"}
end tell
tell application "Safari"
activate
display dialog "x"
--> error number -1708
«event ascrgdut»
--> error number -1708
display dialog "x"
--> {button returned:"OK"}
end tell
tell application "TextEdit"
activate
display dialog "x"
--> error number -1708
«event ascrgdut»
--> error number -1708
display dialog "x"
--> {button returned:"OK"}
end tell
When I ran the same script under Yosemite (10.10.1) the events log was :
tell application "Mail"
activate
display dialog "x"
«event ascrgdut»
display dialog "x"
end tell
tell application "Safari"
activate
display dialog "x"
end tell
tell application "TextEdit"
activate
display dialog "x"
«event ascrgdut»
display dialog "x"
end tell
As I already wrote, in Yosemite the non fatal error number -1708 doesn’t strike (or at least, it’s not reported).
I am really puzzled by the «event ascrgdut»
OK, it’s supposed to reload the osax Standard Additions when display dialog is called in the tell application “Mail” block.
OK, I may imagine that the osax is already loaded when the script calls display dialog in the tell application “Safari” block.
But, why is it asked to reload when display dialog is called in the tell application Textedit block ?
For my poor brain, it’s really puzzling because when I ran the same script five minutes later, the events log was :
tell application "Mail"
activate
display dialog "x"
end tell
tell application "Safari"
activate
display dialog "x"
end tell
tell application "TextEdit"
activate
display dialog "x"
end tell
which make me think that the osax remained available in memory after the reload issued in the tell application TextEdit block and let a question without a response : why was it necessary to reload it the first time I ran the script ?
I know that some of you will think that I am mistreating the flies but I am curious and I like to understand what apply when I use a tool.
Yvan KOENIG (VALLAURIS, France) vendredi 5 décembre 2014 14:47:03