On 4/3/03 10:29 AM, "Allen Watson" <[EMAIL PROTECTED]> wrote:
> If you have your cursor located in an editable window, this script will
> insert the URL of the front window in Safari into the Entourage window.
>
> tell application "Safari"
> set theURl to URL of document 1
> end tell
> tell application "Microsoft Entourage" to set the selection to theURl
I modfied Allen's script and combined it with the one I was using for
Explorer:
(*
tell application "Internet Explorer"
set theURL to item 1 of (GetWindowInfo -1)
set theWindowTitle to item 2 of (GetWindowInfo -1)
end tell
*)
tell application "Safari"
set theURL to URL of document 1
set theWindowTitle to name of window 1
end tell
tell application "Microsoft Entourage"
activate
set theContent to return & return & "<" & theURL & ">" & return
set theSignature to signature "my signature"
make new draft window with properties {content:theContent,
subject:theWindowTitle, signature type:other, other signature
choice:theSignature}
end tell
To use Explorer, uncomment the first tell block and comment out (or delete)
the second one. I have this script installed as a compiled applet, and I
trigger it with a hot key (I use MaxMenus to bind hot keys). When I am
browsing the web and I want to send someone a link to the current page, I
hit the hot key, and the script opens a new message window in Entourage.
The subject line of the new message is filled in with the web page title,
and the message body is filled in with a couple of blank lines and the URL.
Putting the "<" and ">" brackets around the URL allows it to be clickable,
even if the URL runs longer than one line.
--
Julian Vrieslander <[EMAIL PROTECTED]>
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>