Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3988224
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:13:36+00:00 2026-05-20T06:13:36+00:00

I thought I could just do this: tell application Mail activate end tell Although

  • 0

I thought I could just do this:

tell application "Mail"
activate
end tell

Although I can see the Mail toolbar at the top. It hasn’t brought the mail app to the front to be fully visible.

My recorder doesn’t work for some reason too, so I can’t use that to find out what I need to do.

How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:13:36+00:00Added an answer on May 20, 2026 at 6:13 am

    You probably have closed the mail window so when you activate the application there isn’t any open windows to show. As such you have to open one yourself. Note that the main window in mail is called a "message viewer". Try this…

    AppleScript:

    tell application "Mail"
        activate
        if (count of message viewers) is 0 then
            make new message viewer at front
            set selected mailboxes of message viewer 1 to {inbox}
        end if
    end tell
    

    JXA:

    var Mail = Application("Mail")
    Mail.activate()
    if (Mail.messageViewers().length === 0) {
      Mail.MessageViewer().make()
      var mv = Mail.messageViewers()[0]
      mv.selectedMailboxes.set(mv.inbox())
    }
    

    By the way, the recorder doesn’t work in most applications so I’m not surprised to hear that it doesn’t work for Mail. An application author has to code this ability into the program and most developers (including Apple) do not do this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought this might just be possible with jQuery or JavaScript - could someone
I'm using the Dapper micro ORM. I thought it could handle enumerables like this:
This is perhaps more of a discussion question, but I thought stackoverflow could be
One could think of this case as follows: The application dynamically loads a module,
I thought I could change the Boolean true/false value, but it's not working. How
I had thought I could enumerate the types using IMetaDataImport.EnumTypeDefs and for each of
I want Stats.singleton.twitter_count += 1 and I thought I could do class Stats: singleton_object
Yesterday i had a question in an interview which i thought i could find
I'm new here. I thought I could ask for some help here on my
I always thought that you could use OR in a LIKE statment to query

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.