Jump to content

dfay

Member
  • Posts

    1,054
  • Joined

  • Last visited

  • Days Won

    62

Reputation Activity

  1. Like
    dfay reacted to Jasondm007 in Show Finder's Color Labels in Search   
    @Blumentopfgewinner Great suggestion! This would make a world of difference.
     
    Initially, my thought was that it'd look like the usual dots, placed in the subtext below. But I like your suggestion better!
  2. Thanks
    dfay reacted to vitor in How to get around permission denied issue in Alfred?   
    Not wanting extra apps for these kinds of tasks is exactly why I made DeleteConfig.
     
     
    Curiously enough, I’ve worked on that a few days ago. In JXA:
    #!/usr/bin/osascript -l JavaScript function run(argv) {   Application('Finder').delete(argv.map(p => Path(p))) }  
     
    This is the right approach for such a small command. For completeness, sudo can indeed show you a graphical prompt but you have to specify it yourself. Search man sudo for SUDO_ASKPASS. Example on macOS:
    readonly ask_pass_script="$( script="$(mktemp).scpt" echo '#!/usr/bin/osascript return text returned of (display dialog "Insert your password" with title "Administrator password needed" default answer "" buttons {"Cancel", "OK"} default button "OK" with hidden answer) ' > "${script}" chmod +x "${script}" echo "${script}" )" export readonly SUDO_ASKPASS="${ask_pass_script}" Then you sudo --askpass {command}.
  3. Like
    dfay reacted to deanishe in ZotHero — Generate Zotero citations in Alfred   
    Added Snippet Trigger in v1.1. Using the Snippet Trigger pastes the citation directly in the active application.

    Note: You have to assign your own trigger—Alfred strips Snippet Triggers on install.
  4. Like
    dfay got a reaction from JimmyTheSaint in RPN calculator   
    Haha it only took four years for someone to take an interest in this   I've updated the link -- hope you find it useful.
  5. Like
    dfay reacted to tullyhansen in Nested Snippets (snippets within snippets)   
    Just came back to give this a loving bump (as I go to update hard-coded URLs in older snippets after a domain change) – would love nested snippets (within snippets interface itself) to get a look-in whenever possible! Keep up the great work regardless. ❤️ (realising after posting that this likely isn't the right category to be considered a feature request… ?)
  6. Like
    dfay got a reaction from tullyhansen in Just finished migrating from TextExpander 5...   
    Actually I'm blown away by how much more powerful Alfred is than TE, thanks to the ability to use script filters in snippets.  
  7. Like
    dfay reacted to deanishe in ZotHero — Generate Zotero citations in Alfred   
    ZotHero

    Rapidly search your Zotero database and copy citations.

    https://github.com/deanishe/zothero

    Features
    Perform full-text search across your Zotero database, including only searching specific fields Copy citations using any CSL style you have installed in Zotero Copy citations either in citation/note style or bibliography style Copy citations in any locale supported by CSL Citations are copied in multiple formats, so the right data are automatically pasted into the application you're using Trigger search while you type using the Snippet Trigger (you must assign the snippet keyword yourself in Alfred Preferences)

    Download & installation

    Download the ZotHero-XYZ.alfredworkflow file from GitHub releases, and double-click the downloaded file to install.

    Basic usage

    These are the workflow's default keywords:
    zot <query> — Search your Zotero database (common fields). zot:[<query>] — Search a specific field. zotconf [<query>] — View and edit workflow configuration.

    See the README on GitHub for full instructions.

    Pasting citations

    When you copy a citation, ZotHero puts both HTML and rich text (RTF) representations on the pasteboard. That way, when you paste a citation into an application like Word, the formatted text will be pasted, but when you paste into a text/Markdown document, the HTML will be pasted.

    Licence & thanks

    The workflow is released under the MIT licence.

    The Zorro icon was created by Dan Lowenstein.

    Citations are generated by citeproc-js (AGPLv3).

    Workflow stuff is taken care of by Alfred-Workflow (also MIT licence).
  8. Like
    dfay reacted to Ryan McGeary in Nested Snippets (snippets within snippets)   
    With the new features in Alfred Snippets, I'm considering consolidating all my snippets from aText into Alfred.  One feature that I use often in aText is the ability to embed a snippet inside another snippet expansion. This allows me to treat smaller snippets as variables that can be reused in other larger snippets.
     
    Is this possible with Alfred's Snippets?
     
  9. Like
    dfay reacted to tullyhansen in Snippet suggestion grab bag: Add "Date Modified" column to Snippets list in Preferences; maintain detailed snippet usage statistics; hide "Keyword ''" in snippet browser   
    1. In my never-ending quest to shoehorn ever more snippet functionality into Alfred, I'd love (at least the option of) a Date Modified column in the Snippets list in Preferences – I live and die by Alfred snippets in my (email-based customer support) day job (lots of boilerplate text and instructions/fixes for common issues), and being able to more easily surface old (and potentially stale) snippets would be a big boon. I can fudge this by exporting/renaming to .zip/unzipping/checking modification dates, but having this right within the app would be better still!
     
    2. While I'm dreaming, I'd also love per-snippet usage statistics (perhaps across a given time period – you've used this X times this week/month/since creating it) – both for the coolness factor (quantified self foreverrrrrrr!) but more usefully for the purposes of seeing what snippets I most frequently use (and should concentrate on making sure are most polished).
     
    3. A tiny one – the snippet browser shows Keyword '' (empty quotation marks) for a given snippet when no typed keyword is set, which offends my delicate aesthetic sensibilities – would love to just have this not displayed in such cases.
     
    (Turned into a three-in-one-request, but at least all thematically linked – sorry!)
  10. Like
    dfay reacted to Vero in Moving this forum to Discourse   
    Hi all, I've read this thread carefully and have been mulling it over this week.
     
    There are many reasons we're using IPBoard, and I figure it's only fair that I share our rationale for where we're at with the forum we've opted for. I'm also going to take this feedback and share it with IPB in the hope that they can understand the issues and the shortcomings of the editor, and make some essential improvements so that writing and editing posts is more straightforward.
     
    We moved from the cutesy-but-extremely-limited Get Satisfaction in 2013, which was a difficult process even at a time where the community was less than 1/20th what it is now; Content was lost, all the previously indexed links were no longer valid, users had to create new accounts, etc. Huge upheaval for everyone. Taking a look back, they've since been acquired by another company and their product has completely changed, so our hand would've been forced even if we hadn't left then.
     
    Moving to the established - if somewhat non-trendy - IPBoard meant we'd have a platform that had been around a long time and wasn't going to be sold to the highest bidder who'll acqui-hire the staff and gut the product for parts next month.
     
    Since 2013, it has proven to be reliably available, taking a minimal amount of time for me to keep updated behind the scenes. With the exception of a few colour scheme changes, it's a completely vanilla install, with no plugins, so that I can trust that I can do security updates quickly while most users are sleeping, without having to go through testing of every plugin, or causing unexpected downtime/issues.
     
    By keeping things as simple as possible, we can focus time on helping users, rather than troubleshooting issues with unsupported plugins, new releases, etc. as the forum is only one of the numerous aspects of running a software business Andrew and I have to juggle every day. 
     
    We value your time too, as community members who volunteer their time to help fellow Alfred users, so I'll definitely have a more comprehensive chat with IPB to try to bring some of these improvements in. At this point, I can't promise anything, but I'll let you know what feedback I get from the IPBoard team.
     
    Cheers,
    Vero
  11. Thanks
    dfay reacted to robwalton in Ulysses workflow   
    Hi @Altimor, @dfay, @EvanLovely & @Joel a,
     
    Thanks for the error reports. I've fixed this in v.1.0.4 to GitHub. Please let me know if it all works as expected and I'll push to packal.
     
    (The update to Ulysses 13 changed the file format of the plist file used to describe each group to a binary format not supported by the built in python library. At some point this thing will probably fail terminally as it ties in below Ulysses' supported API.)
  12. Like
    dfay reacted to dvcrn in Ability to use macOS services from Alfred   
    I've been recently playing around with launchbar and switch back and forth between it and Alfred. 
    One thing I noticed that is pretty killer in launchbar, is the ability to use macOS services. Launchbar is indexing them by default and lets you use them either with normal text or files. 
     
    A proposal could be:
    Type some text (or use a workflow to get the selected text and propagate the alfred window with it) Hit CTRL Select "Use Service" (or directly suggest them) Hit enter on a service to use them  
    And the same with files. Hit CTRL and propagate the actions window with services that support the file type, next to workflow actions and default alfred actions
     
    I think this would make Alfred a lot more powerful without the need to create custom workflows. A lot of apps (the majority?) already exposes services, and being able to use them directly within alfred would be great. 
     
    For example, some workflows that I manually wrote that would be possible with a service:
    DEVONthink: Add notes or files Delivers: Add a delivery from a text string Fantastical, Cardhop, Things: Add new entry directly from text  
    Screenshot of available services enabled on my system when selecting text:

     
    Screenshot of available services when selecting a file:

  13. Like
    dfay got a reaction from deanishe in Alfred made me do it....   
    https://xkcd.com/1987/
  14. Like
    dfay got a reaction from Ant0ineH in The State of Alfred Remote app   
    I can't remember where I first posted this, but .....Any chance of an ios keyboard in v2 with synced snippets?
  15. Like
    dfay got a reaction from Terry T. in Case Converter (including Title Case) - now working on MacOS 12.3   
    Updated March 26, 2022 to use Python 3 for MacOS 12.3 
     
    Now featuring Universal Action triggers and hotkeys for the following five actions:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    All of these are set to Copy to Clipboard and Paste by default.
     
    There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow).
     
    You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text.
     

     
    Download:
     
    https://www.dropbox.com/s/8fydkkef1t699et/Case Converter 3.alfredworkflow?dl=0
     
    NB This is a new link and will download as a new workflow - you'll need to migrate any hotkeys and delete or disable the older version.
     
    Here's the old Python 2 version in case anyone wants it:
     
    https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0
     
    The original version is described below and still available, if anyone prefers it.
     
    Workflow Version:
     
    This workflow converts the case of the text on the clipboard.
     
    http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow
     
    There are two workflows which display the following five options:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    The keyword case will transform the text on the clipboard without pasting the result.
    The keyword casep will transform the text on the clipboard and paste (using Applescript System Events)
     
    Hotkey Version:
     
    Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text.  These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste.
     
    http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow
     
    Notes and Revision History:
     
    These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase .
     
    If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations.
     
    Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ )
     
    Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion.
     
    Updated May 20, 2014 with hotkeys
  16. Thanks
    dfay got a reaction from kodiak in Opening Folders in the Same Finder Window   
    Here's a crack at it:
     
    https://www.alfredforum.com/topic/11398-finder-scripts-including-opening-in-a-single-window/
  17. Like
    dfay reacted to kodiak in Opening Folders in the Same Finder Window   
    Hello,
     
    I rely on Alfred exclusively for traversing my file system - opening files and folders with Finder, that is.
    The problem is that every new folder that I open - unless it already is - is opened in a new tab. Since I jump to and from my Mac's directories like a wild ferret, a simple browsing session results in dozens of Finder tabs.
    Is there ANY way to make folders open in a current/most recent Finder tab? This would be a real lifesaver.
    Path Finder behaves likes this out of the box and it's really nice, but the rest of that software is so buggy I couldn't use it anymore.
     
    Thanks!
     
  18. Like
    dfay reacted to rutinerad in Url as workflow trigger   
    Cool, thanks @dfay. I was aware of fallback search triggers, but unaware of the Intelligently show fallbacks at the end of results setting.
  19. Like
    dfay reacted to Vero in Url as workflow trigger   
    @rutinerad I was about to reply but looks like @dfay is right on the money  
     
    Create your "Add to pinboard" workflow, and include a Fallback Search Trigger, then set your fallbacks to show up intelligently, and it'll appear as a fallback search when you type a URL.
     
    Cheers,
    Vero
  20. Like
    dfay got a reaction from gandalfsaxe in Case Converter (including Title Case) - now working on MacOS 12.3   
    This is built into the latest version of the workflow as a script filter - see the top post.
  21. Like
    dfay got a reaction from xilopaint in Alfred PDF Tools – Optimize, encrypt and manipulate PDF files   
    http://ocrkit.com/help/
     
    I don’t know about how it’s performance compares but I’ve had very few issues with quality.
     
  22. Like
    dfay got a reaction from gandalfsaxe in Autocompletion references from .bib file   
    Let me try to get in touch with the author ... 
  23. Like
    dfay reacted to GuiB in Rich Text in Snippets   
    With the Snippet Trigger it is possible to do almost anything... It's not as easy as having a native way of inputting rich text into an Alfred native Snippets, but if you don't mind creating a workflow and a RTF file as your snippet content, then you can simply use a Run Script set to AppleScript that read the content of the file and put it into the clipboard and then paste it to the front application
     
    Here is a workflow as example to show you how to do it (basically, just change the path to the file and set your own rtf file path to use your content): https://nofile.io/f/gK6eCRmeHCU/Example+-+Rich+Text+Snippet.alfredworkflow
     
    Or, here is the main part of the Workflow to put the content of the RTF file into the clipboard, after that, just connect to a Dispatch Key Combo set to CMD+V to output to the front application
    set theFilePath to "path/to/RTF/file.rtf" set the clipboard to (read theFilePath as «class RTF »)  
  24. Like
    dfay reacted to Eric Lee in Currency Converter   
    I created a currency converter, which supports managing frequently used currency type.
    It also supports one-to-many conversion.
    The exchange rate will update on a daily basis.

    You can find more instructions at here.
    https://github.com/Ericlee0210/alfred-currency-converter-workflow

    You can also download the workflow at here.
    https://github.com/Ericlee0210/alfred-currency-converter-workflow/releases

    I would appreciate it if you can give me some feedback.
  25. Thanks
    dfay reacted to deanishe in Workflow to open two finder windows but also arrange them in a specific way on my screen.   
    Not at all. But like I said, I'm not going to keep rewriting the script, so we need to be clear about it's behaviour.
     
    Here you go. You can specify the vertical distance to the centre and the horizontal distance to the (left or right) screen edge.
     
    -- Paths to folders to open property topFolder : "/Volumes" property bottomFolder : "/" -- Size of created windows property winWidth : 800 property winHeight : 400 -- How many pixels above/below screen centre to position windows property distanceFromCentre : 10 -- How many pixels from side of screen to position windows property distanceFromSide : 50 -- Set to "true" to open folders on the right-hand side of the screen. property rightAlign : true -- Open a directory in a new Finder window on openDirectory(thePath, aboveCentre) tell application "Finder" -- Calculate vertical centre of screen set {screenL, screenT, screenWidth, screenHeight} to bounds of window of desktop set yCentre to screenHeight / 2 -- Create and resize new Finder window set theWin to make new Finder window set {winL, winT, winR, winB} to theWin's bounds set theWin's bounds to {winL, winT, winL + winWidth, winT + winHeight} -- Position window on screen if rightAlign = true then set xPos to screenWidth - (winWidth + distanceFromSide) else set xPos to distanceFromSide end if set theOffset to winHeight + distanceFromCentre if aboveCentre = true then set yPos to yCentre - (winHeight + distanceFromCentre) else set yPos to yCentre + distanceFromCentre end if set theWin's position to {xPos, yPos} -- Open folder in window set theWin's target to (thePath as POSIX file) end tell end openDirectory on run (argv) my openDirectory(topFolder, true) my openDirectory(bottomFolder, false) tell application "Finder" to activate end run  
×
×
  • Create New...