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 8571507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:47:48+00:00 2026-06-11T18:47:48+00:00

I am having issues with applescript, where whenever I open an applescript file (either

  • 0

I am having issues with applescript, where whenever I open an applescript file (either in AppleScript Editor or in Automator) it will automatically open any programs mentioned in a tell statement/block. Most of these tell blocks are only reachable through conditionals and I would like to find a way to stop applescript’s default behavior of opening all mentioned applications.

This is basically what I am doing:

if currentApplication is "Application 1" then
    tell application "Application 1"
       do stuff
    end tell
else if currentApplication is "Application 2" then
    tell application "Application 2"
       do stuff
    end tell
end if

Unfortunately, whenever I open this script it will open both “Application 1” and “Application 2” if they are not open yet, even though it should only get to the tell statements if one of the applications is open. The way I get the current application is not really relevant, even if my ‘if’ statements were “if false” and I cut out the method that gets the “current” (or closest) application, the applications will still be opened along with the applescript.

  • 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-11T18:47:49+00:00Added an answer on June 11, 2026 at 6:47 pm

    If you just run a compiled script, an application will only be launched if AppleScript needs to send it a command, but if you open the script in a script editor, all of the applications referenced in the script will be launched in order to get their custom terminology – see the AppleScript Release Notes.

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

Sidebar

Related Questions

Having issues removing index.php? from the URL: http://localhost/index.php?/reset_password With htaccess file: # Customized error
I have been having issues calling a background image in my CSS file. The
I am having issues getting an embedded video file to play using MPMoviePlayerController. My
Im having issues on the following code when converting to Int64 or any big
I'm having issues with turkish characters as I mentioned in title. I created a
I'm having issues upgrading a pom file from Hibernate 3.3.2 to 3.6.0. I can
Having issues with Twitter Bootstrap responsive navigation. The best way to explain this is
Having issues referencing $(this) from within a the nested ajax 'success' function... I know
Am having issues with printing different sized PDF's using GhostScript (V9.05). The PDF in
Still having issues with this problem. Please help if you can. So I am

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.