Re: who am I talking to?
Re: who am I talking to?
- Subject: Re: who am I talking to?
- From: JJ <email@hidden>
- Date: Sat, 20 Oct 2001 11:29:10 +0200
>
Here is script bit:
>
----------
>
open thePath & elementString & "" as alias
>
set windowID to the result
>
set stringThing to text of windowID
>
RECompare stringThing pattern "\\\\\\\\"
>
if the result is true then
>
activate
>
display dialog "This element failed the final test."
>
return
>
else
>
--display dialog (stringThing & result) -- error check line
>
end if
>
close (windowID) without saving
>
>
----------
>
Who recieves "open" & "close"? And why?
My AppleEvent Log says:
tell current application
open alias "HD:Desktop Folder:Paro" (a text file in my test)
end tell
The result can be:
--> script document id 1039
or
null
The script itself must be sending the core event 'aevtodoc' to the running
app (tested in Smile, Script Editor & more).
Why they accept the event? I don't know.
Who are you talking to? Smile, sure.
JJ