0.0.1 • Published 8 years ago
mac-active-url v0.0.1
mac-active-url
Get the URL of the document represented in the focused window.
var getActiveUrl = require('mac-active-url').getActiveUrl
console.log('Active URL', getActiveUrl())
Test it out:
var getActiveUrl = require('mac-active-url').getActiveUrl
setInterval(function () {
console.log('Active URL', getActiveUrl())
}, 1000)
// Set this running then focus some windows such as the Preview app
0.0.1
8 years ago