Jiggy 0.26 |
GlobalsSummary
include
Includes and evaluates a JavaScript file. parameters
returns
notesfileName can include a full path, but it cannot be absolute. The file will be found in the current application’s bundle - you cannot include files from outside the bundle. If fileName does not include an extension, the extension “.js” will be appended to it automatically. If there is a problem locating the file or evaluating it, include will throw an exception. exampleinclude( "scripts/json2.js"); killProcessNamed
Looks for a process with the given name and tries to kill it. You can use it to kill SpringBoard by passing “SpringBoard” as the name. Note that if you do kill SpringBoard, your application will also terminate soon after this function returns true. parameters
returns
|
Returns the current version of Jiggy.
string JiggyVersion readonly
Prints a string to stderr with no timestamp, tralining new line or any additional information.
void print( string s )
Logs a string to stderr with timestamp information and a trailing new line.
void log( string s , int level )
Includes and evaluates a JavaScript file.
jsval include( string fileName )
Lets you turn on and off debug mode.
debug( bool on )
Lets you popup an alert box with some text and an OK button.
alert( string message )
Looks for a process with the given name and tries to kill it.
bool killProcessNamed( string name )
Terminates the application.
void terminate()
void openURL( string url , bool openAsPanel )
Executes a shell command and returns its output as a string.
string executeShellCommand( string command )
A read-only global object that allows you to manipulate plug-ins.
Plugins Plugins readonly
A read-only global object that allows you to get information about applications bundles, including your own.
Bundle Bundle readonly
A read-only global object that allows you to save and restore user-specific application defaults (preferences).
Defaults Defaults readonly
If present, this function is executed immediately after the application finishes launching.
callback void onLoad()
This event happens just before the application terminates.
callback void onUnload()
Triggered by the accelerometer.
callback void onAccelerate( double x , double y , double z )