Jump to content

Evaluating placeholder {clipboard} returns "{clipboard}" when clipboard contains image [Fixed 3.6.2 b914]


ericwen229

Recommended Posts

Hello,

 

I'm building a workflow to process text from clipboard and it turns out that if the clipboard contains an image, evaluating placeholder {clipboard} returns the string "{clipboard}" instead of something like an empty string. Everything works well when the clipboard contains plain text (evaluated to itself) or file (evaluated to file name).

 

Basic info:

 

Alfred 3.6 - Build 903

macOS 10.13.2

Edited by ericwen229
Link to comment
Share on other sites

  • 3 weeks later...

@ericwen229 sorry about the slow reply on this - I have been thinking about this.

 

Essentially, workflow streams and objects (and in fact Snippets) work with plain text only, so when using e.g. the Copy to Clipboard object, this is copying plain text to the clipboard (never rich text). I think you're right that {clipboard} should be evaluated to an empty string if there is no matching compatible plain text string. I'll get this sorted in the next release:)

 

Cheers,

Andrew

Link to comment
Share on other sites

  • Andrew changed the title to Evaluating placeholder {clipboard} returns "{clipboard}" when clipboard contains image [Fixed 3.6.2 b914]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...