hpiwzqda Posted October 10, 2019 Posted October 10, 2019 Hi, I'm trying to get filters out of the "Trickster" app via AppleScript. For unknown reasons filter icons in Trickster are PDF and not PNG files. When attempting to build script filter feedback from them I see broken image icons instead (blank square icon). Not sure how to fix this. Thank you.
deanishe Posted October 10, 2019 Posted October 10, 2019 3 hours ago, aik099 said: Not sure how to fix this. We can’t tell you what's wrong with a script or workflow we’ve never seen. Please upload your workflow somewhere and post a link to it.
hpiwzqda Posted October 10, 2019 Author Posted October 10, 2019 Here is the workflow: https://www.dropbox.com/s/mbpgja97bsfvy37/Get latest files from Trickster.alfredworkflow?dl=0 Relevant script filter looks like this (see attached).
hpiwzqda Posted October 10, 2019 Author Posted October 10, 2019 (edited) In above code the "fileicon" results in PDF file type icon being shown in Alfred results. If I change "fileicon" into "filetype" or completely remove "type" attribute from "icon" node I'll get this (see the broken icon): Edited October 10, 2019 by aik099
vitor Posted October 10, 2019 Posted October 10, 2019 7 hours ago, aik099 said: For unknown reasons filter icons in Trickster are PDF Somebody will know the reason. Have you tried contacting the Trickster developers? Maybe it’s a bug and you’re trying to build a workaround for something that will be fixed on a newer version.
hpiwzqda Posted October 10, 2019 Author Posted October 10, 2019 I've contacted Trickster developers as well. Waiting for their answer. But from Alfred workflow side: what file types are allowed to be used as extensions in "Script Filter" feedback results? is there a way to convert PDF into PNG on the fly?
deanishe Posted October 10, 2019 Posted October 10, 2019 6 hours ago, aik099 said: If I change "fileicon" into "filetype" or completely remove "type" attribute from "icon" node I'll get this (see the broken icon): It works for me if I remove the type attribute (which is the correct configuration): 1 hour ago, aik099 said: is there a way to convert PDF into PNG on the fly? sips. But PDF should work.
hpiwzqda Posted October 10, 2019 Author Posted October 10, 2019 Thanks @deanishe, that is exactly what I needed. It seems that there is no "type" attribute value that works the same as if "type" attribute of the <icon> tag isn't specified. I was using https://www.alfredapp.com/help/workflows/inputs/script-filter/xml/ for documentation.
deanishe Posted October 10, 2019 Posted October 10, 2019 (edited) 6 minutes ago, aik099 said: It seems that there is no "type" attribute value that works the same as if "type" attribute of the <icon> tag isn't specified. That is correct. Omit type if you are specifying the path to an image file you wish to show. Use type="fileicon" to show the icon of the file you specify (e.g. an application's icon), and type="filetype" if you are specifying a UTI (e.g. public.folder). Edited October 10, 2019 by deanishe
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