I'm running a command file which enables me to double-click. File name: Documents.command
runs a process in the background without having a terminal window open; therefore, I'm using & pkill -f -a Terminal
to close the terminal app.
It was working before, but now my Documents folder opens more than once. Meaning, if I close the folder within 10 seconds, it opens up again.
script code:
#!/bin/sh
open ~/Documents
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
nohup osascript -e 'do shell script "'"$DIR"'/Documents.command"' & pkill -f -a Terminal
The log file I've recorded displays the following errors:
ScriptingAdditions/Digital Hub Scripting.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition "/System/Library/ScriptingAdditions/StandardAdditions.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/pC Finder Injector.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/SIMBL.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
syntax error -1757. Couldn't get error text because of error -1757.
What seems to be the problem here?