Table of Contents |
| Jack the Scripter

Create your own mini applications to execute shell scripts.
Application Menu
Create a new application or select one from the given list. The application is copied to disk (or freshly created on disk.) Set the desired icon and startup image by dragging images into or clicking on the placeholder images. Set the script to execute and click 'Save' to write the application to the phone.
Execute Script Menu
Select the kind of script you want to execute.

- Dial Phone Number dials the number you enter. An easy way to make a 'Smart Dialer'. It has the advantage over web clips that it does not ask for confirmation before dialing the number
- Open Website in Safari not all *that* exciting now that you can easily make web clips
- the other options are described in more detail below

Toggle WinterBoard Theme
Creates an application that toggles the selected WinterBoard theme on or off. In effect, a one-tap WinterBoard theme.
Install Display Order Package
Creates an application that installs the selected display order package. You can create display order packages on the Home Screen Layout page; choose Display Order from the mode menu, arrange your applications as desired, then select 'Save Display Order as Package...' from the Command and Options menu.
Note: this is a bit of a circle jerk since the application you create is itself part of the display order :-) The best way to go about it is to create as many apps as you want to have (one per display order.) Set the script type to 'Custom' initially. Now go to the Home Screen Layout page and create or update the display order packages, then return here and associate each display order with 'its' application and save it.
Custom Script
You should know how to write shell scripts. Create an application that executes your script on the phone.
Constraints
The following restrictions are imposed on these script applications:

- no user input or output; scripts perform a given task and that's that
- if a script runs longer than 20 seconds, it gets terminated by the OS
- the permissions are set so that not all tools can execute and not all files and folders have read or write permission

Restrictions 2 and 3 can be by-passed by submitting the script to a daemon:
The application will exit after copying your script to / private/ var/ mobile/ Media/ bSE/_bSE_JackTheScripter.script. The daemon / usr/ sbin/_bSE_script6d will check for this file, and if found, will execute it.
After completion, the file / private/ var/ mobile/ Media/ bSE/ _bSE_JackTheScripterOK.txt is written. It will contain the date and time of completion.
Reset Daemon
You may want to create a 'Reset Daemon' application. It will terminate and restart the _bSE_script6d daemon which will be useful if your script gets stuck. This is also what the Reset Daemon button does.