Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I successfully built Lua for my iMac and I can run simple controls in terminal, but I have longer programs I want to run. On Windows, I was able to just double click my sample.lua file and it would run my code. On my iMac, it opens the file in a text editor.

I've found some interpretors, but they don't seem trustworty and I dont know if there's an official one or not. I also tried changing the directory (following this video's directions) but that didn't work.

What else do I have to build/add/install in order to run the file similarly to how I ran it in Windows (By just double clicking it)?

share|improve this question
You might try asking, "How do I change the default action for X files on a Mac?" or similar. I bet you'll get more/better answers. (I thought it was a question about a build error.) – jpaugh May 10 '13 at 21:05

You could make CodeRunner the default application for lua files. It doesn't run scripts automatically though, and it's really just a simple code editor.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.