Welcome back! There are two scripting languages now. The old one is now called MOS for files that used to use the .mos extension and the new one is called MSL, which uses the .msl extension.
The warning messages look like what would happen if you tried to use MOS script syntax in an .msl file, or imported a file without an extension and it got confused about which type it was. So first check the file containing the script, and make sure it has the .mos extension before you try to import it or add it as an external.
If you were using the Script Editor window and pasting it in there, that only supports MSL scripts.
It's kind of at a crossroads right now. I'd prefer it if everyone used the new language because that's going to be the future of things. But that's going to be buggier than the old language for awhile, and I don't want to force people to rewrite all their old scripts.
So to use old scripts follow one of these processes:
- Put the script in the location of your choosing, and make sure it has the .mos file extension
- From the Scripts menu select Script Library and click the Externals tab.
- Click the button Add External and use the file chooser popup window to find your file
- Close the file chooser, and click Done on the Script Library window
This is more-or-less how Mobius 2.x installed scripts. You could put them anywhere you
wanted and then you had to tell Mobius where they were.
There is a new option for locating scripts called the library. The library is just a folder on the file system inside the Mobius installation folder. Any file you drop into that folder will automatically become available as a script, you don't have to define an external to tell Mobius where it is. The easiest way to get a file into the library is to drag-and-drop it from your OS's file manager onto the Mobius window. If it can't figure out what language is in the file it may prompt you to select one, be sure to select MOS.
There is a third way, but I find drag-and-drop easier.
- Bring up the Script Library window and click the Files tab.
- Click the Import button at the bottom
- In the file chooser navigate to where your file is
- The file is copied into the library
The advantage of having scripts in the library is that it can make them more stable. You're less likely to delete or move them by accident, and I don't have to look at a dozen different places to find things. The disadvantage is that it makes them harder to edit in a text editor since it isn't obvious where they are.
The Script Editor window is intended to evolve into the thing where you make minor modifications to scripts, but it's very new and unlikely to replace your favorite text editor. If you want to use the library, and use your own text editor, you can find them in the scripts folder under the Mobius installation folder. To find the Mobius installation folder, bring up the Help->About window and look at the file path after "Configuration root:".