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

  • Home
  • SEARCH
  • 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 9255745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:46:45+00:00 2026-06-18T11:46:45+00:00

I have a script, which creates a new email message with default mail client

  • 0

I have a script, which creates a new email message with default mail client on mac. The script contains a code, that relates to Microsoft Outlook if it finds that it was set as the default Mail application. The problem is that on macs, that Outlook wasn’t installed this script even doesn’t pass a compilation, because probably Apple Script cannot find Microsoft Outlook dictionary. What is the proper way to handle this problem?

Thanks!

  • 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-06-18T11:46:47+00:00Added an answer on June 18, 2026 at 11:46 am

    Here’s how you might handle it.

    NOTE: in order for the script to not need compilation you must 1) save the script as an application. Applications do not need to compile on another machine. And 2) you use the “using terms from” claus in your script.

    I added the do shell script stuff so you can check for Outlook prior to running the outlook code if you need it. I hope that helps.

    set outlookExists to false
    try
        do shell script "osascript -e 'exists application \"Microsoft Outlook\"'"
        set outlookExists to true
    end try
    
    if outlookExists then
        using terms from application "Microsoft Outlook"
            tell application "Microsoft Outlook"
                -- do something
            end tell
        end using terms from
    else
        -- do something else
    
    end if
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script which creates a user-defined object like this: obj = new
I have this script, that does several operations on some files, which then creates
I have an SQL script which creates a scheduled event: CREATE EVENT Daily_1200PM SCHEDULE
I have a PHP script which creates and listens on a port for connections
I'm trying to write a basic script which creates a UI. I have reduced
I have the following script which creates 2 threads as you can see.The thing
I have a contact form in my flash file with name/email/message fields which a
I have a Python script which creates a dictionary of its own functions and
There is staging script, which creates new column DOCUMENT_DEFINITION_ID stages it with values of
I have a form that creates a new brand. The user chooses a name,

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.