revlet and path

J. Landman Gay jacque at hyperactivesw.com
Thu Aug 6 15:02:55 EDT 2009


Phil Jimmieson wrote:
> It seems that a number of system "globals" don't have values in revlets.
> I tried a small program to display the following:
> 
> defaultfolder
> platform
> systemversion
> environment
> 
> All of which seem to be empty in a revlet.

I get values. I did a test of a Revlet running locally on OS X and 
WinXP, and remotely on OS X from my web site. Here are the values I got 
back (some are empty, but not the ones you list.) For revlets run from a 
remote server, note that the systemversion and platform are the one 
that's running the revlet, not the server it came from.

Hope this doesn't wrap too badly.

===============================================
Revlet defaults at startup (run locally, OS X):
===============================================

defaultFolder: 							/Users/jgay/Library/Application 
Support/RunRev/revWebPlayer
environment:	browser
the platform:	MacOS
the systemversion:	10.5.7
	
	
The globals:
	
	gRevAppIcon	gRevAppIcon
	gRevSmallAppIcon	gRevSmallAppIcon
	$XRE_BINARY_PATH			
	$XUL_APP_FILE			
	$NO_EM_RESTART			
	$XRE_IMPORT_PROFILES			
	$XRE_START_OFFLINE			
	$XRE_PROFILE_NAME			
	$XRE_PROFILE_LOCAL_PATH			
	$XRE_PROFILE_PATH			
	$MOZ_LAUNCHED_CHILD			
	$MOZ_CRASHREPORTER_STRINGS_OVERRIDE		/Applications/Internet 
Apps/Firefox.app/Contents/MacOS/crashreporter-override.ini
	$MOZ_CRASHREPORTER_DATA_DIRECTORY		/Users/jgay/Library/Application 
Support/Firefox/Crash Reports
	$MOZ_CRASHREPORTER_RESTART_ARG_2	
	$MOZ_CRASHREPORTER_RESTART_ARG_1		-psn_0_700587
	$MOZ_CRASHREPORTER_RESTART_ARG_0		/Applications/Internet 
Apps/Firefox.app/Contents/MacOS/firefox-bin
	$COMMAND_MODE	legacy
	$SECURITYSESSIONID	9174a0
	$Apple_PubSub_Socket_Render	/tmp/launch-LtYyTc/Render
	$SSH_AUTH_SOCK	/tmp/launch-AxZXC2/Listeners
	$DISPLAY	/tmp/launch-iXOi6F/:0
	$LOGNAME	jgay
	$USER		jgay
	$HOME		/Users/jgay
	$SHELL		/bin/bash
	$TMPDIR	/var/folders/lK/lKqfANrBEKai6m7q-jKrtU+++TI/-Tmp-/
	$PATH	/usr/bin:/bin:/usr/sbin:/sbin
	$#	0

	
specialfolderpath("desktop") :			/Users/jgay/Desktop
specialfolderpath("temporary") :	/Users/jgay/Library/Caches/TemporaryItems
specialfolderpath("system") :			/System
specialfolderpath("fonts") :			/System/Library/Fonts
specialfolderpath("documents") :		/Users/jgay/Documents
specialfolderpath("preferences") :	/Users/jgay/Library/Preferences

tempName : 
/private/var/folders/lK/lKqfANrBEKai6m7q-jKrtU+++TI/TemporaryItems/tmp0


On Windows XP IE (running locally):
====================================

defaultFolder:				C:/Documents and Settings/user/Desktop

gRevAppIcon					gRevAppIcon
gRevSmallAppIcon			gRevSmallAppIcon
$USERPROFILE				C:\Documents and Settings\user
$USERNAME					user
$USERDOMAIN					JQWINXP
$TMP				C:\DOCUME~1\user\LOCALS~1\Temp
$TEMP				C:\DOCUME~1\user\LOCALS~1\Temp
$SystemRoot					C:\WINDOWS
$SystemDrive				C:
$SESSIONNAME				Console
$QTJAVA						C:\Program Files\QuickTime\QTSystem\QTJava.zip
$ProgramFiles				C:\Program Files
$PROCESSOR_REVISION			0f0a
$PROCESSOR_LEVEL			6
$PROCESSOR_IDENTIFIER		x86 Family 6 Model 15 Stepping 10, GenuineIntel
$PROCESSOR_ARCHITECTURE		x86
$PATHEXT		.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
$Path						C:\Program Files\Internet 
Explorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\QuickTime\QTSystem\
$OS					Windows_NT
$NUMBER_OF_PROCESSORS		1
$LOGONSERVER				\\JQWINXP
$HOMEPATH				\Documents and Settings\user
$HOMEDRIVE				C:
$FP_NO_HOST_CHECK			NO
$ComSpec				C:\WINDOWS\system32\cmd.exe
$COMPUTERNAME				JQWINXP
$CommonProgramFiles			C:\Program Files\Common Files
$CLIENTNAME				Console
$CLASSPATH				.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
$APPDATA				C:\Documents and Settings\user\Application Data
$ALLUSERSPROFILE			C:\Documents and Settings\All Users
$#					0

specialfolderpath("desktop") :			C:/Documents and Settings/user/Desktop
specialfolderpath("temporary") :		C:/Documents and Settings/user/Local 
Settings/Temp
specialfolderpath("system") :			C:/WINDOWS
specialfolderpath("documents") :		C:/WINDOWS/Fonts
specialfolderpath("preferences") :		C:/Documents and Settings/user/My 
Documents

tempName:								C:/Documents and Settings/user/Local Settings/Temp/tmp2


Revlet defaults at startup (run remotely from on-rev server):
===============================================

defaultFolder:	/Applications/Internet Apps/Firefox.app/Contents/MacOS
environment:	browser
the platform:	MacOS
the systemversion:	10.5.7


the globals:

	gRevAppIcon	gRevAppIcon
	gRevSmallAppIcon	gRevSmallAppIcon
	$XRE_BINARY_PATH	
	$XUL_APP_FILE	
	$XRE_IMPORT_PROFILES	
	$XRE_START_OFFLINE	
	$XRE_PROFILE_NAME	
	$XRE_PROFILE_LOCAL_PATH	
	$XRE_PROFILE_PATH	
	$NO_EM_RESTART	
	$MOZ_LAUNCHED_CHILD	
	$MOZ_CRASHREPORTER_STRINGS_OVERRIDE	/Applications/Internet 
Apps/Firefox.app/Contents/MacOS/crashreporter-override.ini
	$MOZ_CRASHREPORTER_DATA_DIRECTORY	/Users/jgay/Library/Application 
Support/Firefox/Crash Reports
	$MOZ_CRASHREPORTER_RESTART_ARG_2	
	$MOZ_CRASHREPORTER_RESTART_ARG_1	
	$MOZ_CRASHREPORTER_RESTART_ARG_0	/Applications/Internet 
Apps/Firefox.app/Contents/MacOS/firefox-bin
	$COMMAND_MODE	legacy
	$SECURITYSESSIONID	6176b0
	$Apple_PubSub_Socket_Render	/tmp/launch-mzR6sW/Render
	$SSH_AUTH_SOCK	/tmp/launch-o9Skcq/Listeners
	$DISPLAY	/tmp/launch-JyiVuA/:0
	$LOGNAME	jgay
	$USER	jgay
	$HOME	/Users/jgay
	$SHELL	/bin/bash
	$TMPDIR	/var/folders/lK/lKqfANrBEKai6m7q-jKrtU+++TI/-Tmp-/
	$PATH	/usr/bin:/bin:/usr/sbin:/sbin
	$#	0

All specialFolderPath() paths are same as when run locally.


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the Use-livecode mailing list