On 12/10/04 12:38 AM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
>> Preferences/Security/Warn before allowing an external application to send
>> mail
>>
>> Turn that off. Also the one about address book. You're only getting the
>> error
>> while trying to run the script from Script Editor, or if you saved the script
>> as an application. Once you'd saved it as a script to the Entourage Script
>> Menu Items folder and run it from Entourage's script menu you wouldn't get
>> the
>> error. But if you're going to be using Script Editor or script applets much
>> you're going to want to turn those warnings off.
>
> Actually, I was running it from E-rage, I just tested again, and it will not
> work with the pref set to "checked". I am indeed running the script from
> the menu item, perhaps once I run it from a rule it will not make the error.
>
> I feel pretty safe with the pref off, but would like to know how come we
> find inconsistent behavior.
It was my mistake. I just believed the "external application" text in that
preference, and didn't go back to test it. Probably it detects AppleEvents -
which is both how applications send messages to each other and how
AppleScript works - so the alarm is triggered even by scripts run by
Entourage itself. So I should just have set "If you're going to be running
scripts you need to turn off those prefs". Those preferences are there to
reassure people that there's protection there (which there is) should some
virus ever be developed for the Mac equivalent to what they've heard about
happening on Windows ("it's all Microsoft, right?"). I suppose they're good
protection for people who can't resist double-clicking applications they
download (which may be disguised). But if you know what you're doing and
want to run scripts you have to turn them off.
>
> Can you tell me one more time how to set the signature to none in the below?
It's a little different for outgoing messages than for draft windows, I'm
afraid. Once a message has been encoded (which happens when it's saved) the
signature has just become text and can't be detected as a signature as such.
So it's more complicated to set it: you have to set the default signature of
the account before making the message (then set it back again). Since you're
not specifying the account you must be using the default account here.
>
set theAccount to default mail account -- or specify which account
set sigType to default signature type of theAccount
if sigType is other then set sigChoice to default signature choice of
theAccount
--make the change:
set default signature type of theAccount to none
set MyMessage to make new outgoing message with properties �
{recipient:"[EMAIL PROTECTED]", subject:"admin", content:theBody}
send MyMessage
-- put the sig back
set default signature type of theAccount to sigType
if sigType is other then set default signature choice of theAccount to
sigChoice
If you have a lot of messages to send out in a repeat loop, just reset the
default signture of the account once - before and after the repeat loop.
(If you're working with draft windows then you just
set signature type of MyMessage to none
and that's all there is to it.)
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
--
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/>