Very nice, thanks! That should work perfectly. I hadn't realized mailplane URLs included the search terms.
John On Sun, Feb 7, 2010 at 9:29 AM, Ruben Bakker <[email protected]> wrote: > 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* > > * > * > > * > * > -- 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]. For more options, visit this group at http://groups.google.com/group/mailplaneapp?hl=en.
