Hi John,

On Sat, Feb 6, 2010 at 10:56 PM, John Sheets <[email protected]> wrote:

> Is it possible to automate running mailbox searches with AppleScript?  In
> particular I end up using is:unread a lot to get the cross-folder latest
> emails.  Ideally, I'd like to be able to run a single script (e.g. via
> FastScripts) to switch to a mailbox and run the is:unread search, possibly
> with variants to run that in specific folders.


You could use a Mailplane URL to open any search.
Here's how you can get an URL example/template:
1) Do a search
2) Use the *Edit > Copy as Mailplane URL *to copy the URL to the clipboard

How to use AppleScript to open the URL (Important: install the latest 2.1.5
preview first: http://mailplaneapp.com/download/preview/):

*tell* application "Mailplane"

*open location*
"mailplane://your.email%40domain.com/#search/applescript<http://40gmail.com/#search/applescript>
"

*end* *tell*

*
*

*
*



>
> Rooted around online and wasn't able to turn up much specific info on
> Mailplane and AppleScript.  Is there a resource somewhere that I've just
> missed?
>
>
The Mailplane applescript interface can be used for three tasks:

*1) Compose a new email message (with attachments):*

*tell* *application* "Mailplane"

 *set* m *to* *make* new *outgoing message*

*tell* m

*set* sender *to* "[email protected]"

*set* r *to* *make* new *to recipient* at *end*

*tell* r

*set* address *to* "[email protected]"

*set* name *to* "Ruben"

*end* *tell*

 *set* subject *to* "test subject"

*set* content *to* "This is the body text!"

*make* new *mail attachment* with properties {path:"Macintosh
HD:Users:ruben:Pictures:china.png"}

*end* *tell*

*compose* m

*end* *tell*

*2) Enabling/Disabling the do not disturb state:*

tell application "Mailplane"

set doNotDisturb to true

end tell

*3) Get the current browsed Gmail URL/Title:*

tell application "Mailplane"

    set subject to currentTitle





    set mailplaneURL to currentURL
    -- now create a new task in hit list
end tell



> Thanks,
> John
>
> --
> John Sheets <[email protected]>
> Twitter: @picodog, @icasa
>
> "The Internet is not something you just dump something
> on.  It's not a big truck.  It's a series of tubes."
>  --Senator Ted Stevens, R-AK
>
>  --
> You received this message because you are subscribed to the Google Groups
> "mailplaneapp" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<mailplaneapp%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/mailplaneapp?hl=en.
>


 Ruben Bakker // uncomplex gmbh // Switzerland // mailplaneapp.com //
twitter <http://www.twitter.com/Mailplane>

-- 
You received this message because you are subscribed to the Google Groups 
"mailplaneapp" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mailplaneapp?hl=en.

Reply via email to