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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:23:44+00:00 2026-05-23T07:23:44+00:00

Objective I want to be able to run the Applescript to open multiple applications

  • 0

Objective

I want to be able to run the Applescript to open multiple applications using a shortcut. To do this, I would like to create a Service using Automator (I’ve done this for opening one application, the script opens multiple). After some research, I found that I need to make the script an action in Automator, using Xcode.

Progress

I have this Applescript app that does what I want:

--Insert apps to open here:
set multApp to {"Safari", "Mail"}

set noOfApplications to count of multApp
set itemNum to 1
repeat with counter from 1 to noOfApplications
    openApp(item itemNum of multApp)
    set itemNum to itemNum + 1
end repeat

on openApp(chosenApplication)
    tell application chosenApplication to activate
end openApp

I am a beginner at all 3 (haven’t touched Xcode)

What I’ve done in Xcode is: started on the main.xib (as per a tutorial) and have used Interface Builder (v. 3.2.6) to have 3 “pop up buttons” that I want to bind to Applications.

Questions

  1. Is this the right method? Am I using Xcode correctly?

  2. How to bind to an application? What input to “Controller Key”, “Model Key Path” etc…

  3. Is there a way to see the workings behind a current action (like “Launch Application”)

Final Notes

This is more for learning than for actually using the script. So I know I can just add more “Launch Application” to the current Service. I want to know so I can make any Applescript app (script) into a Service… Wouldn’t it be handy?

Sorry for my noob-ness (let me know if the question is unclear), and THANKS for any advice!

UPDATE: “Run Applescript” action will do the job, ignore Xcode (Thanks @regulus6633) and just make Service with that action.

  • 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-23T07:23:44+00:00Added an answer on May 23, 2026 at 7:23 am

    Jon said: After some research, I found that I
    need to make the script an action in
    Automator, using Xcode.

    Not sure what research told you that. You’re making this much more complex than is necessary. It will take a long time to learn everything required to do what you want using xcode. I’d suggest staying with applescript and automator for now. Once you master them then get into xcode stuff. In general when you use xcode you’re programming in objective-c, so at a minimum you have to learn some objective-c before you will be successful.

    So sticking with applescript for now, the closest thing you can get to a popup button with menu choices is the choose-from-list applescript command. Your best bet would be to use something like the following. And if you want to make it a service then use automator to create the service and run the applescript code in that.

    set applicationsList to {"Safari", "TextEdit", "Mail"}
    
    -- choose one or more applications
    choose from list applicationsList with title "Application Launcher" with prompt "Choose the applications..." OK button name "Launch" cancel button name "Quit" with multiple selections allowed
    tell result
        if it is false then error number -128 -- cancel
        set theApplications to items
    end tell
    
    -- launch the chosen applications
    repeat with i from 1 to count of theApplications
        tell application (item i of theApplications) to activate
    end repeat
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to create an animation that is started using a
Quick question for you. I want to be able to create an instance of
I don't want to go the full rubyobjc, how would I be able to
Objective: I want to set iphone Application Preferences at run time In Setting.Bundle I
I want to translate this java code into equal objective-c code double[] pMatrix =
I want to recognize uppercase letters using objective-c. I have an implementation now that
I already know Java, Objective C, C#, and some Python. I want to be
Objective-C has no namespaces; it's much like C, everything is within one global namespace.
Environment: C# projects, Visual studio 2008, C#, .Net 3.5, MSBuild Objective: Run my own
I'd like to start experimenting with Cocoa, Objective-C and Xcode, but the only Apple

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.