kjaymiller / Bunch_Alfred

Alfred Workflow for Brett Terpstra's Bunch Application
https://brettterpstra.com/projects/bunch/
MIT License
82 stars 6 forks source link

Get bunch folder from preferences #2

Closed ttscoff closed 5 years ago

ttscoff commented 5 years ago

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.

kjaymiller commented 5 years ago

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