Questions tagged [plist]

A structured text file containing XML formatted properties. It also can be encoded as a binary-format file.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How do I write to a plist with defaults?

I've been googling around, reading documentation, but for the love of me cannot really figure out how to write to plist files on Catalina using defaults. I can easily do these changes: defaults write ...
user avatar
0 votes
1 answer
44 views

Jenkins Slave on Mac Mini doesn't start with plist

I am trying to setup Jenkins Slave on mac mini. Have created /Library/LaunchDaemons/com.jenkins.ci.plist with following contents <?xml version="1.0" encoding="UTF-8"?> <!...
user avatar
  • 121
1 vote
1 answer
49 views

How can I execute a function defined in bash profile, from a launchD plist file?

I want to run a function defined in my .bash_profile file. How do I execute this function from launchd? Here is my plist file, 'backupIf' is my function. In my launchd GUI editor it tells me 'no such ...
user avatar
  • 304
1 vote
0 answers
40 views

Cannot spoof MacOS version disabling SIP

I've been trying to spoof my Mac version because I need to install an app for school that doesn't support Mac OS Mojave. The application does not have a burned in Info.plist file so I cannot modify ...
user avatar
1 vote
0 answers
16 views

Device specific display overrides possible with plist?

By "device specific" I mean is it possible to implement overrides targeted at individual displays of the same brand and model, identified by their UUID, serial number, alphanumeric serial ...
user avatar
  • 111
0 votes
1 answer
45 views

launchctl gives "Invalid property list" error, but plutil validates "OK"

mariano@host LaunchAgents % plutil local.test.plist local.test.plist: OK But then: mariano@host LaunchAgents % sudo launchctl load local.test.plist Password: /Users/mariano/Library/LaunchAgents/...
user avatar
2 votes
1 answer
88 views

How to make ' and < map to the right keys (force change from ANSI to ISO)?

My separate keyboard (a Das Keyboard 4 Ultimate with ISO layout) has, to my chagrin, a different and erroneous keyboard mapping than the MacBook's built-in (also ISO). The biggest annoyance is the ...
user avatar
  • 247
0 votes
0 answers
27 views

How the location of Music library is stored in defaults?

Problem: I do not understand the output that I'm getting when trying to read the book:1:Location key in the com.apple.AMPLibraryAgent domain: wsee$ defaults read com.apple.AMPLibraryAgent 'book:1:...
user avatar
0 votes
0 answers
25 views

Launchd unable to view contents of connected USB device

When I connect my USB device, I can open a terminal and run a script which returns a directory listing to a file in my home directory called ls.txt. It works and the contents of the script are: #!/bin/...
user avatar
0 votes
1 answer
63 views

How to add version to an Automator service workflow

I have a workflow which is installed as a Service. It is used to call code in my AppleScript applet. The Service has one action: a "Run AppleScript" action. I update the Service quite often ...
user avatar
  • 21
2 votes
0 answers
86 views

How can I add shells to the list in Run Shell Script in the Automator now that the .plist is on the read-only volume?

This question has what seems like a duplicate here, but I have an update. The answer to that question -- how to add a shell to Automator -- is to modify Shells.plist. Specifically: The list of these ...
user avatar
2 votes
1 answer
69 views

plutil directory Value (null) not valid for key path

I'm trying to create a plist but getting the error: Value (null) not valid for key path Architectures.com.apple /usr/bin/plutil -insert "Architectures" -dictionary /Users/test/com.apple....
user avatar
0 votes
0 answers
49 views

How do I edit com.apple.locate.plist

I just got a new iMac running Monterey. I am running into issues with how to change files that I would normally think I could edit and modify if I'm logged in as root or Administrator. One example is ...
user avatar
  • 111
3 votes
0 answers
42 views

How to escape specifying Full Name while setting up an email account with a profile?

I am attempting to set up an email account using a configuration profile created with Apple Configurator 2. My goal is to avoid using User Display Name, so the raw source of a letter would begin with ...
user avatar
0 votes
1 answer
97 views

Reset Messages window size and position to factory default in macOS Big Sur

How do I reset Messages's window size and position to its factory default in macOS Big Sur? I have tried deleting a couple of .plist files (i.e. com.apple.iChat, com.apple.imessage, com.apple.Messages,...
user avatar
1 vote
0 answers
146 views

Is there a way of overriding the application’s info.plist?

The background is that I am trying to run an application in low resolution (VirtualBoxVM). In the past, it was a matter of go to the application, selecting Get Info, and selecting the Open in Low ...
user avatar
  • 2,867
0 votes
0 answers
26 views

Launch Daemon to keep me logged out between certain times

I'm currently trying to figure out how to better control the time I spend on my laptop in the evenings, but for reasons I'll spare you, I'm not having a lot of success. I'm finding that the OSx ...
user avatar
1 vote
1 answer
92 views

What is com.apple.dasd.swapkills.plist?

com.apple.dasd.swapkills.plist Anyone know what this is? I've recently had police delete footage off my phone, am taking them to court. Can't get the videos back as I accidentally overwrote them when ...
user avatar
-1 votes
1 answer
861 views

How to run PlistBuddy

I read here https://medium.com/@marksiu/what-is-plistbuddy-76cb4f0c262d that PlistBuddy is in usr/libexec/PlistBuddy. But it is not there or at least I can't find it. Do you have to install something ...
user avatar
1 vote
1 answer
298 views

Enable/load .plist issue after Big Sur update

I've spent the last day googling this issue and can't get it figured out. Apparently, Big Sur treats load and unload as legacy and you are supposed to use enable and disable however I've tried many ...
user avatar
  • 11
0 votes
0 answers
76 views

plist not running properly after restart

I wrote a worker service that listens for changes in the folder using a filesystemwatcher with C#. After copying the files to a Mac, I created a script and plist file. After running the code below, ...
user avatar
1 vote
0 answers
61 views

Can't change network settings nor modify/delete preferences.plist, absolutely locked down

I'm struggling with this since some months. I don't know if it is a third-party software I installed (been trying to debug with ps aux + lsof on /Library/Preferences/SystemConfiguration/preferences....
user avatar
0 votes
0 answers
55 views

Customizing positions of application windows when launching using plists or defaults

I would like to change the screen position where apps open their windows when launching. I've tried editing the defaults values in several ways, but the changes are never saved. Take for example the ...
user avatar
0 votes
0 answers
64 views

How to set up OpenVPN as a daemon through plist on MacOS

I'm trying to set up my Mac to connect to a VPN service before login so as to connect to my home "corporate" network so I can log in through my Active Directory. I have downloaded OpenVPN ...
user avatar
0 votes
1 answer
135 views

How do I delete a key in a plist if I have the key value?

I have a plist like so: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-...
user avatar
5 votes
1 answer
4k views

Set Detailed Bluetooth Audio Codec preferences in macOS Monterey

TL;DR Preferences set in ~root/Library/Preferences/bluetoothaudiod.plist don't seem to have any effect any more. “Bluetooth Explorer” and defaults(1) commands that messed with these don’t seem to work ...
user avatar
1 vote
2 answers
562 views

macOS defaults write -data

I'm tying to create a plist using "defaults write", unfortunately I can't use plutil or any other utility. HEX data: 62706c69 73743030 d4010203 This is the plist I need to create <?xml ...
user avatar
1 vote
0 answers
348 views

What is com.apple.private.alloy.nearby?

What is com.apple.private.alloy.nearby? It’s found in com.apple.identityservices.idstatuscache.plist
user avatar
0 votes
0 answers
238 views

"fs_snapshot_create: Operation not permitted" when trying to generate new system snapshot on M1 Mac

I follow the instructions in How can I edit "/System/Library/LaunchDaemons/com.apple.nfsd.plist" In Catalina? but failed in generate and tag new APFS System Snapshot. /System/Library/...
user avatar
  • 1
1 vote
2 answers
90 views

Finding the mountpoint of an device in shell scripts

Looking for a correct and simple way to find a mountpoint in a shell script. This working as expected tmp=$(mktemp /tmp/my.XXXXXX) mpoint=$(diskutil info -plist disk1s1 >"$tmp" ; /usr/...
user avatar
  • 8,067
1 vote
2 answers
1k views

How to modify .GlobalPreferences.plist file?

my objective is to create a keyboard shortcut to activate/deactivate the "replace with" on Mac. The idea is to create an automation that can be activated with a shortcut trough services. ...
user avatar
4 votes
0 answers
64 views

How to open .cfg and .tex files with different applications on macOS?

Every time I try to change the default application to open .cfg files, all .tex files are automatically set to be opened with the same application, and vice-versa. This is problematic since I would ...
user avatar
  • 41
3 votes
0 answers
70 views

Where does macOS keep list of unique webcam names that have ever connected?

Use case: I have connected a webcam to my machine some time ago, and it was recognized as Some Company Webcam. At a later time, either because I connected it to a different port, or some other ...
user avatar
  • 234
0 votes
1 answer
548 views

How can I make a LaunchDaemon run an app at login?

I have an internally-maintained macOS app for my macOS Catalina-based enterprise environment which: Must run as root (it accesses a privileged device API) Runs in the background without a UI (via ...
user avatar
  • 163
0 votes
2 answers
473 views

How to delete hidden login iterms from backgrounditems.btm? CML way is prefered

I am running MacOS Big Sur. I installed some apps downloaded online. I found out many apps were started automatically at startup. By googling and examining my system, I figured out they were started ...
user avatar
  • 1,685
0 votes
1 answer
168 views

Cannot remove spotlight item from menu bar with `defaults`

When unchecking "Show in Menu Bar" in System Preferences > Dock & Menu Bar > Spotlight, it removes the NSStatusItem Visible Item-0 from com.apple.Spotlight.plist. When enabling the ...
user avatar
  • 323
1 vote
1 answer
197 views

How to get an ssh tunnel started every time my Mac boots?

I'm trying to run a script at startup to tunnel to a remote host over a random port. I want to leave a cookie on the remote machine to say which port I chose. Something like this: # to make a record ...
user avatar
  • 1,039
5 votes
2 answers
4k views

How can I debug a user LaunchAgent that doesn't seem to start or load with launchctl?

Problem Description Running the following user LaunchAgent does not show a started job, nor does the job log an error or do anything detectable. The Vault commands embedded in the plist file work fine ...
user avatar
  • 273
0 votes
1 answer
254 views

launchd plist with large StartInterval never runs

I'm trying to run a command once per day like so: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www....
user avatar
0 votes
0 answers
113 views

How to run an AppleScript when Mac starts charging in "AC Power"?

I have an AppleScript that has to run when my Mac switches to AC Power and it has to run at regular intervals till it switches back to Battery Power. I have a sample plist file. <?xml version="...
user avatar
0 votes
3 answers
828 views

Mac daemon not able to run bash script

Originally asked on Stack Overflow, but it may be more suited for here. Wherever it’s answered first, I’ll be sure to update the counterpart question with the same answer. I've already checked this ...
user avatar
  • 111
1 vote
0 answers
152 views

I have an incomplete physical encrypted iPhone backup that quit halfway through. Can I rebuild it with pieces from a complete backup?

I have an iPhone 6s running iOS 13.5.x, it was in the middle of a physical backup to my MacBook Pro when the iPhone started to bootloop (shortage of memory, Error 14). I have half of a complete backup....
user avatar
0 votes
1 answer
23 views

Change default indent size in mail.app

My mail.app seems to default to a barbaric 8-space indent-size. Is there anyway to change this (e.g. is there a plist file somewhere that includes this specification)? Thanks!
user avatar
3 votes
1 answer
57 views

Why I cannot extend value column for plist files?

This is what I see and cannot extend the value column at all. Why is it so? Is it a bug or am I missing something?
user avatar
3 votes
1 answer
671 views

'defaults write com.google.Chrome PasswordManagerEnabled true' has no effect

'defaults write com.google.Chrome PasswordManagerEnabled' has no effect. Neither the contents of /Library/Managed Preferences/com.google.Chrome.plist nor that of /Library/Managed Preferences/<...
user avatar
  • 163
1 vote
2 answers
750 views

Display Terminal message on login

I want to display something like ### this is a test ### when a new Terminal window is open (and ideally, in a way that can be disabled easily). On Linux this was straightforward; you'd create a script ...
user avatar
  • 113
1 vote
1 answer
171 views

How to identify plist values for iterm preferences

iTerm2 preferences are stored at ~/Library/Preferences/com.googlecode.iterm2.plist. (see also this post for details). I can print its contents using defaults read com.googlecode.iterm2.plist Is there ...
user avatar
  • 133
2 votes
1 answer
1k views

Delete a specific key value using the defaults delete command line tool

Having the following .plist file: /usr/bin/sudo /usr/bin/defaults read /Library/Preferences/com.apple.systempreferences.plist { DisabledPreferencePanes = ( "com.apple.preference....
user avatar
4 votes
1 answer
1k views

macOS - Difference between /Library/Preferences/ & /Library/Managed\ Preferences

Just for my learning and knowledge purpose why some .plist files are saved inside of /Library/Preferences/ and some others are saved inside of /Library/Managed\ Preferences? Basically what is the ...
user avatar
3 votes
1 answer
600 views

how dangerous is it to give zsh full disk access?

I have a shell script that runs a few (Duplicacy) backup commands. It works fine when I manually run the script from terminal (cd to the directory where it is and then ./backup.sh). To make it run ...
user avatar

1
2 3 4 5
7