New answers tagged

0

MacOS comes with Tcl/Tk built-in. Mac's python comes with the Tkinter layer to use it, but you can also use it in the shell and X11.


0

It's been years, and this is a work in progress, but I'm working on a zenity “port” to both macOS and Windows. You can get it here: https://github.com/ncruces/zenity/releases Read more: https://github.com/ncruces/zenity On macOS the only dependency is osascript (with JXA, because JavaScript is easier to work with than AppleScript). On Windows there are ...


1

Use ControlPlane to run the following shell script whenever the state of the monitor connection changes: move dock to bottom.sh: #!/bin/bash osascript -e ' tell application id "com.apple.systemevents" tell dock preferences set screen edge to bottom end tell end tell ' Duplicate the file, where you replace bottom with left. Set up ...


4

Not sure about Automator, but you can easily accomplish this in Terminal. find "parent folder" -type d -depth 1 -execdir sh -c 'cd "$1" && zip -r "$1" .' _ '{}' \; find "parent folder" -type d -depth 1 lists all subdirectories of "parent folder" (just run it to see the result) -execdir executes the part up to the \; for each subdirectory found sh -...


0

You need to add: & space To: set end of filePaths to quoted form of POSIX path of thisFile Example: set end of filePaths to quoted form of POSIX path of thisFile & space Another way to resolve this issue is to coerce the list filePaths to a string before it's used in the do shell script command, as after all it does get coerced in the process. ...


Top 50 recent answers are included