kjaymiller/Bunch_Alfred

Get bunch folder from preferences

Closed this issue · 1 comments

The user has the ability to change where Bunch stores its files, so you need to be able to follow that preference. You can retrieve the location of the current folder using:

 defaults read com.brettterpstra.bunch configDir

The command takes a second to run, which can put an annoying delay in script execution, but I don't currently have a better solution.

I was able to pull the information and have it set as a environment variable for Alfred. This can be updated using bsettings:refresh