Gearbox Sorrows Posted January 23, 2022 Posted January 23, 2022 Hello everybody, I want to build a little workflow that reads a file containing JSON. The documentation does not really help me with that though, because the used example assumes that the content will be written within Alfred. I'm pretty sure there is a very simple solution to this, but I'm not really good with the Terminal etc. cat << EOB {"items": [ { "uid": "desktop", "type": "file", "title": "Desktop", "subtitle": "~/Desktop", "arg": "~/Desktop", . . . . ##### Should be replaced with something like cat << JSON.file ##### or something like that I've attempted editing the .plist file that contains the JSON from within Alfred, but that results in encoding problems. I hope I could get my problem across. Otherwise, I'll gladly provide more information
vitor Posted January 23, 2022 Posted January 23, 2022 It’s cat /path/to/your/json. But bear in mind, it still needs to follow the expected format.
deanishe Posted January 24, 2022 Posted January 24, 2022 15 hours ago, Gearbox Sorrows said: cat << JSON.file ##### or something like that It’s just cat /path/to/file.json
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now