Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

How can I make OS X Stickies *custom* colors?

I did some reverse engineering and wrote a SIMBL plugin (installed via MacForge; latest beta supports macOS 14.4) to allow for custom colors in Stickies.app: StickerColorPicker. The plugin is open ...
shishkabibal's user avatar
0 votes

Why are there 2 mount points for 1 partition in OSX?

Simplest/safest = reboot macos Eject the drive. reboot should clear the folder from /Volumes remount the drive and it should be fine. Please dont run sudo rm -rf. You are telling macOS, as admin/root ...
paul's user avatar
  • 1
0 votes

mac os x byobu vertical split using iTerm, tmux, zsh

Reported this issue on tmux repo, maybe they need to fix something. https://github.com/tmux/tmux/issues/3985
morhook's user avatar
  • 152
1 vote

How do I add a progress bar to a slideshow in Keynote?

This is an old question, but it may still be relevant for people searching for a progress bar for Keynote. Years ago, I programmed an AppleScript app called Keynote Progress Bar that automatically and ...
Andrea Alberti's user avatar
0 votes

Remove Spotlight icon from the menu bar

For macOS Ventura 13, Sonoma 14 Change Control Centre settings on Mac Control Centre Scroll down to "Menu Bar Only" section: Select "Don’t Show in Menu Bar" next to Spotlight
Ivan Chau's user avatar
  • 1,533
0 votes
Accepted

Copy/paste: how to remove line breaks?

I found this post because I had the same problem. Since then I've been able to solve it by using the Text Workflow app (paid from the Mac App Store - https://www.gtrigonakis.com/textworkflow) together ...
Mathew Lu's user avatar
0 votes

Give python program location services access via command line on MacOS

Check if you have other python version installed with Brew: brew list | grep -i python Remove them with this command: brew remove <package name> After that default python from Apple will be ...
Mikhail Pikman's user avatar
0 votes

Visual studio code integrated terminal path different than normal terminal

This was driving me insane. This worked for me: "terminal.integrated.shellIntegration.enabled": false It supposedly "determines whether or not shell integration is auto-injected to ...
gojira's user avatar
  • 1
0 votes

Are there keyboard shortcuts to scroll to the top and bottom of a document?

Memorizing the UI patterns "might" be easier than memorizing the keyboard combinations. Desktop Applications Direction The Arrow key moves anything that can be pointer focused in a given ...
tobius's user avatar
  • 101
0 votes

How can I open a URL in Google Chrome from the terminal in OS X?

The current syntax for this would be: /usr/bin/open -a "/Applications/Google Chrome.app" --url 'https://google.com' If you want to have a few more options... -g, --background | opens ...
Jeremy Francis Hall's user avatar
0 votes

Looking for PrtScrn button on Apple keyboard when RDPing to Windows

Looking this up for a while, using command+shift+s (equivalent of Win+Shift+S) opens the snipping tool the same way the print key would if you haven't overriden the shortcut with another application.
Dari4sho's user avatar
2 votes
Accepted

How can I extract .rar files on the Mac?

tar is built into macOS and supports most archive formats, including rar. It's bsdtar using libarchive. In Terminal, type: tar -xf archive.rar If you want it verbose: tar -xvf archive.rar More ...
axu2's user avatar
  • 129
0 votes

Trust alert immediately disappears when connecting iPad to Mac

Well, I was able to work around this issue by repeatedly hitting the return key on my keyboard as fast as I can while, at the same time, connecting my iPad. Not a good solution though.
goofy4224's user avatar
2 votes

My iTerm font seems to dark for me

For me, I had to change the "Color Presets.." under the Color tab and that fixed it.
ski's user avatar
  • 21
3 votes
Accepted

Issue when creating a new user and group on macOS

I think your problem is that despite what the linked post says, a mere dscl . -create /Users/username is insufficient to create a working user. For one thing, it is missing a UID (attribute UniqueID). ...
Michael Schmitt's user avatar
1 vote

Universal command line unarchiving tool on a Mac

tar is built into macOS and supports most archive formats, including rar. Just tar -xf archive.rar More details: https://support.apple.com/guide/terminal/compress-and-uncompress-file-archives-...
axu2's user avatar
  • 129
2 votes

How can I make Firefox or Chrome ignore the system time on Mac OS?

No need for virtual machines. If you are testing something manually, e.g. in Chrome, you can change time information temporarily in Dev tools (F12) -> kebab menu icon -> More tools -> ...
Destroy666's user avatar
  • 7,008
0 votes

Avoid unwanted path in Zip file

If you want the contents of a folder zipped up into an archive in your current directory it's simply env -C 'path/to/directory' zip -r "$PWD/name.zip" . If you want that folder to exist in ...
Hashbrown's user avatar
  • 3,039
0 votes
Accepted

Shell script gives "command not found" but command works in terminal

That are two different environments, interactive and non-interactive. They use different initialization files. Take a look at ZSH: .zprofile, .zshrc, .zlogin - What goes where?
M. Behrens's user avatar
  • 1,032
0 votes

How do delete highlighted text in a command line

solution 1 Use ConEmu - https://conemu.github.io/ It allows you to delete selected text (but it requires you to: use keyboard shift+arrow to select, not mouse select (you can select with mouse, ...
Nor.Z's user avatar
  • 145
0 votes

What's the meaning of link#4 in mac's route table?

The digits after the link# prefix is the network interface index. Every network interface has a unique index and a unique name. See ifconfig -v. % ifconfig -v | grep $'^[^\t]' lo0: flags=8049<UP,...
youfu's user avatar
  • 101
0 votes

Running App as root using Apple Script?

Your first try will do what you want if you background the command. This is addressed in TN2065: do shell script in AppleScript, and looks like this: do shell script "/Applications/MyApp.app/...
Chris N's user avatar
  • 111
0 votes

Speed up OSX Spaces by reducing or eliminating the animation delay?

After a little experimenting on my 14 inch M3 MacBook Pro on Sonoma 14.4.1, I found a technique to swiping that makes it switch near-instantly. The trick is a nice long swipe. The problematic ...
Jimmy's user avatar
  • 380
0 votes

Creating x86/amd64 Debian10 Vagrant guest on M1 MacBook host

I would be very curious if anyone has experimented with using Moby HyperKit (which is made from xhyve) with the vagrant-xhyve plugin. In the meantime, I have had success at getting vagrant-qemu ...
Joaquin Menchaca's user avatar
1 vote

SSH from macOS with password in one line?

You can also set the commandline ssh key to have the password entered, aka a session. This is useful on say GIT to not have to type the password out multiple times with a git//:github.com/repo ssh-add ...
Michael's user avatar
  • 11
0 votes

Accessing file association information from shell in macOS Sonoma (14.3.1)

I don`t know how to change default program for file extension but I can share my experience how to drop default program for specified file using extended attributes of APFS filesystem. I had a problem ...
Sergei's user avatar
  • 101
0 votes

The item “Xcode” can’t be moved to the Trash because some of its extensions are in use

Open a terminal and execute ps aux | grep 'Xcode.app' This will list any plugins in use, and you can kill the tasks.
Stuart Carnie's user avatar
1 vote
Accepted

How to see sub-items of startup programs on Mac OS X Sonoma 14?

The two examples you show are of background tasks which will automatically be started or enabled at login. Those tasks support the operation of applications you have installed - in these examples, ...
Gilby's user avatar
  • 383
2 votes

How can I make Firefox or Chrome ignore the system time on Mac OS?

Put your testing environment into a virtual machine, for example UTM or Parallels, and disable time synchronisation with the host/internet.
M. Behrens's user avatar
  • 1,032
0 votes

MacVim doesn't open a window (except from Terminal, and then only one window)

Try running this from the terminal to test: /Applications/MacVim.app/Contents/MacOS/Vim (Testing MacVim.app/Contents/bin/gvim was a red herring.)
J T's user avatar
  • 1
0 votes

Previous version of CGAL with Macports: "Error: Unable to execute port: Could not open file"

Did you changed the permissions of the folder where the Portfile lives in? cd /tmp svn co -r 102134 http://svn.macports.org/repository/macports/trunk/dports/gis/cgal sudo chmod -R 755 cgal cd cgal ...
diogob003's user avatar
0 votes

Speed up OSX Spaces by reducing or eliminating the animation delay?

https://www.youtube.com/watch?v=V8k1GCn2604 I made a simple video tutorial if anybody is still looking for a solution.
Erdinç Coşkun's user avatar
0 votes

How can I play a sound from the command line in macOS?

afplay is good. but ffplay is better. Install ffmpeg and you can use ffplay to play audio and video. sometimes afplay can not play some audio but ffplay can. You would love it.
4t8dds's user avatar
  • 101
0 votes

Ping more than 56 bytes on macOS

It is down to the host you pinging too mbp ~ % ping -s 1400 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 1400 data bytes 76 bytes from 8.8.8.8: icmp_seq=0 ttl=117 time=12.969 ms wrong total length 96 instead of ...
snn1024a's user avatar
-2 votes

How can I make OSX remember the desktop assignment of different chrome windows

I have solved this issue by developing a small personal module for Hammerspoon, based on the hs.spaces package, that cycles through every space and stores the windows and their sizes on each space. ...
tplobo's user avatar
  • 1
0 votes

Macbook: CapsLock remapping to Command in system and Right Command remapping to Control in iTerm2 makes transitive remapping, workaround?

The problem did indeed come down to system remapping CapsLock to some weird key. I found this question, which helped me see which key CapsLock was remapped to (by using defaults -currentHost read -g). ...
l1tsolaiki's user avatar
0 votes

SSH to MacOS refuses public key authentication

I was on Windows so maybe someone will find this helpful as I was running into a very similar issue trying to ssh into a windows computer from my macbook. ssh-copy-id doesn't work in this situation ...
Jay Man's user avatar
0 votes

RTL8153 driver for MacOSX

My network USB adaptor uses the RTL8153B, upon waking up from sleep, my MacBook Pro Sonoma 14.4.1 (Intel chip) will always use a self-assigned IP address, and this will cause it to lose network ...
Tom S's user avatar
  • 1
0 votes

How do I tell Homebrew to stop running brew update every time I want to install something?

Here are two other options (one mentioned in one of the other answer's comments) and the other is my own addition: Option 1 Add export HOMEBREW_NO_AUTO_UPDATE="1" to your ~/.zshrc or ~/....
matronator's user avatar
0 votes

ffmpeg creates out-of-sync and glitchy audio when using concatenate filter to cut segments of video

Update: I've never liked to encode with "odd" inputs. Half seconds or resolution's WxH. I used images for the video. Generation is fine, but use 3 instead of 2.5. I know that -framerate 1/3 ...
JayCravens's user avatar
0 votes

Cmd-Tab suddenly stopped working, and my Dock is unresponsive, what do I do?

Open the Activity Monitor; locate the Dock & then in the top bar click the stop button with an X icon. The dock will close & then reopen in a few seconds.
Catto's user avatar
  • 186
0 votes

Where does atrun log on a mac?

Turns out it logs to /var/mail/ My issue was giving full disk access to atrun
Steve Hammond's user avatar
0 votes

Is there a macOS command line tool for converting eps or ps files to pdf?

(This is sort of a combination of the answers from @dmaclach and @luckman212.) pstopdf --- This is a Ventura 13.x utility, which apparently is not available in Sonoma 14.x. I tried it, but it filled ...
giardia's user avatar
  • 123
1 vote

Proxy specific windows within same application on MacOS

In general this is not possible. In order to use a proxy the application needs to be told which proxy to use. That means that A) the application must support proxy use and B) if you need different ...
Tonny's user avatar
  • 31.7k
0 votes

Remove keyboard layout from OS X leaving custom layouts only

On command line, a method that works for me on 14.4.1 and has been working for a few major versions already: Get the XML snippets for the keyboard layouts you want to keep: defaults export com.apple....
kastauyra's user avatar
  • 101
4 votes

exFAT for mechanical spinning external HD as cross-platform backup?

I also read exFAT is optimized for flash memory / SSD. APFS is also optimized for SSDs and performs badly when used on spinning drives. Is that the case for exFAT too? What exactly makes exFAT ...
grawity_u1686's user avatar

Top 50 recent answers are included