Jump to content

Search Alfred Workflows (Alfred 4)


Recommended Posts

17 hours ago, Acidham said:

I would say that would be an enhancement request for Alfred Preferences  @Andrew

 

I never discovered a WF where info.plist was malformed and I expected that Alfred will throw an error in case  info.plist is corrupt. 

 

So far we don't know what exactly caused the issue. Can you ( @raguay.customct) figure out which workflow caused the issue and share the WF with me for further investigation?

You can figure it out in case the enabled workflow cannot be found by alf.

 

It might take a while since I have around 80 workflows on my system.

Link to post

@raguay.customct Added log output when corrupted WF was found. Please install version 0.7.3 and open debugging console in Alfred. The WF path contains the corrupted WF  will be written to the log: 

[09:07:23.292] STDERR: Search Alfred Workflows[Script Filter] Corrupt Workflow found, path: /Users/acidham/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E01D57B-1985-48BA-96CF-BBACDD1219A3/info.plist

 

Link to post
  • 4 weeks later...

In the Workflow, in "Applescript handling Alfred WF UI:" the Applescript code reads as follows:

on run argv
	set theQuery to item 1 of argv
	tell application "System Events"
		keystroke space using control down
		delay 0.1
		keystroke theQuery
	end tell
end run

Here 

keystroke space using control down

should be variable because people tend to have different Alfred triggers 😊

Link to post
On 6/11/2019 at 2:19 PM, Acidham said:

@raguay.customct Added log output when corrupted WF was found. Please install version 0.7.3 and open debugging console in Alfred. The WF path contains the corrupted WF  will be written to the log: 


[09:07:23.292] STDERR: Search Alfred Workflows[Script Filter] Corrupt Workflow found, path: /Users/acidham/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E01D57B-1985-48BA-96CF-BBACDD1219A3/info.plist

 

Sorry, I seamed to have missed this. It's my Pollen workflow. You can download it from my workflows repository on GitHub:  https://github.com/raguay/MyAlfred

 

The workflow loads and runs fine. I've removed it and re-installed it and your workflow still says it's in error. Not sure how to fix it other than recreating it.

 

Edited by raguay.customct
Link to post

Thx @raguay.customct 

 

I installed your Pollen workflow and what when I debug my workflow it seems that plist reader fails here with: 

xml.parsers.expat.ExpatError: not well-formed (invalid token): line 826, column 12

But I cannot find an invalid token in info.plist of Pollen 😕

Link to post
2 hours ago, Acidham said:

it seems that Call External "EditFile" is causing this issue. When I remove that step it works. 

 

Okay, that is suppose to go to My Editor Workflow to call the editor I am using to edit the configuration file. Now, the alf command doesn't show a bad workflow. I had forgotten that I had changed the name of the workflow and I haven't needed to edit those files recently. But, why would calling a workflow that has been renamed as a XML parse error?

Link to post
5 hours ago, Acidham said:

Thx @raguay.customct 

 

I installed your Pollen workflow and what when I debug my workflow it seems that plist reader fails here with: 


xml.parsers.expat.ExpatError: not well-formed (invalid token): line 826, column 12

But I cannot find an invalid token in info.plist of Pollen 😕

 

You sure there are no invisible characters in there?

Link to post
45 minutes ago, deanishe said:

 

You sure there are no invisible characters in there?

 

I quickly checked it but I was not able to find anomalies. I assume it must be somewhere in xml structure but I did not run further investigations. Anyhow @raguay.customct "fixed" it :D

Link to post
  • 4 months later...

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