-
Posts
158 -
Joined
-
Last visited
-
Days Won
6
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by paulw
-
@deanishe, reviving this thread to ask about your snippets syncing Python script. I have a couple of MacOS keyboard shortcuts that have multi-line text. The script seems to flatten them into a single line. Do you think it would be an easy fix to get the script to respect new lines?
-
Sharing some useful simple Universal Action
paulw replied to pseudometa's topic in Share your Workflows
@Chris Messina I think what's showing up are not the 5 different case change universal actions, but the placeholder title for the three keyword script filters ("cc", "change", "case") that you created in your edit of the workflow. I guess you're stuck with those unless script filters can exclude themselves as actions for specific file types (can they?) -
Hi @dfay, I'm getting errors running this workflow in Alfred 4 that have to do with Alfred 3 file paths. Fixed by opening categories.py and replacing references to ~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist with ~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist and replacing references to ~/Library/Application Support/Alfred 3/Alfred.alfredpreferences/preferences/workflows/ with ~/Library/Application Support/Alfred/Alfred.alfredpreferences/preferences/workflows/ And lastly, editing the osascripts in the workflow to replace "tell application "Alfred 3" with "tell application "Alfred". And thanks for the workflow!
-
Nice work. Is there any way to update the menubar icon as well?
- 25 replies
-
- Do Not Disturb
- Yosemite
-
(and 1 more)
Tagged with:
-
Thanks for this workflow. I just started using 2Do again, and your workflow is a nice addition!
- 1 reply
-
- productivity
- workflow
-
(and 1 more)
Tagged with:
-
You have a typo in your code: big_sur_dnd_prefs (plural) is defined, but then the singular big_sur_dnd_pref is used. Edit: But it works when I manually edit the typo!
- 44 replies
-
- workflows
- donotdisturb
-
(and 1 more)
Tagged with:
-
Happy to help! I imagine delving into the bplist a bit more would allow you to re-enable the time-limited DND of your workflow, but I haven't looked into it yet.
- 44 replies
-
- workflows
- donotdisturb
-
(and 1 more)
Tagged with:
-
@troycurtisjr With help from someone on reddit, I was able to cobble together code that tests for Do Not Disturb status on Big Sur. The plist file ~/Library/Preferences/com.apple.ncprefs contains a plist item dnd_prefs. That item contains a base64-encoded binary plist (bplist). When that is decoded, if DND is enabled, it would look something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>dndDisplayLock</key> <false/> <key>dndDisplaySleep</key> <false/> <key>dndMirrored</key> <false/> <key>facetimeCanBreakDND</key> <false/> <key>repeatedFacetimeCallsBreaksDND</key> <false/> <key>userPref</key> <dict> <key>date</key> <date>2021-01-15T04:35:29Z</date> <key>enabled</key> <true/> <key>reason</key> <integer>1</integer> </dict> </dict> </plist> The presence of the <key>userPref</key> and the <key>enabled</key> within the adjacent <dict></dict> indicate DND is enabled. So the following code produces 1 if DND is enabled, and 0 if it is disabled: #!/bin/zsh dnd_enabled=$(plutil -extract dnd_prefs xml1 -o - ~/Library/Preferences/com.apple.ncprefs.plist | xpath -q -e 'string(//data)' | base64 -D | plutil -convert xml1 - -o - | xpath -q -e 'boolean(//key[text()="userPref"]/following-sibling::dict/key[text()="enabled"])') echo $dnd_enabled Note: there seems to often be a lag time of a few seconds before the result reflects any change to DND. Feel free to incorporate that in your workflow.
- 44 replies
-
- workflows
- donotdisturb
-
(and 1 more)
Tagged with:
-
This is a great idea. Thanks for making this workflow!
- 9 replies
-
- services
- file-action
-
(and 1 more)
Tagged with:
-
Thanks, @deanishe. And Thanks, @dfay, I'll look into this option, since I do have Hazel.
-
Can I use my Alfred Snippets on my iPhone and iPad?
paulw replied to TP123's topic in Alfred Remote Discussion & Help
The Remote app can't do that, but I would also love a way to sync clipboard history and snippets between iOS and Alfred. I found this old reference to a Workflow (now Shortcuts app), but the link is for the old Workflow app and doesn't work. [Edit: it does work actually] And there's also this python script by @deanishe for one-way syncing iOS snippets to Alfred. -
@deanishe this is really cool! Do you think it would be feasible to make it a two-way sync by adding Alfred snippets (perhaps only ones with a particular tag) to ~/Library/KeyboardServices/TextReplacements.db with SQLite queries?
-
Clipboard snippets on iOS (iPhone/iPad)? Remote?
paulw replied to Cobraman's topic in Discussion & Help
@bed Do you have an updated link? I'd love to use this, but your link is for the old Workflow app. Edit: Nevermind, the link did work after all! -
Sorry for the late reply, and thanks for this.
-
I spoke to soon. It's still occasionally trying to update weird disks.
-
Well, after restoring the blacklist, it still threw errors, showing that it could not eject my boot drive (I supposed because it is not named "Macintosh HD") and as well, that it could not eject "Preboot" and "VM" which seem to be part of my boot drive core storage volume. However, after updating to the latest 4.0.3 pre-release, it seems to be working normally now.
-
Hi @Andrew, Thanks. The blacklist was empty. I clicked "Reset" and now it's populated with: Macintosh HD MobileBackups com.apple.TimeMachine* I'll test again next time I'm connected to external drives, since "Eject All" doesn't come up with nothing attached. I usually my boot drive. Perhaps the default blacklist could be set to match the actual name of the boot drive, rather than just the expected "Macintosh HD" name? Paul
-
Play Address — Play the URL in the frontmost browser or clipboard
paulw replied to vitor's topic in Share your Workflows
I appreciate your well thought out process here, and I agree!