node-auto-launch icon indicating copy to clipboard operation
node-auto-launch copied to clipboard

68:87: execution error: System Events got an error: AppleEvent timed out. (-1712)

Open himanshuoodles opened this issue 9 years ago • 3 comments

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)


himanshuoodles avatar Oct 13 '16 12:10 himanshuoodles

Hmmm I have no idea. Can you show us how you're calling auto-launch?

adam-lynch avatar Oct 13 '16 21:10 adam-lynch

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(); });

vivekoodles avatar Apr 24 '17 07:04 vivekoodles

Could you try with version 5.0.2 and remove path : process.execPath.split('.app/Content')[0] + '.app',?

adam-lynch avatar Nov 11 '17 17:11 adam-lynch