Re: Entourage : Returning info from multiple new messages
Re: Entourage : Returning info from multiple new messages
- Subject: Re: Entourage : Returning info from multiple new messages
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 18 Aug 2005 11:16:47 -0700
- Thread-topic: Entourage : Returning info from multiple new messages
Title: Re: Entourage : Returning info from multiple new messages
On 8/18/05 7:42 AM, "Jay Louvion" <email@hidden> wrote:
- how do I handle a name containing a “/” in it’s name (typically like the keyboard shortcuts names that are appended at the end of Entourage scripts names)
It's not the forward slash "/" that's the issue. (If you were converting message subject or attachment names with ":" to file names, you should convert them to "-" using AppleScript text item delimiters, although the Finder will do that anyway for you. "/" are legal but can create confusion if you use Unix-y features like 'do shell script' so I would convert the "/" to "-" if I were you.) You're talking about backslash "\" as used in Entourage script menu keyboard shortcuts. You just need to 'escape" them with another "\'"- "\\" just as you do for double-quotes. (It's because they're used as the escape character for double-quotes that they need their own escape character.)
- How can I mark the printed or download triggering messages as read ? Ive tried set properties of theMsg to {mark as read:true} but even though it compiles, it just returns “unknown object type” (which does not figure in my most amusing AS errors...;-)
You don't set 'properties'. You just set the property you need, as Gary says. And you check the dictionary to see what the name of the property is. It's not 'mark as read' - it's 'read status'. And the two values it can have are 'untouched' (meaning unread) and 'read'. So:
set read status of theMsg to read
is what you want. That marks it as read. (You can even include it in the 'with properties' when making a new message, if you wish, rather than setting it afterwards:
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden