Motorola Development Community

Member Login

Quick Search



E6 General Chat Motorola ROKR E6 is somehow a candybar version of the A1200 as they functions very similarly but with far more multimedia capabilities!


Reply
  #11  
Old 07-20-2008
BruceLee's Avatar
Moto Fans SENR
 
Join Date: Jan 2008
Location: Romania
Posts: 646
Thanks: 45
Thanked 148 Times in 90 Posts
Default

Those are interpreters for certain types of scripts.

Some links:
http://en.wikipedia.org/wiki/Command_line_interpreter
http://en.wikipedia.org/wiki/Interpreter_(computing)

Hope you can understand from there

Last edited by BruceLee; 07-20-2008 at 08:04 AM.
Reply With Quote
  #12  
Old 07-20-2008
BruceLee's Avatar
Moto Fans SENR
 
Join Date: Jan 2008
Location: Romania
Posts: 646
Thanks: 45
Thanked 148 Times in 90 Posts
Default Scribi main post: description and download:

I'm really interested by this app so i've improved the main bash script which runs the interpreters... I have no other scripts than bash so i've tested only with that but it must run with the others too.

UPDATE 5

UPDATE 5:
+ Improved Bash
+ Added Python support
UPDATE 4:
+ Improved JavaScript
UPDATE 3:
+ Added JavaScript support
UPDATE 2:
+ Added PHP support
+ Added eKonsole Support
+ Fixed error caused by pressing [Cancel] when choosing interpreter from list
UPDATE 1:
+ Fixed streched icon




DOWNLOAD
(It's not zipped only renamed)



When you'll click on the app in the main menu you'll get a window saying which extensions are supported. You'll also be able to choose to open the integrated ekonsole or to change settings



If you choose [Settings] you'll be able to select the opening mode of the scripts.
[GUI] (that means you won't be able to see the output - echo - of the script but it will be logged in /mmc/mmca1/scribi.log. The log file will be overwritten every time you run a script in GUI mode)
[eKonsole] (this means scripts will be opened with ekonsole so the output text will be visible and no log will be created)
As you can see in the image there is mentioned the current setting of the app.



To open a script with scribi goto to it and make a long click so that the menu appears and select Open With



Now select scribi and also select Always use this program to open this filetype



Now you'll get a window with 3 options which asks you if you want to execute the script
Options: [Yes] [No] [Edit] (it might not be so visible because of the skin i use)
So you can also edit the script with this (it uses yan0_notes)


By clicking [Edit] you'll get something like this


By clicking [Yes]
If the app is set to GUI:
A Loading, please wait... message will appear and will stay there until the script is finished running


As you can see while the script is running the message is still there in background


After the script is finished the Loading message dissapears too. (i made it so you know when the script is done - since most of them are offering just functionality and no graphic interface to help us know when the script stopped)

If the script is set to eKonsole:
The integrated eKonsole will open but not automaticaly run the script as i didn't figure out how to do it


In the bottom-right combo box are located all the supported interpreters but the first element contains the entire command neccessary for running your script. Select it by clicking on it.


Now you have to click once on the middle of the screen so that the combo box becomes deselected.
(check the combo box background color difference - before and after the click on the middle of the screen)


Next you have to open the keyboard and press [ENTER] or directly click the middle button of the phone's joystick so that the script gets executed.


After the script is executed (example in the next screenshot) you can do whatever you want, most probably exit ekonsole.



If you want to open a script which has another extension than it should have and you don't want to rename it you can still open it with Scribi. Let's say your file is .wtf


Do the same thing with open with and you'll get a window where you'll be able to choose [Open With] or [Cancel]


By clicking on [Open With] you'll get a list and you'll be able to choose which interpreter you want, or you can also choose to edit the file.




There is no case sensitive problem with Scribi since the script recognises a script.lua but also recognises another file called script.LUA or even one like script.LuA. (notice the extension difference)

Maybe you'll ask why have i integrated ekonsole in this app and i didn't use the already installed ekonsole (which i supose everybody has).
Well the answer is simple:
Every time you run a script through Scribi the ekonsole config file is overwritten so your settings get erased and i do believe that's not a pleasant view.

Why is the config overwritten?
Because that's how the script get's the neccessary command for the script to be interpreted into the nice combo box from ekonsole.



KNOWN BUG:
The file name and the folders that contain it must NOT contain any blank spaces in their names!!




DOWNLOAD
(It's not zipped only renamed)


Credits:
puppetshow.....Adapted the interpreters
redice.............Adapted JavaScript (TOPIC)
Bruce Lee........Made the entire interface


.
Attached Images
         
Attached Files
File Type: zip scribi.pkg.zip (3.12 MB, 213 views)

Last edited by BruceLee; 08-02-2008 at 09:33 PM. Reason: UPDATE
Reply With Quote
The Following 4 Users Say Thank You to BruceLee For This Useful Post:
abokamel (07-24-2008), KooNKHaR (07-20-2008), puppetshow (07-20-2008), Viper89 (07-20-2008)
  #13  
Old 07-20-2008
MotoFans MODR
 
Join Date: Jul 2008
Location: Poland
Posts: 113
Thanks: 5
Thanked 25 Times in 17 Posts
Default

Sweet! Great that you improved it, now it'll become a lot more usable (it could replace the standard loader?).
Btw, maybe an option that would start eKonsole with this script open? It'd be even better
Reply With Quote
The Following User Says Thank You to puppetshow For This Useful Post:
abokamel (07-24-2008)
  #14  
Old 07-20-2008
BruceLee's Avatar
Moto Fans SENR
 
Join Date: Jan 2008
Location: Romania
Posts: 646
Thanks: 45
Thanked 148 Times in 90 Posts
Default

yes it could replace the standard lin/sh loader but i think that's not necessary.
i don't know about the ekonsole thing... i'll see what i can do... who knows maybe it's possible


edit:
DOWNLOAD available in my previews post

Last edited by BruceLee; 07-27-2008 at 02:52 PM.
Reply With Quote
  #15  
Old 07-20-2008
g4m3rz's Avatar
The Resident Evil
 
Join Date: Feb 2007
Location: India
Posts: 1,255
Thanks: 37
Thanked 131 Times in 80 Posts
Default

nice work guys
__________________

Hit the donate button if you found this site useful
Reply With Quote
  #16  
Old 07-20-2008
subha's Avatar
MotoFans JUNR
 
Join Date: Jul 2008
Posts: 98
Thanks: 0
Thanked 4 Times in 4 Posts
Default

grt work
Reply With Quote
  #17  
Old 07-20-2008
Viper89's Avatar
The Assassin
 
Join Date: Feb 2008
Location: Auburn,NY
Posts: 951
Thanks: 42
Thanked 37 Times in 32 Posts
Default

Thanx Bruce because I had trouble understanding wat this does but thanx to ur examples I understand it better
__________________
Phone:Sony X1i Silver Limited Edition
Rom: Blaze 3.5 Sense 2.5 (24001) W7HD Edition/ Android 2.1 and 2.2
http://deltainc.blogspot.com/
Reply With Quote
  #18  
Old 07-20-2008
KooNKHaR's Avatar
MotoFans MODR
 
Join Date: Apr 2008
Location: KualaLumpur, MY
Posts: 141
Thanks: 137
Thanked 26 Times in 15 Posts
Default

@ bruce
perfect tutorial i'd say, thx..
__________________
Reply With Quote
  #19  
Old 07-20-2008
BruceLee's Avatar
Moto Fans SENR
 
Join Date: Jan 2008
Location: Romania
Posts: 646
Thanks: 45
Thanked 148 Times in 90 Posts
Default

Now if anybody has any ideea on how could we start ekonsole and automaticaly run a certain script, or at least run automaticaly a command that would be great

@puppetshow
Waiting for other interpreters. Just post them here and i'll add them in the pkg.

Damn i can't wait to see a working php interpreter in my phone.

Last edited by BruceLee; 07-20-2008 at 06:06 PM.
Reply With Quote
  #20  
Old 07-20-2008
MotoFans MODR
 
Join Date: Jul 2008
Location: Poland
Posts: 113
Thanks: 5
Thanked 25 Times in 17 Posts
Default

Do I have a gift for you?
Please note that it's very minimal build, most of fancy functions (like database support, xml support and so on) has been disabled.

http://nomicon.pl/php.7z

Enjoy!

btw, would some moderator be so nice and merge somehow this topic and Scribi topic? I see most of discussion is here
Or at least rename this to "Scribi topic", please?
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I Can Install Python or Perl in A1200 KASRA A1200 General Chat 23 01-04-2009 09:35 AM
need perl compiler on a1200 m41d3n Development 2 03-17-2008 09:11 AM
Can Perl b used for dev E6 application...? sridi E6 General Chat 4 02-01-2008 06:36 AM
Q: Need something for perl and c++ scripts?? m41d3n A1200 General Chat 1 01-23-2008 08:32 PM
Perl on E680 ? tt930 E680 General Chat 1 05-04-2005 07:38 AM

 
Advertisement

Partner Links