Thursday, October 9, 2008

Extract files from the gadget package

Did you know that on Windows you can extract a file that's packaged within your Desktop gadget? The following code extracts a file (called sample.xml in this example) to the temporary folder.
  var tempFile ="sample.xml"); // extract the file
debug.trace(tempFile); // tempFile contains the path of the file
All temporary files created by are cleaned up automatically when the gadget is closed.

Note: Only on Windows do Desktop gadgets have access to the file system.

Posted by Stefan Van Damme, Gadget Developer

Link - from Google Desktop APIs Blog
Congratulations to Andreas Horlacher!
Tip: Put a gadget in its place
Slideshow for Facebook
Tip: Improve resizing performance

No comments: