Jump to content

Programmatically access Alfred's "Local" preferences plist


Recommended Posts

I have a Python script contained in my Workflow that needs to know the state of the enabledFiles setting which is a Local preference, apparently stored at:

 

<path-to-synced-prefs>/Alfred.alfredpreferences/preferences/local/<sha1-hash-of-???>/features/clipboard/prefs.plist

 

I can't figure out how to reverse the hash/ID (sha1?) that identifies the local machine. I assume it's some combination of Machine SN#, name, type, etc. but I can't find documentation on that anywhere. Hoping someone can help...🙂

Link to comment
Posted (edited)

Nevermind—found it!

 

Apparently he exports the following environment variable: alfred_preferences_localhash

 

Still a mystery how it's generated, but it's one that won't necessarily keep me awake at night.

 

Edited by luckman212
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...