On 3/17/05 9:23 PM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
> The script below, when ran in OS 9 in E-rage 2001, fails on the delete
> {MyMessage} part, any idea how to make this more friendly to 2001?
There's no reason whatsoever to be putting MyMessage into {list brackets} in
the first place, since it's only one message. Just
delete MyMessage
will work fine in 2004, X and 2001. The ability to have commands act on
AppleScript lists (as opposed to plural application references such as
'every message of someFolder') only arrived with 2004, or maybe X. So
'delete {MyMessage}' will not work in 2001, but it doesn't need to. Just use
the singular form in all versions of the script.
>
>
> property theCopy : ""
>
> repeat while theCopy is ""
> display dialog "SMS?:" buttons {"Cancel", "teh gay"} with icon note �
> default button 2 default answer theCopy
> set the theCopy to text returned of the result
> end repeat
>
>
> tell application "Microsoft Entourage"
> set MyMessage to make new outgoing message with properties �
> {recipient:"[EMAIL PROTECTED]", subject:"SMS",
> content:theCopy}
> send MyMessage
>
> -- Have to wait until the message is sent before you can delete
> repeat while connection in progress
> delay 2
> end repeat
> delete {MyMessage}
> end tell
--
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/>