Skip to content

Instantly share code, notes, and snippets.

@pslobo
Created June 7, 2015 10:19
Show Gist options
  • Select an option

  • Save pslobo/04c3fafd7dba7d93a76c to your computer and use it in GitHub Desktop.

Select an option

Save pslobo/04c3fafd7dba7d93a76c to your computer and use it in GitHub Desktop.

Revisions

  1. pslobo created this gist Jun 7, 2015.
    8 changes: 8 additions & 0 deletions GoToMailbox.scpt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    try
    tell application "Mail"
    activate
    set selected mailboxes of message viewer 1 to {mailbox "App Testing" of account "iCloud"}
    end tell
    on error errmsg
    return errmsg
    end try