FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

open()

   
Examples  
void setup() { 
  size(200, 200); 
} 
 
void draw() { 
 
} 
 
void mousePressed() { 
  println("Opening Process_4"); 
  open("Process_4.exe"); 
} 
 

Description   Attempts to open a file or process using the platform's shell. The file parameter is a String specifying the file name and location. When running sketches from the Processing environment the default location for files is the same location as Processing.exe. It's also possible to use a file's absolute path. Be sure to make the file executable before attempting to open it (chmod +x). The args parameter is a String array which is passed to the command line.
   
Syntax  
open(file)
open(args)
   
Parameters  
filename   String: name of the file

args   String[]: list of commands passed to the command line

   
Returns   None or Process
   
Usage   Application
   
 
 






   
 
Updated: Fri Jul 15 16:35:54 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info