RE: Entourage -- getting/setting position of selection
RE: Entourage -- getting/setting position of selection
- Subject: RE: Entourage -- getting/setting position of selection
- From: "Chen Wang" <email@hidden>
- Date: Fri, 28 Apr 2006 18:18:22 -0400
- Thread-topic: Entourage -- getting/setting position of selection
Thanks for the quick reply. Now I'm able to find which window currently
owns the keyboard focus. I'm wondering why the syntax "front window" can
not be found in my Entourage's AppleScript dictionary. But it works
anyway.
Unfortunately, I still cannot get full solution to my problem, because
"position of front window" could not tell about the selected text, which
is the highlighted portion of body text. I can get the string selected
text by using "set myString to selection". But I also hope to find a way
to know where (the character offset) is the selected text located in the
body text. Any suggestion will be highly appreciated.
Thanks a lot!
Chen
>Try something like
>set your_variable to position of front window
>or try
>set bounds of front window to {top left, top right, bottom left, bottom
>right}
>Be sure to wrap these command inside
>tell application "Microsoft Entourage"
>activate
>put your command here
>end tell
Confidentiality Notice: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden