68:87: execution error: System Events got an error: AppleEvent timed out. (-1712)
This issue is coming when i restart my system and app throw error.
Mac 10.11.6 node 5.8.0 auto-launch 5.0.0
Error: Command failed: osascript -e ' tell application "System Events" to set isUIScriptingEnabled to UI elements enabled if isUIScriptingEnabled = false then return false end if return true' 68:87: execution error: System Events got an error: AppleEvent timed out. (-1712)
Hmmm I have no idea. Can you show us how you're calling auto-launch?
var AutoLaunch = require('auto-launch');
var appLauncher = new AutoLaunch({ name: 'productivityOne', isHidden : true, path : process.execPath.split('.app/Content')[0] + '.app', mac:{useLaunchAgent:true} });
appLauncher.isEnabled().then(function(enabled){ if(enabled){ console.log("\nApp AutoLaunch is already enabled\n"); return; } console.log("\nEnabling App Auto launch\n"); return appLauncher.enable(); });
Could you try with version 5.0.2 and remove path : process.execPath.split('.app/Content')[0] + '.app',?