Jump to content

Bhishan

Member
  • Posts

    146
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Bhishan got a reaction from dfay in Add new feature to turn on/off workflow to allow in Universal Action   
    I have hundreds of workflows and many many Alfred commands. When I selected some text in text editor and went to Universal Action (cmd opt \),
    there are too many actions to choose from and many of them are completely irrelevant. It would be better if there are less items to choose from.
     
    Suggestion:
    Please add a feature so that we can right click a chosen workflow in Workflows tab of Alfred and turn it on or off to be allowed in Universal Action.
  2. Like
    Bhishan reacted to Chris Messina in Sharing some useful simple Universal Action   
    Thanks @dfay! Big fan of your Case Converter! I gently rearranged some of the blocks and added some synonyms in case you're interested (download):
     

  3. Like
    Bhishan reacted to pseudometa in Sharing some useful simple Universal Action   
    Found the time to try out the new 4.5 release and I love it!
     
    Other than a few mentionings in the Thread on the 4.5 beta, I haven't found many showcases of the new Universal Actions feature in this forum. Maybe we could share some usecases? Here is a workflow with a bunch of (mostly simple) Universal Actions:
     
    Text Actions
    - Titlecase
    - Lowercase
    - Uppercase
    - Poor Text (removes formatting)
    - Transform Spaces to Tabs
    - Append to Clipboard (similar to Alfred's built-in function, but with manual hotkey and with universal action)
    - Calculate the sum of all numbers in the selected text. Negative numbers are supported, as are both "," or "." as decimal separators. (Thousand separators are not supported though, as they would create ambiguous cases.)
    - Run Brett Terpstra's SearchLink, which fetches the URL and creates a markdown link of the selected text.
     
    URL Actions
    - URL Encode
    - URL Decode
    - Create compact markdown link
    - Create compact markdown link of all URLs in selecting (actually a Text Action...)
    - SearchTitle: Fetch the title of the URL and create a Markdown link (basically the opposite of SearchLink)
     
    Download: https://drive.google.com/file/d/16Fnkj8wXxxNYlLTcEO-m8YHOobADLZE9/view?usp=sharing
     
     
  4. Like
    Bhishan reacted to vitor in How to open current url in Safari as incognito in Google Chrome?   
    const chrome = Application('Google Chrome') const safari_url = Application('Safari').documents[0].url() chrome.Window({ mode: 'incognito' }).make() chrome.windows[0].activeTab.url = safari_url  
  5. Like
    Bhishan reacted to GuiB in Snippet with images (need a workflow)   
    @Matty and @egmweb, sorry I wanted to send it to you sooner, but I'm quite busy at the moment, but here is a workflow as example that I have uploaded some of those tips many months ago. The RTF example inside it is not useful anymore with Alfred 4, but you can have a look at the Expand Image example and the RTFD example. In short, you need to create a file with the content that you want for expansion and use it has the file path for the script inside that is connected after the Snippet Trigger. Just copy and paste the one that is useful to you into a new workflow and change the file path + the Snippet expansion keyword and you should be good.
     
    Example Workflow: https://d.pr/f/PCcxuP
     
    Best
  6. Thanks
    Bhishan reacted to deanishe in [SOLVED] How to do web search using search engine LMGTFY   
    When you make a custom web search, you have to adapt it to the specific URL format used by the site you're targeting.
  7. Like
    Bhishan reacted to vitor in Process Control — Manage misbehaving system processes   
    Call top for an auto-updating list of processes, ordered by CPU usage. Type to filter by process name.



    On each process:
    + ⌘↵ quits.
    + ⌥↵ forcibly kills.
    + ⌃↵ limits CPU usage.
    + fn↵ lowers priority (increases niceness).
    + ⇧↵ freezes.

    ↵ gives more granularity over the options.


     
    Download | Source
  8. Thanks
    Bhishan reacted to vitor in [SOLVED] Alfred Workflow to copy file contents having space separated folder   
    Try this version. It works for me.
  9. Thanks
    Bhishan reacted to deanishe in [SOLVED] Alfred Workflow to copy file contents having space separated folder   
    https://forum.latenightsw.com/t/how-do-i-copy-image-file-to-clipboard-and-retain-format/590/27
  10. Thanks
    Bhishan reacted to vitor in [SOLVED] Alfred Workflow to copy file contents having space separated folder   
    Why are you grabbing the file location via AppleScript invoked by a Keyword, instead of using a File Action Trigger? That’s the best tool for the job. You can even prevent the Workflow from messing up by having the File Action Trigger only work on the +public.text type.

    On another note, cat "$1" | pbcopy is a useless use of cat. Do pbcopy < "${1}".
  11. Thanks
    Bhishan reacted to deanishe in Workflow to go one step up in jupyter notebook   
    Your workflow doesn't generate that URL, though. It removes all the slashes from the URL, so it isn't valid.
     
    Here is a version with fixed URL-manipulating logic.
  12. Like
    Bhishan reacted to deanishe in [SOLVED] Workflow to split a list and insert list elements followed by some keystrokes   
    This workflow should kinda do what you want.
     
    Note, you also have to sleep in the Python code because calling an External Trigger returns immediately. It doesn't wait for the trigger to finish.
  13. Thanks
    Bhishan reacted to deanishe in Fakeum — Generate fake test datasets in Alfred   
    Absolutely. The workflow's open source, so you can change it any way you want.
  14. Thanks
    Bhishan reacted to vitor in AlfredBookmarklet — Use a browser bookmarklet via Alfred   
    That will be more complex.
     
     
    By learning about JavaScript and the DOM. Those aren’t pre-built commands, you need to learn what they mean to build something custom. Unfortunately, that falls way out of scope. Stack Overflow is the appropriate place for this kind of question, but don’t mention Alfred or this Workflow, as that will only breed confusion. Ask of it like building a browser bookmarklet (“How to make browser bookmarklet to edit file in Github”).
  15. Like
    Bhishan reacted to vitor in AlfredBookmarklet — Use a browser bookmarklet via Alfred   
    This workflow is officially deprecated if favour of Alfred’s Automation Tasks. You can find the old source on Github.
     
    Run browser bookmarklets from Alfred, without needing to having them installed in the browser itself.
     
    Note that you may need to Allow JavaScript from Apple Events in your Browser.
     
    1

    For the first step, get this template workflow itself. Though this is not strictly necessary (you can build it yourself) it serves as a starting point with most of the work already done. Proceed to open the workflow in Alfred.

    Next, get a browser bookmarklet to convert by copying its link address.


     
    2

    Run :cleanbookmarkletcode to clean the code in your clipboard. It performs substitutions necessary to avoid problems when pasting the code in the next step.


     
    3
     
    Open the Arg and Vars node and paste the code.



    Extra

    If you’re not new to Alfred, you likely won’t need these steps as you’ll know what to do.
     
    4

    The template includes both a Keyword and a Hotkey nodes to run the code. You can delete either one by clicking on it and pressing ⌫.


     
    5

    If you choose to use the workflow via Keyword, do not forget to set it up.



    6

    Lastly, edit the workflow’s details and its icon. For completeness it’s pre-filled with my details. Feel free to edit them.


     
  16. Thanks
    Bhishan reacted to deanishe in Help with copying file from Downloads to PWD   
    It doesn't because it's not the same command. Check your input more carefully (this is what the Debug utility is for).
     
    echo "$DOWNLOADS/$RECENT" adds a trailing newline, which is what's causing the problem. It should be echo -n "$DOWNLOADS/$RECENT"
  17. Like
    Bhishan reacted to xilopaint in Smart calculations with Numi   
    Have you seen the post immediately above yours?
  18. Like
    Bhishan got a reaction from deanishe in euler's identity is calculated incorrectly   
    To get the value of "e" you may want to type   =exp(1)
     
    The imaginary number "i" is not supported in Alfred 4.
    You can visit the calculator settings here: https://www.alfredapp.com/help/features/calculator/
     
    If you want to use the math libraries of python (math, numpy) you can use this workflow:
    http://www.packal.org/workflow/python-interpreter
     
    Then,
     
    pt    e**(1j*pi)            Gives:   (-1+1.2246467991473532e-16j)
    pt real(e**(1j*pi))     Gives -1. 
     
     NOTE: 
    1. In python 1j is imaginary number 1i. 
    2. In python power operation is **
  19. Like
    Bhishan got a reaction from deanishe in Help with Clipboard Quickview workflow   
    Thanks for the idea of converting markdown to bbcode
  20. Like
    Bhishan reacted to Benzi in Battery - view summary stats about your laptop battery   
    Hi there, if possible could you run the following command in Terminal and PM me the output?
    ioreg -l -n AppleSmartBattery -r
  21. Thanks
    Bhishan reacted to vitor in [SOLVED] Deleting Selected Snippets in the Clipboard History   
    Welcome @yashodhankhare,
     
    Do fn⌫.
  22. Thanks
    Bhishan reacted to deanishe in Help with Clipboard Quickview workflow   
    Well have a look on Google then to see if there is a fixed version or an alternative.
     
     
    Vítor and I use his MarkdownTransform workflow to convert Markdown to BBCode.
  23. Like
    Bhishan reacted to Jasondm007 in Find & Replace Text from Clipboard using the Replace Utility (or any other)?   
    @Bhishan I've implemented this in a much larger workflow, so I'd recommend downloading @Andrew's posted above (July 18, 2018) - which fixes the original workflow:
     
     
    I just checked, and his Dropbox upload still works.
  24. Thanks
    Bhishan reacted to CJK in [SOLVED] Problem with copying screenshot to current directory   
    Sorry, I see now that your original script returns the basename.  I mistook it originally for returning the full path, so engineered my version of the script to do the same.  It's one small modification in the way I declared the variable fp, and concatenated it with $name from the outset.  Instead, we'll just keep them as two separate variables, so $fp will contain the file path to the containing folder, and $name will contain the basename that you're after:
    fp=$(osascript -e \ "tell app \"Finder\" to get insertion location as alias return the result's POSIX path") screencapture -i -x "$fp$name.png" # copy final path to clipboard printf '%s' "$name.png" | pbcopy  
     
  25. Thanks
    Bhishan reacted to CJK in [SOLVED] Problem with copying screenshot to current directory   
    Having had a brief look at the workflow and the bash scripts, my guess is that when you substitute in "Google Drive", you're not using quotes to enclose the full file path, e.g. where you have, in one script:
    /bin/mv $a ${HOME}/Dropbox/KeepMe/KeepScreenshot/${name}.png would be better if it were:
    /bin/mv "$a" "${HOME}/Dropbox/KeepMe/KeepScreenshot/${name}.png"  
    My other suggestion, though unrelated to your present dilemma, is that you combine your four Run Script actions into a single action.  It doesn't make much sense to have them separate, and it'll make debugging easier too.
×
×
  • Create New...