shawnrice / alfred-2-caffeinate-workflow

An Alfred2 workflow to control the system caffeinate utility (prevents sleep).
MIT License
172 stars 8 forks source link

Doesn't work on 10.9 #2

Closed chrisyip closed 10 years ago

chrisyip commented 10 years ago

Got this error:

[ERROR: alfred.workflow.action.script] Code 0: cat: $HOME/Library/Application Support/Alfred 2/Workflow Data/com.shawn.patrick.rice.caffeinate.control/preferences: No such file or directory

There's no com.shawn.patrick.rice.caffeinate.control/ under Alfred 2/Workflow Data/.

shawnrice commented 10 years ago

This is strange as it is working perfectly for me on 10.9.

There might be a quirk with your expansion of the "$HOME" variable. I escaped a few things on the scripts that might possibly fix it for you. Try to download the new version of the Alfred Workflow from Packal or just clone this repository.

If the new version doesn't work, then try to create a workflow that has a keyword that goes to a bash script that has the only line: echo "$HOME" and then put that to an output notification and let me know what it says.

So, let me know if this fixes it.

chrisyip commented 10 years ago

Works now!

Thank you!

shawnrice commented 10 years ago

Glad it works.