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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:04:55+00:00 2026-05-25T02:04:55+00:00

I want to associate the .exe file extension with a shell script that launches

  • 0

I want to associate the .exe file extension with a shell script that launches wine. What is the best way to do this?

From what I’ve gathered, I need to create an AppleScript that will call wine, but how do I get the name of the input file in the AppleScript? If there is a better way to do this, let me know, but as far as I know this is the best way.

  • 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-25T02:04:56+00:00Added an answer on May 25, 2026 at 2:04 am

    You can use an AppleScript application to do this – files are passed to the open handler, the same as a droplet, for example:

    on open theFiles
        set arguments to ""
        repeat with anItem in theFiles
            set arguments to arguments & space & (quoted form of POSIX path of anItem)
        end repeat
        do shell script "/path/to/wine" & arguments
    end open
    

    To associate a particular document type with your application, you will first need to add information to your application’s information property list (Info.plist) to tell Launch Services what types of documents it can handle. See Apple’s Document-Based Applications Overview (or take a look at the settings in other applications).

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

Sidebar

Related Questions

I have a custom file type/extension that I want to associate my app with.
I created an .exe file and associated .myFile extension to that .exe file. I
I want to get path to the programs that associated with file extension, preferably
I want to associate custom data to a Type, and retrieve that data in
I want to associate a bucket in X account that is created by account
I have a situation where I want to associate multiple values from one table
In my android app I want to associate my app with *.bin extension. Whenever
I have a requirement where I want to associate an index with a file(in
I want to associate additional data with each QTableWidgetItem inserted into the table, in
If you want to associate some constant value with a class, here are two

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.