View Single Post
# 4 10-03-2008 , 01:43 PM
publicFunction's Avatar
Senior Software Developer
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Commands

webBrowserPrefs
No frames

Go to: Return value. Flags. Examples.

Synopsis
webBrowserPrefs [flags]



This command handles setting preferences that the web browser uses. Some of the most common preferences are settable in the Web Browser tab of the Preferences dialog box. A full listing of the current settings being used by the browser can be viewed by entering "about:config" as an URL in the browser.
Return value
unknown
Flags
preference

Long name (short name) [argument types] Properties
-preference (-prf) string string
Query or set a web browser preference. In query mode, accepts a string representing the preference name and will return the result. In edit or create mode, the first parameter is the preference name and the second paramater is the valued to be set. Edit and create will return the value that was set if successfull.


--------------------------------------------------------------------------------
Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command

Examples
global string $homePagePrefKey;
string $homePage;

// Get the current home page used by the browser.
//
$homePage = `webBrowserPrefs -q -preference $homePagePrefKey`;

// Set the web browsers home page to something new.
//
$homePage = "www.alias.com";
webBrowserPrefs -edit -preference $homePagePrefKey $homePage;


Chris (formerly R@nSiD)
Twitter
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)