Hey Sean,
Did you try doing regular ruby string interpolation for the date piece:
time = DateTime.now
time = time.strftime("%Q")
`screencapture -tpjg $SCREENSHOTS_DIR/#{time}.jpg`
Let me know if that works for you.
God Bless You,
JP
On 06/16, Sean Mackesey wrote:
> This command works properly when I run it from *pry* but doesn't work from
> triggered with a map in the Keymandorc:
>
> *`screencapture -tjpg $SCREENSHOTS_DIR/$(date +%s).jpg`
> *
>
> It invokes screencapture correctly and takes a picture, but something is
> going wrong when saving the file-- it just doesn't show up. I think it has
> to do with the *$(date +%s)* part. I thought the problem might be that I
> normally use zsh and that Keymando was using bash, but testing the command
> out in a bash prompt showed that it worked. Any ideas? As a side note, it
> would be nice to have access to a log of some kind for debugging issues
> like this.
>
> --
> You received this message because you are subscribed to the Google Groups "Keymando" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
keymando+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>