Home galaxy
galaxy
galaxy galaxy galaxy
spacer
spacer
Arrow
spacer
Arrow
spacer
Favorites.csl
spacer

This script loads the Examinator list of Favorite Scripts. Understanding how this scripts works will demonstrate how to use the GEX library command gexFavoriteScripts. This command lets you:

orange Erase the existing list
orange Insert new scripts in the list

The source code follows:

//////////////////////////////////////////
// Welcome to Galaxy Examinator Script
// Find more on www.galaxysemi.com
// File: favorites.csl
//////////////////////////////////////////

// Function to setup the GEX 'Favorite Scripts' menu list
SetFavoriteScripts()
{
sysLog('*** This script loads the list of Favorite Scripts! ***');

// Erase the list in case it is not empty
gexFavoriteScripts('clear');

#if sysIsUnixFamily
// Insert template scripts to the list (UNIX Platform)
sysLog('Inserting favorite script: hello.csl');
gexFavoriteScripts('insert','/export/home/galaxy_examinator/samples/hello.csl','Hello demo');

sysLog('Inserting favorite script: args.csl');
gexFavoriteScripts('insert','/export/home/galaxy_examinator/samples/args.csl','ARGS demo');


sysLog('Inserting favorite script: trace.csl');
gexFavoriteScripts('insert','/export/home/galaxy_examinator/samples/trace.csl','TRACE demo');

sysLog('Inserting favorite script: options.csl');
gexFavoriteScripts('insert','/export/home/galaxy_examinator/samples/options.csl','OPTIONS demo');
#else
// Insert template scripts to the list (WINDOWS Platform)
sysLog('Inserting favorite script: hello.csl');
gexFavoriteScripts('insert','c:\\Program Files\\Galaxy Examinator\\samples\\hello.csl','Hello demo');

sysLog('Inserting favorite script: args.csl');
gexFavoriteScripts('insert','c:\\Program Files\\Galaxy Examinator\\samples\\args.csl','ARGS demo');

sysLog('Inserting favorite script: trace.csl');
gexFavoriteScripts('insert','c:\\Program Files\\Galaxy Examinator\\samples\\trace.csl','TRACE demo');

sysLog('Inserting favorite script: options.csl');
gexFavoriteScripts('insert','c:\\Program Files\\Galaxy Examinator\\samples\\options.csl','OPTIONS demo');
#endif

sysLog('List of Favorite Scripts Done!');
}

// Script entry point
main()
{
// Call function to setup the GEX 'Favorite Scripts' list
SetFavoriteScripts();
}

 
spacer