Jump to content

vitor

Community Hero
  • Content Count

    3,445
  • Joined

  • Last visited

  • Days Won

    244

vitor last won the day on May 21

vitor had the most liked content!

About vitor

Contact Methods

  • Twitter
    https://twitter.com/vhgalvao
  • Website URL
    http://vitorgalvao.com/

Recent Profile Visitors

16,173 profile views
  1. I you’re saving the output of the command as a variable just so you can echo -n and not get a newline, it’s redundant. Do: echo -n "$(python3 ~/icloud/python_projects/PassGen/xkcd_password_generator.py)" And you’ll do the same in a single line without needing to save the output. Alternatively: python3 ~/icloud/python_projects/PassGen/xkcd_password_generator.py | tr -d '\n' Which will run your command and then strip the newline. Another option is to output the result from the python script directly without the newline, or use Alfred’s Transform Utility to strip whitespace.
  2. Alfred won’t help you there, I’m afraid. What you’re asking for is too specific for Alfred’s feature set, you’ll need something that works on the OS level.
  3. Which is a dead giveaway that’s not where the issue lies. The problem may have started at the same time you installed Workflows, but chances are that was a coincidence. Your issue is bound to be somewhere else on your system.
  4. This has been asked and answered multiple times. The issue is Firefox itself, which doesn’t make this easy.
  5. Not if you give it the -stdin flag. It’s not on the page I linked, but you’ll find it in man textutil. Fair enough. I was making the distinction at what people write by hand. We don’t expect to (and mostly can’t) tinker with RTF code directly after it has been pasted, though we do with HTML. True. I also did something like that in MarkdownTransform. Since I’m already getting the HTML code from the Markdown anyway, I’ve just added a few styles and told textutil to convert from HTML to RTF. I also have note that I fake ⌘V to paste the RTF text, because passing it through Alfred, even if saying to paste as Rich Text, gets us plain text with the RTF syntax showing.
  6. Welcome @eiselch, HTML is just plain text, so “paste HTML” wasn’t making sense to me. I checked the Typinator page, and what they say is the feature is an expansion format described in HTML. It still outputs rich text, it’s just the input that is HTML. This could be faked with a Workflow by using textutil to convert from HTML to RTF, though I agree this would be best supported natively in the snippets feature.
  7. Not with Alfred alone, no. By design, it only runs things when you tell it to. You may tell it to do it when the Mac wakes from sleep, but you’ll need another app to discern when that is, and have that invoke Alfred.
  8. Preferences → Profiles → (pick whichever is yours) → Shell → When the shell exits: (change this).
  9. Update. Added support for user-specified timer names. Pinging @CuteCat since you’ve specifically asked for that feature. It was coded by @gregschroeder. To use the feature, you need the latest version of the app, so run :sandwichtimerupdateapp in Alfred to get it (will silently replace the one in /Applications). To use in Alfred, add more text (e.g. timer 5 This will be the timer name). To update to the latest version of the Workflow, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.
  10. Welcome @mrteacherman123, Alfred Preferences → Appearance → Options (bottom left) → Show Alfred on (middle right) → default screen.
  11. This can be accomplished with a Workflow. Use a Run Script Action with default options and code: open -ga 'Safari' 'https://example.com' Replace Safari with the browser you want and https://example.com with the relevant Workflow, but keep in mind Chrome doesn’t support being opened in the background due to a long-standing bug.
  12. Easy to accomplish with a Workflow. Use a Run Script Action with language /usr/bin/osascript (AS) and code: tell application "System Events" to set web_browser to name of first process whose frontmost is true tell application web_browser to open location "https://example.com" What you’ll use instead of https://example.com depends on what you were doing in the first place.
  13. Welcome @jgerman, Does this only happen with Emacs? If so, that’s where you need to concentrate your efforts. Alfred just asks the system to bring the app to the front; doing it is the job of the system.
×
×
  • Create New...