This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 210
App
jeff-h edited this page May 17, 2014
·
1 revision
// Quit application
macgap.app.terminate();
// Activate application (bring to front)
macgap.app.activate();
// Hide application
macgap.app.hide();
// Un-hide application
macgap.app.unhide();
// System bell
macgap.app.beep();
// Bounce Dock icon of applications
macgap.app.bounce();
// Open URL in default browser
macgap.app.open("http://google.com");
// Launch application
macgap.app.launch("TextEdit");
// Set a custom user agent string
macgap.app.setCustomUserAgent('new user agent string');
// Get the system idle time. This example outputs the idle time to the console once per second.
window.setInterval(function(){
console.log( macgap.app.systemIdleTime() );
}, 1000);
rtat.net