dockutil | command line tool for managing dock items
kandi X-RAY | dockutil Summary
kandi X-RAY | dockutil Summary
dockutil is a command line utility for managing macOS dock items. It is currently written in Swift.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dockutil
dockutil Key Features
dockutil Examples and Code Snippets
Community Discussions
Trending Discussions on dockutil
QUESTION
I downloaded a command line utility called dockutil
which allows me to edit the Dock.
The command dockutil --remove 'AirDrop'
works correctly when run from the command line (it removes a folder called "AirDrop" from the Dock). However I can't get it to run from within AppleScript.
I tried do shell script "dockutil --remove 'AirDrop'"
, but I got error "sh: dockutil: command not found" number 127
. I also tried saving it as a file and making it executable, but that didn't work either.
How do I run this command from within AppleScript?
...ANSWER
Answered 2019-Dec-16 at 12:11If the target file being executed is not within the PATH
used by the do shell script
command, which is /usr/bin:/bin:/usr/sbin:/sbin
, then you need to use its fully qualified pathname, e.g.:
QUESTION
So I'm running a command line Swift tool to manage my dock.
The command dockutil --remove #{appName}
works when doing it straight on the shell but when I execute it from within Swift I get this error.
ANSWER
Answered 2019-Oct-31 at 14:28There's no good documentation by Apple with all error codes (as far as I know), but there is a very useful site: OSStatus.com
According to this site, code 3587 is only used once by Apple: NSExecutableLoadError
in the Foundation framework.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dockutil
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page