-
Posts
8,759 -
Joined
-
Last visited
-
Days Won
522
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by deanishe
-
In that case, it works.
-
It doesn't hang, but it also doesn't work as it should. It's now working the same as my NSTask test: it opens a temp file with the data read from STDIN (i.e. an empty file). It should only activate the Sublime Text application.
-
Download Media — Download video and audio from web pages
deanishe replied to vitor's topic in Share your Workflows
Because the downloader it integrates with doesn't support fetching audio instead of video. I already have browser bookmarks and Pinboard for saving URLs for later (both of which sync to my other devices), and an unwatched tag for files. Instead, I save the URLs to Pinboard with a download-audio tag, and pipe my bookmarks through jq to youtube-dl. -
I can't do anything with a screenshot. Please post an actionable description of your issue. Open Alfred's debugger (to turn on debug mode), run Force Reload from MailTo's settings screen (keyword mailto), then open the log file with mailto workflow:openlog and post the log messages from the update_apps.py script.
-
File filter to display only direct child files/folders
deanishe replied to willviles's topic in Discussion & Help
Nope. Node projects are basically Alfred's kryptonite, due to the lack of a useful blacklisting feature in Alfred and the absolutely insane number of files npm dumps in a non-hidden directory within your project folder (a small Vue.js project I'm working on contains 205 files called readme.md!) If you want to use Alfred's native search with node projects, your only real option is to add each and every one of your node_modules folders to Spotlight's Privacy pane in System Preferences. If you use git with your projects, you might find this workflow better than Alfred's built-in search, as it's tuned for working with git repos. If not, your best bet is to write a simple Script Filter that only returns directories that are immediate children of ~/Code. -
Screenshots are not enough to diagnose issues. Please open Alfred's debugger, run vpn workflow:update, and post the debug output.
- 19 replies
-
Modify workflow behavior based on current app
deanishe replied to olivierlefloch's topic in Workflow Help & Questions
On a related note, the first line in Clipboard and Snippets in the changelog for build 837 reads: -
Alfred MPD Control MPD from Alfred. Installation Download the latest version from GitHub releases or Packal. Usage mpd [<query>] — View mpd status and search for tracks On actions: ↩ or ⌘+<NUM> — Perform action On tracks: ↩ or ⌘+<NUM> — Queue track ⌘+↩ — Play track ⌥+↩ — Clear queue and play track ^+↩ — Queue album On albums/artists/playlists/types: ↩, ⇥ or ⌘+<NUM> — Search within albums/artists/playlists/types Licencing, thanks This workflow is released under the MIT licence. It is based on the Alfred-Workflow library, which is also released under the MIT licence. Changelog 0.1.0 First release
-
Handy. I found a bug and have a couple of suggestions. It doesn't work if there are spaces in the filepath, as some of the variables/arguments in the script aren't quoted. FYI, Alfred removes keyboard shortcuts when a user installs a workflow, so it doesn't work "out of the box". The user has to set their own keyboard shortcut first. Have you thought about adding a File Action as an alternate way to run the workflow? That way, you can use it from Alfred's file browsing mode, and it's also helpful for old people like me who can't remember all their keyboard shortcuts. Also, I think I found a bug in the bash script: Isn't there an "echo" missing here?
-
Outlook for Mac and Todoist workflow needed
deanishe replied to djsharpe's topic in Workflow Help & Questions
Wrong? That sounds pretty crazy. Why would you consider using a very large application server and a web-scale RDBMS for such a small, simple problem? How would you populate the database in the first place? All you need is a relatively simple application that handles message:// URLs (which is the standard way to do this on macOS). It extracts the message ID from the URL, then runs the AppleScript/JXA necessary to make Outlook show the corresponding message. No need to run huge server programs. And yes, it is an entirely new application. Not a big one, but the links can't work without it because Outlook doesn't support the standard message:// URI scheme. -
Outlook for Mac and Todoist workflow needed
deanishe replied to djsharpe's topic in Workflow Help & Questions
That's writing an entirely new application. What does node have to do with anything? -
Outlook for Mac and Todoist workflow needed
deanishe replied to djsharpe's topic in Workflow Help & Questions
There's a Python API library. You'd be crazy not to use it. Yeah. I already posted the script for that… Like I said, Outlook doesn't support that. -
Outlook for Mac and Todoist workflow needed
deanishe replied to djsharpe's topic in Workflow Help & Questions
Can't be done as best as I can tell. Outlook's AppleScript API doesn't give you the message ID you need to create a link, nor does it support the message:// URI scheme needed to link back to your email app. If this is really important to you, and you're not using Exchange, I suggest you check out MailMate, which has Todoist support out of the box. Apart from that, the script I posted can be plugged into the Todoist Python API pretty simply. -
Outlook for Mac and Todoist workflow needed
deanishe replied to djsharpe's topic in Workflow Help & Questions
This script returns information (subject, text, sender, data) about the selected message in Outlook. You should be able to plug it into one of the older workflows. // Display an error dialog if no message is selected var showDialogOnError = true ObjC.import('stdlib') outlook = Application('Microsoft Outlook') sa = (outlook.includeStandardAdditions = true, outlook) // Return the first selected object that's a message function getSelectedMessage() { var selection = outlook.selectedObjects() for (i = 0; i < selection.length; i++) { var obj = selection[i] if (obj.class() == 'incomingMessage') { return { 'subject': obj.subject(), 'text': obj.plainTextContent(), 'sender': obj.sender(), 'date': obj.timeSent(), } } } return null } // Return JSON object containing the selected message function run() { var msg = getSelectedMessage() if (!msg) { if (showDialogOnError) { sa.displayDialog('No message selected', { buttons: ['OK'], defaultButton: 'OK', withTitle: 'Error', withIcon: 2 }) } $.exit(1) } return JSON.stringify(msg) } -
What's the Search URL for Google "I'm Feeling Lucky"?
deanishe replied to fenvyke's topic in Discussion & Help
Try unchecking the "Only show enabled searches" box just above the listbox. -
Modify workflow behavior based on current app
deanishe replied to olivierlefloch's topic in Workflow Help & Questions
Oh yeah. You are of course right. I was confused. -
Modify workflow behavior based on current app
deanishe replied to olivierlefloch's topic in Workflow Help & Questions
It will also only work via Hotkeys, not Keywords. If you have Alfred's window open, then Alfred is the frontmost application. -
Not sure if this is a bug or a feature. At any rate, the behaviour is inconsistent. Preceding spaces are maintained so long as there is at most one trailing space. With 2 or more trailing spaces, the trailing spaces are reduced to one and all preceding whitespace is trimmed. I'd say "bug", so that's where I'll move it…
-
Download Media — Download video and audio from web pages
deanishe replied to vitor's topic in Share your Workflows
The lack of audio support is actually the main reason I don't use DownVid and/or WatchList. If I'm at the computer, I generally just stream the video in mpv, and most of the stuff I save, I actually want as audio, so I can listen while I'm out and about. -
The only real reason you'd want to use Terminal Command is to launch an interactive terminal application, such as an SSH session or the like.
-
Search through 2500+ mind maps and curated study plans with Alfred
deanishe replied to nikivi's topic in Share your Workflows
You'll need to update the URL to my library, as I've renamed the server to git.deanishe.net now I'm using Gitea, not Gogs: https://git.deanishe.net/deanishe/awgo -
It's a dict. Use the dict API. del wf.settings['key']