Jump to content

jeremycherfas

Member
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    1

jeremycherfas last won the day on January 2 2023

jeremycherfas had the most liked content!

Recent Profile Visitors

2,014 profile views

jeremycherfas's Achievements

Member

Member (4/5)

2

Reputation

  1. Thanks Vitor. That's the kind of encouragement I was hoping for. I'll give it a try.
  2. I have started to use Bike Outliner to, er, outline and there are a couple of Keyboard Maestro macros that make it possible to export from Bike to Markdown and import from Markdown to Bike. These are pretty complicated (to me), but it seems that the bulk of it is running Javascript. I know Alfred can run Javascript, so could I copy the Javascript alone to Alfred and trigger that? Any guidance to how to adapt KM to Alfred gratefully received. Thanks
  3. alfred-smartify-quotes is a very simple Workflow I made to meet a very personal need. It takes selected text and transforms straight quotes into curly, smart, typographical quotes. It also converts two hyphens into an em dash. For me, the replacement text is pasted straight back over the selected text,. You can change that behaviour in the Copy to Clipboard block. I hope someone else finds it useful. Direct download. Jeremy
  4. I made a simple workflow to scratch a personal itch, using Python3 to convert straight quotes to typographical (smart) quotes. (The reverse is easy to find.) I suppose other people may find it useful too. Never having shared a workflow, although I read the introductory thread, I'd like advice on how best to host the workflow and how to create a unique bundle id. Is Github a good place to host the workflow? Or is it better to host on my own website? Thanks Jeremy
  5. I may be missing the point here, but if you are going to type the integer then / then another integer, why not invoke Alfred and type = first? That opens Alfred as a calculator which evaluates whatever you typed and puts it in the clipboard, ready to paste wherever you were at the time. I must be missing the point. Jeremy
  6. Thank you very much. After a couple of tries, that now works perfectly.
  7. Trying to create a file action trigger to rename a file by removing a suffix completely. I'm not sure how to share the actual workflow. Attach files does not permit me to upload the workflow. The filename is of the form "/Users/jeremycherfas/Dropbox/jcn-logs/forno-logs/access.log.2022-04-03" {var:filename} is set to {query} I use a regex to remove the final part and copy the result "/Users/jeremycherfas/Dropbox/jcn-logs/forno-logs/access.log" to the clipboard. I pass the clipboard to Run Script bin/zsh containing mv "{var:filename}" "{clipboard}" I get an error "No such file or directory" I'm sure this is something silly, but I cannot figure it out. Debug output: ``` [20:54:36.938] Remove date[File Action] Processing complete [20:54:36.944] Remove date[File Action] Passing output '/Users/jeremycherfas/Dropbox/jcn-logs/forno-logs/access.log.2022-04-03' to Replace [20:54:36.945] Remove date[Replace] Processing complete [20:54:36.946] Remove date[Replace] Passing output '/Users/jeremycherfas/Dropbox/jcn-logs/forno-logs/access.log' to Copy to Clipboard [20:54:36.946] Remove date[Copy to Clipboard] Processing complete [20:54:36.947] Remove date[Copy to Clipboard] Passing output '/Users/jeremycherfas/Dropbox/jcn-logs/forno-logs/access.log' to Run Script [20:54:36.961] ERROR: Remove date[Run Script] mv: rename {var:filename} to {clipboard}: No such file or directory [20:54:36.966] Remove date[Run Script] Processing complete [20:54:36.967] Remove date[Run Script] Passing output '' to Debug [20:54:36.967] Remove date[Debug] '', { filename = "{query}" ```
  8. Sure, and I do appreciate the time you and others here take to help us out. I have now raised an issue with the person who made the workflow, at https://github.com/mcskrzypczak/Alfred2-Workflows For my information, when you say there is no error in the log, I expected to see the content of the output between the single quotes? Is that expectation wrong? Thanks again.
  9. OK. I'll do that. I did in fact mention the name of the workflow, as you indeed quoted.
  10. I suspect I am having a similar problem after upgrading to a new iMac. Specifically, the workflow Copy name [1.6] has /usr/bin/python as the Language variable. $PATH does contain the paths to Python in /opt/Anaconda but workflow fails and the log shows: ```` [12:58:37.371] Copy name [1.6][Hotkey] Processing complete [12:58:37.379] Copy name [1.6][Hotkey] Passing output '' to Run Script [12:58:37.452] Copy name [1.6][Run Script] Processing complete [12:58:37.456] Copy name [1.6][Run Script] Passing output '' to Post Notification [12:58:37.457] Copy name [1.6][Run Script] Passing output '' to Copy to Clipboard ```` How might I ensure that the workflow uses the correct install of Python? Thanks.
×
×
  • Create New...