Jump to content
aik099

Using PDF files as script filter feedback result

Recommended Posts

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.

Share this post


Link to post
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.

Share this post


Link to post

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):

2019-10-10_1354.png

Edited by aik099

Share this post


Link to post
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.

Share this post


Link to post

I've contacted Trickster developers as well. Waiting for their answer.

 

But from Alfred workflow side:

 

  1. what file types are allowed to be used as extensions in "Script Filter" feedback results?
  2. is there a way to convert PDF into PNG on the fly?

Share this post


Link to post
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):

image.png.ae3a0bbc86db4502c18abb07a05b412e.png

1 hour ago, aik099 said:

is there a way to convert PDF into PNG on the fly?

 

sips. But PDF should work.

Share this post


Link to post
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 by deanishe

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...