m scripts and modules are just files stored on the file system of your phone. Since they are files, you can manipulate them using a file explorer application or using m, and transfer them to other devices.
These files are located in the document directory of the m application. This directory can be changed from within the application by navigating between folders (i.e., subdirectories).
Scripts have the file extension .m, modules the extension .mm, and compiled executables the extension .mex. For instance, the Partytime script might correspond to file c:\documents\mShell\Partytime.m. You can easily verify this from within a shell: open a shell (e.g. with mShell→New Shell) and try the following (you don't have to enter the comments starting with //):
|
// get the document directory from module system m>use system system.docdir → c:\documents\mShell\
// show the file contentstype(system.docdir+"Partytime.m") → /*
A very simple m SMS service: anybody sending the keyword "party" will get a standard reply. */ use sms |
![]() | ![]() | |
Since inbox2m supports .zip files and extracts them into the document directory, you can install entire packages with several scripts, modules and supporting files in one go.