-
Posts
187 -
Joined
-
Last visited
-
Days Won
12
Reputation Activity
-
zeitlings got a reaction from andy4222 in Set Default Browser
@andy4222 That is probably the Apple Script taking some time to wake up. MacOS will always ask you if you are sure you want to change the browser. The script focuses that modal window and "clicks" the button to accept the change. If you're switching to an another window before that has happened, the script will fail. So yeah, there might be a delay (also for the swift script to execute if it is called the first time after a while; after that it seems to be cached somewhere and executes faster.)
-
zeitlings reacted to YuTang in how to pass variables from javascript to subsequent actions
Thank you for your reply! Finally I solve it myself, now I use a simple AppleScript.
tell application "OmniFocus" set theQuery to "atlviq9dkBl" tell default document set theTask to task id theQuery set taskName to name of theTask set taskNote to note of theTask set encodedTaskName to my urlEncode(taskName) set encodedTaskNote to my urlEncode(taskNote) end tell end tell set resultText to encodedTaskName on urlEncode(str) local str try return (do shell script "/bin/echo " & quoted form of str & ¬ " | perl -MURI::Escape -lne 'print uri_escape($_)'") on error eMsg number eNum error "Can't urlEncode: " & eMsg number eNum end try end urlEncode set bluebirdLink to "bluebird://add?title=" & encodedTaskName & "¬es=" & encodedTaskNote open location bluebirdLink
Actually, I tried an AppleScript like this at the very beginning, yet I name the variable bluebirdLink as url, which strangely cause an error: Can’t set URL to "bluebird://add?title=" & encodedTaskName & "¬es=" & encodedTaskNote. Access not allowed.
after I changed it, it's now ok. Thank you again!~!
-
zeitlings got a reaction from cands in Define Word - A Better Dictionary
Define Word
I wanted a slightly better dictionary for lookups. In particular, I wanted well formatted previews of the entries without having to open the Dictionary app.
You can choose from all available dictionaries that are installed on your system, define the fallback dictionaries for your lookups, set the font size of the previews, or manually select a dictionary to use. The previews reflect the global appearance, i.e. they have a dark mode! The workflow also includes a preset for looking up synonyms of a word and a convenient keyboard shortcut for quick lookups.
‣Download from Github ◂
Usage Note
Specify the dictionaries you want to use (see Dictionary Options below). Define a fallback dictionary against which possible misspellings will be checked.
The workflow can be used as a multilingual spell checker.
Default keyword: def
Default shortcut: ⌥+⇧+D
Keyword sd: Select a specific dictionary for lookups
Keyword synd: Find synonyms by consulting the thesauri only (english)
Cache reset: def ?
Modifiers
⇧ or ⌘Y to preview the dictionary entry ⌃ to see the dictionary associated with the entry ⌘C to copy the dictionary entry’s plain text to the clipboard ⌘⏎ to paste a word to the frontmost application (spell checker) ⌘L to view the plain text as large type
Preview
Dictionary Options
Oxford Study Indonesian Dictionary - Inggris-Indonesia • Indonesia-Inggris
Oxford PWN Polish-English Dictionary / Wielki słownik polsko-angielski
Oxford Paravia Il Dizionario inglese - italiano/italiano - inglese
Oxford Portuguese Dictionary - Português-Inglês • Inglês-Português
Oxford Turkish Dictionary - Türkçe-İngilizce • İngilizce-Türkçe
Dicionário de Português licenciado para Oxford University Press
Dizionario italiano da un affiliato di Oxford University Press
Oxford Russian Dictionary - Русско-Английский • Англо-Русский
Gran Diccionario Oxford - Español-Inglés • Inglés-Español
Oxford Arabic Dictionary - عربي-إنجليزي • إنجليزي-عربي
Oxford Urdu Dictionaries - اردو۔انگریزی • انگریزی-اردو
Oxford Gujarati Dictionaries - ગુજરાતી-અંગ્રેજી • અંગ્રેજી-ગુજરાતી
Oxford Tamil Dictionaries - தமிழ்-ஆங்கிலம் • ஆங்கிலம்-தமிழ்
พจนานุกรมอังกฤษ-ไทย & ไทย-อังกฤษ ฉบับทันสมัยและสมบูรณ์ที่สุด
Magay Tamás szótár - Magyar-Angol • Angol-Magyar
Oxford Telugu Dictionaries - తెలుగు-ఇంగ్లీష్ • ఇంగ్లీష్-తెలుగు
Velký anglicko-český a česko-anglický slovník
Oxford Bengali Dictionaries - বাংলা-ইংরেজি • ইংরেজি-বাংলা
Diccionario General de la Lengua Española Vox
MOT sanakirja suomi-englanti, englanti-suomi
Oxford Hindi Dictionaries - हिन्दी-अंग्रेज़ी • अंग्रेज़ी-हिन्दी
מילון אבן-שושן מחודש ומותאם לשנות האלפיים
Multidictionnaire de la langue française
PONS Großwörterbuch Französisch Deutsch
Oxford American Writer’s Thesaurus
Duden-Wissensnetz deutsche Sprache
Oxford-Hachette French Dictionary
Толковый словарь русского языка
New Oxford American Dictionary
Prisma Handwoordenboek Engels
Prisma woordenboek Nederlands
Oxford Dictionary of English
พจนานุกรมไทย ฉบับทันสมัยและสมบูรณ์
Oxford Thesaurus of English
Politikens Nudansk Ordbog
Oxford German Dictionary
超級クラウン中日辞典 / クラウン日中辞典
Arkadaş Türkçe Sözlük
뉴에이스 영한사전 / 뉴에이스 한영사전
ウィズダム英和辞典 / ウィズダム和英辞典
Apple Dictionary
Từ điển Lạc Việt
TTY Dictionary
Norsk Ordbok
राजपाल हिन्दी शब्दकोश
商務新詞典(全新版)
NE Ordbok
뉴에이스 국어사전
譯典通英漢雙向字典
现代汉语同义词典
英譯廣東口語詞典
牛津英汉汉英词典
漢英對照成語詞典
现代汉语规范词典
五南國語活用辭典
スーパー大辞林
汉语成语词典
-
zeitlings reacted to pseudometa in atop – Process Management & System Monitoring
Just submitted this to the Alfred Gallery yesterday.
Features
Process Management: CPU & Memory, kill processes, restart apps Bluetooth Devices: Battery Information (if available), Connection Network Connections Removable Volumes Uptime & Reboots Speedtest Live refreshing
➡️ https://github.com/chrisgrieser/alfred-atop
-
zeitlings reacted to Faris Najem in AlfredOCR - Optical Character Recognition
Ok, I will wait. thank you so much 💐.
-
zeitlings got a reaction from andy4222 in Define Word - A Better Dictionary
Hey @andy4222, glad to hear you find it useful. The workflow is unlikely to end up in the gallery because it relies on functions that are only available through Objective-C. This means that there can not be a pure Swift version and that the program, on order to work, needs to be compiled into an executable binary, which I'm currently not having notarized by Apple. This in turn is a prerequisite for executables to be included in the gallery (which is a good thing all in all ).
-
zeitlings got a reaction from vitor in Define Word - A Better Dictionary
Hey @andy4222, glad to hear you find it useful. The workflow is unlikely to end up in the gallery because it relies on functions that are only available through Objective-C. This means that there can not be a pure Swift version and that the program, on order to work, needs to be compiled into an executable binary, which I'm currently not having notarized by Apple. This in turn is a prerequisite for executables to be included in the gallery (which is a good thing all in all ).
-
zeitlings got a reaction from andyedin in µBib | Citations, BibTeX, and Research
You can remove those from the workflow configuration (the list of identifiers). When they’re gone from there, you can permanently delete them. They are there to ensure that something is present initially. Admittedly, this part is a left-over from an earlier stage of the workflow that didn’t support ad hoc CSL management and could probably go away~
-
zeitlings reacted to andyedin in µBib | Citations, BibTeX, and Research
Thanks for the prompt reply. I will try the workaround solution as you mentioned. Hail for this fantastic workflow.
-
zeitlings got a reaction from dterranova in A Workflow for Transcoding Audio, Video, Images?
I've been looking into this a little bit. Without writing the workflow right away myself, I' d still like to give some insights.
tl:dr: use a combination of sips and ffmpeg.
There are three macOS native utilities that at first sight promise a solution: avconvert, afconvert and sips.
avconvert seems to work quite well actually. The problem is the limited presets and the absence of decent compression, as far as I can tell. For creating 100MB large, 2min long mp4s, this is nice. What's perhaps interesting about this is that it lets you use apples proprietary HEVC (h.265) and ProRes codecs. For everyday use cases this is irrelevant. afconvert appears to be extremely limited as in, it can read mp3 but will not write out mp3 files. I stopped looking into it here. Looking at `afconvert --help` seems to suggest that there has been no development since 2013. There is apple's SDK AVFAudio with which you could perhaps write an executable to perform conversions... if you happen to really really want to do that. Without having tested it thoroughly (or at all) sips looks great out of the box! Cf. `sips --formats` for writable image formats.
I also briefly tested VLC's CLI video transcoding and it works pretty well. However, the effort required to fine-tune the parameters could make it difficult to fit into an Alfred workflow. This leaves us with ffmpeg, which has to be installed: `$brew install ffmpeg`. Looks great. I' would start with sips for images and ffmpeg for the rest.
-
zeitlings reacted to yinan in Heads-up Display
That's cool, Thanks for making this! I think it is very useful for running your workflows in Do Not Disturb mode when all notifications are muted.
-
zeitlings got a reaction from giovanni in Heads-up Display
Heads-up Display
This is a demo for displaying notifications on a heads-up display in Alfred.
I wrote it as part of µBib, but I figured it might be interesting as a standalone.
The script takes two arguments:
The text to display The width of the prompt
You can find it here on Github.
-
zeitlings got a reaction from giovanni in µBib | Citations, BibTeX, and Research
µBib | MicroBib
Citations, BibTeX, and Research
The workflow combines the APIs of Crossref, Semantic Scholar, OpenAlex, OpenLibrary, Wikipedia, Google Books, and doi.org. Reference metadata is highly inconsistent, incomplete, erroneous or otherwise flawed across different sources. µBib tries to remedy this by heuristically aggregating information from different sources into one best possible result.
Core Functions
Reference lookup using DOI, ISBN, PMID, PMCID, MAG, arXiv, ACL identifiers, and URLs (e.g. jstor) CSL formatted citations from identifiers and BibTeX Free-text search for publication discovery Author lookup and publication retrieval Ad hoc citation graph traversal Lightweight BibTeX reference management and citation picker
Note: The workflow has some interoperability with my DEVONthink workflow (Forum Thread, Github)
Documentation
Find the full documentation on Github
Previews
Metadata retrieval
Reference Management & Citation Picker
-
zeitlings reacted to Stephen_C in QResolve - Open links from QR codes
Open the debugger, run the workflow and copy and paste the output into a post here. It will help to diagnose the problem.
Stephen
-
zeitlings got a reaction from Alan He in Read link from QR Code
There is no need for external dependencies, btw. See here.
And here is the implementation: QResolve
-
zeitlings got a reaction from sepulchra in QResolve - Open links from QR codes
QResolve
Resolve and open links from QR codes
Usage
A / Take a snapshot of the QR code you want to open the link to
Default keyword: qrlink Default shortcut: ⌘+⇧+7 B / Send an image containing the QR code to the workflow's File Action
-
-
zeitlings reacted to destefano.flavio in Visual Studio Code Project manager for Alfred
Simple integration of VSCode Project Manager
It supports both VSCode Project manager static projects and Git projects, sorted by usage.
"
https://github.com/kopiro/vscode-project-manager-for-alfred
-
zeitlings got a reaction from kpw in How to show user input form?
Hey @andy4222, there is no way to do this with Alfred as far as I know. However, you can build it yourself from scratch.
I just finished an experiment that raises a graphical prompt that passes the values you enter to Alfred. This works by wrapping the GUI, i.e. SwiftUI components, in an NSWindow instance.
To make it work for your needs, you will need to customize the SwiftUI view and its components.
I think the results are quite promising though. 😄
You can download the experiment here
-
zeitlings got a reaction from JJJJ in How to show user input form?
Hey @andy4222, there is no way to do this with Alfred as far as I know. However, you can build it yourself from scratch.
I just finished an experiment that raises a graphical prompt that passes the values you enter to Alfred. This works by wrapping the GUI, i.e. SwiftUI components, in an NSWindow instance.
To make it work for your needs, you will need to customize the SwiftUI view and its components.
I think the results are quite promising though. 😄
You can download the experiment here
-
zeitlings got a reaction from andy4222 in How to show user input form?
Hey @andy4222, there is no way to do this with Alfred as far as I know. However, you can build it yourself from scratch.
I just finished an experiment that raises a graphical prompt that passes the values you enter to Alfred. This works by wrapping the GUI, i.e. SwiftUI components, in an NSWindow instance.
To make it work for your needs, you will need to customize the SwiftUI view and its components.
I think the results are quite promising though. 😄
You can download the experiment here
-
zeitlings reacted to Terminal in Bluetooth Device Battery
Dang! I thought I missed an update and Alfred expanded its capabilities! Either way, this helps me with my workflow update!
You've got great workflows btw. Thanks
-
zeitlings got a reaction from TomBenz in AlfredOCR - Optical Character Recognition
Sure, I completely agree and understand the concern. The binaries are signed with my personal credentials, which at least means that if something sinister were to go on, I could hardly escape the blame. I would prefer to have them notarized, but alas, Apple charges for that, and since this is just a hobby, I've decided not to do so for now. If that isn't enough to inspire confidence, I won't blame anyone, but ... 🤷♂️
As for the MIT license being a problem here, I don't think it's a problem at all: The software is provided "as is".
-
zeitlings reacted to TomBenz in AlfredOCR - Optical Character Recognition
thank you @zeitlings I will test it over this weekend and update
-
zeitlings reacted to xilopaint in AlfredOCR - Optical Character Recognition
I'm absolutely in love with this workflow. I like everything, even the icon color tone is appealing to me. Haven't you committed the code for the compression feature @zeitlings?
What kind of compression are you doing, btw? Is it similar to the work of my workflow’s optimize action you mentioned earlier?