Is Mailsmith scriptable? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
| The answer can only be YES ... VERY. Almost any part of Mailsmith can be scripted ... |
Where can I find examples of scripts? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
| Check out René Brouwers archive and the scripts available here |
How do I 'queue' a message using AppleScript? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
It was not possible to queue a message in versions 1.0.x, it have been added in later versions. Typically use is:
queue message window 1 |
Can a mailbox be rebuilt/compressed using AppleScript? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
| Not in any version less or equal to 1.1.1 |
Can the editor be scripted? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
No, not in any current release ( <= v1.1.6 ). But according to BBSW this has been planned for some future release (no specifics given).
As of version 1.5 this can be done |
What does the booleans flagged, deleted, and recent mean? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
| Answer by Rich Siegel: Nothing. :-) You can set and clear them internally; they're not currently displayed in the UI. IMAP uses those bits, and so for future expansion they're supported in the scripting interface. Until they're explicitly used in the application, you may find them useful for various tasks. |
Can queries be scripted? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
Yes ... Queries are expressed as AppleScript 'whose' clauses. Thus:
every message whose subject contains "x"
returns a list of messages that match the specified criteria of the
whose-clause. You can then open a message list window:
make new message list window with data every message whose [criteria...]
Here are an examples of how to do it.
|
How do I reference labels in a script? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
It's not possible to use label names in a script, instead you have to reference them with their index nr, for example
set the_list to every message in mailbox "Foo" whose label index is 0
|
Why aren't some enclosures "seen" from AppleScript? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
Christain Smith: I think the problem is that they are not "attachments". Eudora will send files as in-line data if you attach them by dragging them into the message body. Mailsmith does not see these as "enclosures" so you can't get at them very easily via the applescript interface. |
How do I get a reference to the currently displayed message in the browser? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
This should work: message of window 1 |
How can I count the number of messages in a mailbox? Created: Modified: 2002-03-25 Version: Pre 1.5 By: |
tell application "Mailsmith 1.1"
count messages of mailbox "BBEdit-Talk" of mailbox "Lists"
end tell |