Adobe 65009963 Scripting Manual page 169

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
System object
s y st e m
Description
The System object provides access to attributes found on the user's system, such as the user name and the
name and version of the operating system. It is available through the
Example
a l e r t ( " Y ou r O S i s " + s y s t e m . o s n a m e + " r u n n i n g v er s i o n " + s y s t e m . os v e r s i o n ) ;
c o n f i r m ( " Y o u a r e : " + s y s t e m . u s e r N a m e + " r u n n i n g o n " + s y s t e m . m a c h i n e N a m e + " . " ) ;
Attributes
Attribute
Reference
u s e r N a m e
"System userName attribute" on page 170
m a c h i n e N a m e
"System machineName attribute" on page 169 The name of the host computer.
o s N a m e
"System osName attribute" on page 170
osVe rsio n
"System osVersion attribute" on page 170
Methods
Method
Reference
"System callSystem() method" on page 169
c a l l S y s t e m ()
System callSystem() method
s y st e m . c a l l S ys t e m ( c m d L in e T o E x e c u te ) ;
Description
Executes a system command, as if you had typed it on the operating system's command line. Returns whatever
the system outputs in response to the command, if anything.
In Windows, you can invoke commands using the
to run in escaped quotes (
\ " . . . \ "
user:
v a r t im e S t r = s y s t e m . c a l lS y s t e m ( " c m d . e x e / c \ " t i m e / t \ " " ) ;
a l e r t ( " C u r r e n t t im e i s " + t i m e S t r ) ;
Parameters
c m d L i n e T o E xe c u t e
Returns
The output from the command.
System machineName attribute
s y st e m . m a c h i n e N a m e
switch for the
/ c
). For example, the following retrieves the current time and displays it to the
A string containing the command and its parameters.
global variable.
sy s te m
Description
The current user name.
The name of the operating system.
The version of the operating system.
Description
Execute's a command on the system's command line.
command, passing the command
c m d . e x e
System object
169
169

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents