• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: who am I talking to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Select item# from the Special Menu
  • Next by Date: Re: [hork] was: Converting an applescript from 68k app to PPC
  • Previous by thread: who am I talking to?
  • Next by thread: Deselecting items of the desktop
  • Index(es):
    • Date
    • Thread