Manage attachment in Entourage
Manage attachment in Entourage
- Subject: Manage attachment in Entourage
- From: Martirosian Dmitri <email@hidden>
- Date: Fri, 13 Apr 2007 10:13:08 +0400
- Thread-topic: Manage attachment in Entourage
Hi all!
I'v got problem, I find a script and modify little it for myself. The script
does: U drop the files on droplet, script attach files to mail, get the
names of attachments and put in content but, I cannot remove attachment an
end of script, I dont need to send files via email, because the files are
realy big. I just need put the files in ftp, get names of files, add a ftp
url and send report to my chief
So far it works so:
on open the_files
tell application "Microsoft Entourage"
activate
set MyMessage to make new draft window with properties
{recipient:"email@hidden", subject:blabla, content:"The
files:", attachment:the_files}
tell window 1
try
set Ftp to "ftp://xxxxxxxx:xxxxxxxx.mccann.ru/"
set theNames to name of every attachment
on error
return -99 -- silent exit
end try
if (count theNames) > 1 then
set messageText to return & ""
repeat with aName in theNames
set messageText to messageText & return & tab & Ftp &
aName
end repeat
set messageText to messageText & return & return
else if (count theNames) = 1 then
set messageText to return & Ftp & theNames & return & return
end if
set selection to messageText
end tell
send MyMessage
end tell
end open
Pls help!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden