In outlook I can hyperlink the file by dragging it into the new message and
then selecting hyperlink
e.g. \\fileserver\sharedrive\myfile.bmp
Is there a way to do this so entourage clients can easily create a working
hyperlink by dragging into entourage? I'd like to try and decrease the
mailbox sizes going forward.
Thanks
I did post a response to this message this morning, but it doesn't appear to
have reached the server for some reason.
I already have a script that will insert file URLs for a local network
stored file - running this script will allow you to select as file using a
standard 'open' dialog, and will insert a link to that file (or multiple
files) into the current draft message window.
Copy the script and paste it into Apple's Script Editor application. Save
the script as a compiled script & put it in the ŒEntourage Script Menu
Items¹ folder in your ŒMicrosoft User Data¹ folder. The script can be
manually run from the menu or (if you name the script "Insert File URL\cmF")
you can call it up by hitting Command-Control-F
-- Insert File URL v1.0 (13th March 2007)
-- an applescript by Barry Wainwright <mailto:
[email protected]>
-- Inserts the URL of a chosen file into an Entourage message
-- This script released under a Creative Commons Attribution, NonCommercial,
ShareAlike 2.0 England & Wales License.
-- see <
http://creativecommons.org/licenses/by-nc-sa/2.0/uk/> for full
details
set targetFiles to choose file with prompt "Select a file (or files) to link
to:" with multiple selections allowed without invisibles and showing package
contents
set targetFileList to {}
repeat with anItem in targetFiles
tell application "System Events" to copy "<" & URL of anItem & ">" to
end of targetFileList
end repeat
set {oldDelims, AppleScript's text item delimiters} to {AppleScript's text
item delimiters, {return}}
set targetFileText to targetFileList as text
set AppleScript's text item delimiters to oldDelims
tell application "Microsoft Entourage"
try
set windowClass to class of window 1
set editableWindow to windowClass is draft window or windowClass is
draft news window
on error
set editableWindow to false
end try
if editableWindow is false then
beep
display dialog "There is no message composition window open in
Entourage!" buttons {"End Script"} default button 1 with icon stop
return -98
end if
if selection is "" then
set the selection to targetFileText as text
else
set doWhat to button returned of (display dialog "Some text is
already selected, do you want to replace it?" buttons {"Replace", "Append",
" Cancel "} default button 1)
if doWhat is "Replace" then
set selection to targetFileText as text
else if doWhat is "Append" then
set selection to selection & " " & targetFileText as text
else
beep
return -97
end if
end if
end tell