-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hs.preferences - Property List Editor with NSKeyedArchiver support #1498
Comments
FYI - It looks like @asmagill has already played around with |
@asmagill - I'm considering having a play with your |
I wonder if this (i.e. |
Thank you so much @cmsj for giving us
hs.plist
- HUGELY appreciated!Apologies for the delay in testing it - I've only just had a chance to have a proper play.
hs.plist.read
andhs.plist.write
are awesome - and seem to work as advertised.However, I'd love something like
hs.plist.edit(filepath, key, value)
, so that we can easily edit existing plist files (similar to how thedefaults
command line tool works). I'd imagine most Hammerspoon users that make use ofhs.plist
will be using it to modify macOS Preferences - so I feel like an edit feature would be really handy. As you say yourself in the documentation, it's a little bit risky reading, modifying then re-writing a plist via Lua.Also, as discussed here, given that a lot of macOS Preferences files now use
NSKeyedArchiver
, having support to be able to unarchiver then re-archive preferences would also be amazing. I have no idea how complicated this is to do however.Thoughts?
Thanks again for all your amazing work!!
The text was updated successfully, but these errors were encountered: