cremoer Posted December 28, 2019 Posted December 28, 2019 Hi there, I have a script, where the array for the JSON, which will be passed to Alfred again, looks like so: result.append( {"title": title, "subtitle": arg, "arg": arg, "icon": { "type": "filetype", "???": "???" } } ) What do I have to fill in for the ???, so that files are shown with their correct icons? PDFs with a pdf icon, jpgs with jpg icon and so on... Do I have to assign each individual filetype to an icon or is there a more generic way to achieve this?
vitor Posted December 28, 2019 Posted December 28, 2019 "type": "filetype" is incorrect. What you’re looking for is icon: { "path": <Path to Whatever>, "type": "fileicon" } cremoer 1
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