corona won't use default editor

I’m new to development on a Mac and having a problem. Corona lets me open a project from the simulator, but it always opens up in TextEdit (or whatever it’s called). I have TextWrangler set to the default application for opening Lua files, so why doesn’t Corona recognize and use that?

I’ve looked for a place in Corona for a default editor but haven’t found it.

So how do I make Corona open TextWrangler to edit project files?
[import]uid: 61132 topic_id: 10879 reply_id: 310879[/import]

Hey there :slight_smile:

When you say Corona open other files (like TextWrangler) - what exactly do you mean?

Corona will open your project with a main.lua file in it and simulate that; is it not recognizing the main.lua file?

If you mean when you open .lua files they open in a text editor you do not like, this has nothing at all to do with Corona - Corona is not a text editor.

Peach [import]uid: 52491 topic_id: 10879 reply_id: 39606[/import]

You can open project files from within Corona simulator (on Windows, it’s Control+Alt+O).

I’m trying to get the Corona simulator to use TextWrangler for editing my project Lua files. Currently, TextWrangler is my default app for that, but the basic TextEdit gets opened instead.

So how do I tell Corona to use TextWrangler?
[import]uid: 61132 topic_id: 10879 reply_id: 39610[/import]

@coronasdk730,
as Peach mentioned, Corona is NOT an editor. When you double click the .lua file in finder, TextEdit opens it instead of TextWrangler. You want to fix that, right?

well,

  1. You can right click on the .lua file and select open with -> Other and select TextWrangler

  2. You can put TextWrangler in your Dock and drag drop your .lua file on it to open it with TextWrangler

  3. You can select the .lua file, press ?+I and then under the Open With, select TextWrangler instead of TextEdit and also click on Change All

these are the three ways you can resolve your issue,

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 10879 reply_id: 39625[/import]

I know it’s not an editor. What about anything that I’ve said makes you think that? HOWEVER, you CAN OPEN THE EDITOR from the Corona simulator. If you don’t believe me, open the Corona simulator, click the “File” menu, then click “Open Project in Editor.” See?!

And when I click “Open Project in Editor,” I want it to use TextWrangler, but it does not.

(When I doubleclick a Lua file from Finder, it opens TextWrangler. I have that working fine.)

Now, why doesn’t Corona simulator USE MY DEFAULT TEXT EDITOR when opening project files?
[import]uid: 61132 topic_id: 10879 reply_id: 39628[/import]

Chill out a bit.

Pretty much everything you have said up until this point has sounded as though you were confused RE text editors and Corona, but fine, it’s clear now.

Were you using using TextWrangler as your default Lua editor when you first downloaded and used Corona?

This isn’t my area but it wouldn’t do any harm to uninstall and reinstall it with TextWrangler set as your default if it originally was not.

Peach [import]uid: 52491 topic_id: 10879 reply_id: 39754[/import]

My best guess is that you can’t make that change unless you want to assign your default text editor for all your Mac file types requiring the default editor to TextWrangler. Unless you can find a way to change what that “Open Project in Editor” button does.

I have set my default .lua editor to Xcode but it doesn’t change what “Open Project in Editor” option does so you either need to change it on a system/Mac OSX level or you need to be able to change how that “Open Project in Editor” menu option works. [import]uid: 77632 topic_id: 10879 reply_id: 47039[/import]

Go to this page:

http://coronaprojectmanager.com/learningcenter/

…and watch the video at the bottom of the list - Set the Default Editor. It’s just over a minute long and even though it’s aimed at people using Corona Project Manager I’ll bet it fixes your problem.

Jay

[import]uid: 9440 topic_id: 10879 reply_id: 47043[/import]

Thanks Jay.

I’ll try this when I get home. “Change All” sounds like it might be the missing link!

Cheers. [import]uid: 77632 topic_id: 10879 reply_id: 47185[/import]

Thanks Jay, that worked. Makes things easier.

Cheers. [import]uid: 77632 topic_id: 10879 reply_id: 47245[/import]