Jump to content
Tyler Eich

How to use custom binaries in Alfred workflows?

Recommended Posts

I am trying to use a custom binary in a Script Filter. So far, there is only one issue: When I activate the script filter, the binary is called. If I close Alfred before the binary process terminates, that process begins to steal all of my RAM, as if in an infinite loop. Normally, it runs around 500KB of RAM for a split second; when improperly terminated, it will take up to 2GB until I quit the process with Activity Monitor.

 

My script filter contains this code:

./binary "#{query}"

How can I prevent the process from going haywire every time Alfred closes before the execution completes?

 

(I do have access to the source code, if needed.)

Share this post


Link to post

I am trying to use a custom binary in a Script Filter. So far, there is only one issue: When I activate the script filter, the binary is called. If I close Alfred before the binary process terminates, that process begins to steal all of my RAM, as if in an infinite loop. Normally, it runs around 500KB of RAM for a split second; when improperly terminated, it will take up to 2GB until I quit the process with Activity Monitor.

 

My script filter contains this code:

./binary "#{query}"

How can I prevent the process from going haywire every time Alfred closes before the execution completes?

 

(I do have access to the source code, if needed.)

 

Could you share it or at least tell me what the app does? Perhaps it's something I could try and see if I have the same results

Share this post


Link to post

Could you share it or at least tell me what the app does? Perhaps it's something I could try and see if I have the same results

 

I made some changes to my code and the problem went away. Alfred lets script filter processes finish, regardless of whether their output will be used. It seems to be pure coincidence that the process went haywire at the same time Alfred closed. The issue is resolved.

 

I'll release the source code later, at the same time the workflow becomes available ;)

 

Cheers :)

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...