Re: Entourage close main window
Re: Entourage close main window
- Subject: Re: Entourage close main window
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 16 Mar 2002 07:24:42 -0800
On 3/16/02 6:48 AM, "JollyRoger" <email@hidden> wrote:
>
> Try this for the second part:
>
>
>
> tell application pCallerName
>
> activate
>
> close <<property mnWn>>
>
> end tell
>
>
>
> Even though it compiles as <<class mnWn>>, there's evidently some difference
>
> "under the skin", because it works, whereas typing <<class mnWn>> doesn't.
>
> Maybe Jon Pugh knows how this works.
>
>
Is there any way to prevent this from happening so that I don't have to edit
>
this line each and every time I compile the script? Every time I compile he
>
script it changes back to class. What a pain!
The strangest part is that this still pertains even if you wrap the whole
thing in a 'using terms from from application "Microsoft Entourage"' block
in systems that support it, where you see it compile as 'main window'. Even
though it is compiled as 'main window', if you have typed <<class mnWn>> to
begin with it _still_ errors "Main window does not understand the close
message". You still need to have typed <<property mnWn>> first. However, if
you do the latter, maybe you won' have to edit the line every time you
recompile the script. I haven't tried that. Then when you're ready to go,
you can remove the 'using terms from' lines. In fact, I have this vague
recollection that 'using terms from' may even be back-compatible with
earlier systems from before it was invented. I think it may be safe to keep
it in there. If you have an earlier OS like 8.1 around, I _believe_ you'll
see that a script compiled with 'using terms from' in OS 9.x will display
raw codes but will work, not break. But I've never checked myself - it's
just something I think I may have read. It would be worth finding out.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.