rknightuk / alfred-workflows

My Alfred Workflows
https://rknight.me/alfred-workflows/
210 stars 12 forks source link

Hotkey List: local const workflowPath in script.js #10

Closed lisaross closed 8 months ago

lisaross commented 3 years ago

Just wanted to leave a note here for anyone else - to make this work you need to modify the const workflowPath in line 1 to your local file path ie:

const workflowPath = '/Users/lisaross/Dropbox/Lisa Inbox/App Stuff/Alfred.alfredpreferences/workflows';

Found in debug: [13:58:24.888] ERROR: Hotkey List[Script Filter] Code 1: ./script.js: execution error: Error: Error: Can't get object. (-1728)

Thanks @rknightuk for all your gorgeous and super useful workflows!

rknightuk commented 3 years ago

I thought I'd done that to a workflow variable, will get that updated when I get chance. Thanks!

CullumAttwell commented 1 year ago

Thanks for all your workflows rknightuk - I've been downloading a few tonight and they have been really useful. I wondered whether you ended up getting round to this? I have checked the workflow but am a bit stuck with how to add the above information.

*Edit: I figured out how to sort this out based on lisaross's comment (thank you). I thought it might be useful to document more clearly what needs altering for those, like me, who are less tech-savy.

  1. Double click on the "Run Script" item.

  2. Open up the folder

    image
  3. Open the script (you'll need an app like BBEdit to do this:

    image
  4. Copy the file path of where this is stored up until "workflows".

  5. Copy the file path into the first line: "const workflowPath = '/Users/XXX/Dropbox/Lisa Inbox/App Stuff/Alfred.alfredpreferences/workflows';", where XXX should be your User name.

    image
rknightuk commented 8 months ago

This is now fixed.