-
Posts
8,759 -
Joined
-
Last visited
-
Days Won
522
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by deanishe
-
The new-ish quicklookurl feature in the JSON feedback only works with URLs. The "standard" Quick Look feature (i.e. using arg) also works with filepaths. IMO, quicklookurl should also work with filepaths. It's a very handy feature, and not having it reduces the utility of quicklookurl considerably.
-
Workflow to reformat paragraph or combine lines of text
deanishe replied to jonteamere's topic in Workflow Help & Questions
Run Script, Language = /usr/bin/python with input as argv Script: from __future__ import print_function import re import sys print(re.sub(r'\n+', ' ', sys.argv[1]), end='') That will replace one or more consecutive newlines with a space. Connect to whichever inputs/outputs you need. -
Locally-mirrored services can easily be searched with a File Filter. Online-only services are much more complicated. A proper PITA to search multiple services with reasonable performance.
-
That's a pretty vague question, tbh. Do you have any particular services in mind?
-
99% sure Alfred 3 supports Yosemite (Mavericks, too, IIRC). Almost impossible to to say what the issue is without the workflow itself. A common issue with AppleScript is calling Alfred itself. The application name has changed, so tell application "Alfred 2" doesn't work under Alfred 3.
-
Packal: Workflow and Theme Repository
deanishe replied to rice.shawn's topic in Share your Workflows
Yeah. It looks like Andrew has removed the "Export as URL" option from Alfred 3. That was the default way in Alfred 2, which is why Packal uses it.- 131 replies
-
- repository
- updates
-
(and 1 more)
Tagged with:
-
Packal: Workflow and Theme Repository
deanishe replied to rice.shawn's topic in Share your Workflows
That's the wrong type of URL. If you read the instructions on Packal, it says right below the URL field that you enter the alfred:// URL. That is to say, this one: alfred://theme/?t=eyJhbGZyZWR0aGVtZSI6eyJyZXN1bHQiOnsidGV4dFNwYWNpbmciOjgsInN1YnRleHQiOnsic2l6ZSI6MTEsImNvbG9yU2VsZWN0ZWQiOiIjQjBCRUM2RkYiLCJmb250IjoiU3lzdGVtIExpZ2h0IiwiY29sb3IiOiIjRUNFRkYyMzUifSwic2hvcnRjdXQiOnsic2l6ZSI6MTYsImNvbG9yU2VsZWN0ZWQiOiIjNzU3NTc1Q0UiLCJmb250IjoiU3lzdGVtIExpZ2h0IiwiY29sb3IiOiIjQTRBNEE0OUIifSwiYmFja2dyb3VuZFNlbGVjdGVkIjoiI0VDRUZGMjAwIiwidGV4dCI6eyJzaXplIjoxNiwiY29sb3JTZWxlY3RlZCI6IiNFQ0VGRjJGRiIsImZvbnQiOiJTeXN0ZW0iLCJjb2xvciI6IiNFQ0VGRjI2NiJ9LCJpY29uUGFkZGluZ0hvcml6b250YWwiOjUsInBhZGRpbmdWZXJ0aWNhbCI6OCwiaWNvblNpemUiOjQwfSwic2VhcmNoIjp7InBhZGRpbmdWZXJ0aWNhbCI6MiwiYmFja2dyb3VuZCI6IiMzNjQ2NEZGRiIsInNwYWNpbmciOjE2LCJ0ZXh0Ijp7InNpemUiOjM2LCJjb2xvclNlbGVjdGVkIjoiIzAwMDAwMEZGIiwiZm9udCI6IlN5c3RlbSBMaWdodCIsImNvbG9yIjoiI0VDRUZGMkZGIn0sImJhY2tncm91bmRTZWxlY3RlZCI6IiNGRkJBQjhGRiJ9LCJ3aW5kb3ciOnsiY29sb3IiOiIjMjUzMTM4RkYiLCJwYWRkaW5nSG9yaXpvbnRhbCI6MTYsIndpZHRoIjo1NjAsImJvcmRlclBhZGRpbmciOjEwLCJib3JkZXJDb2xvciI6IiMyNjMyMzkwMCIsImJsdXIiOjAsInJvdW5kbmVzcyI6MiwicGFkZGluZ1ZlcnRpY2FsIjoxNn0sImNyZWRpdCI6IlJlb255IFRvbm5leWNrIiwic2VwYXJhdG9yIjp7ImNvbG9yIjoiI0ZGRkZGRjAwIiwidGhpY2tuZXNzIjoxfSwic2Nyb2xsYmFyIjp7ImNvbG9yIjoiI0VDRUZGMjI2IiwidGhpY2tuZXNzIjoyfSwibmFtZSI6Ik1hdGVyaWFsIERlc2lnbiAoRGFyaykifX0=- 131 replies
-
- repository
- updates
-
(and 1 more)
Tagged with:
-
Script Filter - JSON error: JSON text did not start
deanishe replied to JordanX's topic in Workflow Help & Questions
Out of interest, what shell voodoo did you use to do that? Or did you fix the server response (which seems to be incorrect)? -
Maybe. Hard to say, as you haven't explained what you're ultimately trying to achieve. There might be a cleaner way to do what you're trying to do.
-
You don't. If you use Alfred's File Selection Hotkey, as Andrew described, you'll end up with the right file. Or are you not after opening the file in Navigation mode?
-
Show Most Recently Used File by Application
deanishe replied to lebonk5's topic in Discussion & Help
Seems I don't use a whole lot of native apps… There's a property list located at ~/Library/Containers/com.microsoft.Excel/Data/Library/Preferences/com.microsoft.Excel.securebookmarks.plist It appears to contain the same files as Excel's Recent Files menu, but not in any particular order. It wouldn't be difficult to extract the file paths from that file and show them in a workflow. -
I was trying to figure out what was going on with @rounak's computer there. I'd never noticed this option before, and I must say I'm much happier with Navigation mode now I've turned it on
-
You need to do a bit of UI scripting with Finder to achieve that. Here's an example workflow that does what you ask.
-
Script Filter - JSON error: JSON text did not start
deanishe replied to JordanX's topic in Workflow Help & Questions
You're not cleaning the server response properly. The server sends back this: "<items><item uid= \"test\" arg= \"one\"><title>em11@mail.com</title><subtitle>em11@mail.com</subtitle><icon>icon.png</icon></item></items>" But you only remove the backslashes: "<items><item uid= "test" arg= "one"><title>em11@mail.com</title><subtitle>em11@mail.com</subtitle><icon>icon.png</icon></item></items>" You still need to strip the surrounding double quotes and remove the spaces after uid= and arg=: <items><item uid="test" arg="one"><title>em11@mail.com</title><subtitle>em11@mail.com</subtitle><icon>icon.png</icon></item></items> -
Show Most Recently Used File by Application
deanishe replied to lebonk5's topic in Discussion & Help
As best as I can tell, Alfred's Recent Documents… only contains documents that were opened via Alfred. -
Script Filter - JSON error: JSON text did not start
deanishe replied to JordanX's topic in Workflow Help & Questions
Dropbox? Google Drive? Some web server? -
Show Most Recently Used File by Application
deanishe replied to lebonk5's topic in Discussion & Help
No. Search for Excel in Alfred, select the Excel result and use Alfred's "Actions" key (which is right arrow by default, I think) to show Alfred's File Actions. Choose the "Recent Documents…" File Action to show Excel's recent files in Alfred. You can check which key is set to open the File Actions menu in Alfred Preferences > Features > File Search > Actions. -
Script Filter - JSON error: JSON text did not start
deanishe replied to JordanX's topic in Workflow Help & Questions
First of all, when you're having a problem, please post the broken workflow somewhere instead of pasting bits of it into the forum. Unless you're doing something very obviously wrong, it's almost impossible to diagnose an issue without being able to run the workflow. And expecting people to rebuild the workflow for themselves to help you debug is unreasonable. That said, the "obvious" error here is that your XML is invalid. There's no closing </items> element in the XML from your API. Presumably, Alfred can't parse the XML because it's invalid, so it's trying to parse it as JSON instead. -
Simple enough to copy this Google images search script into your workflow. No idea about the other two.
-
Forget about messing about with calendar data directly. Use icalBuddy instead (brew install ical-buddy). The problem with data from Calendar.app is that it if you naïvely ask the app for today's events, it won't return any repeating events unless today is the first occurrence in the sequence. Instead, you have to grab every event that starts on or before today (which is horrendously slow), and then calculate the actual occurrences yourself based on the recurrence rule and excluded dates. Recurrence rules are not simple things.
-
How to use Bash variable in Script Filter output?
deanishe replied to clearphase's topic in Workflow Help & Questions
That JSON is actually invalid. You need to remove the trailing comma here: "subtitle": "${date}", That is to say, it should read "subtitle": "${date}" -
Snippets gone and clipboard content not shown
deanishe replied to dschmuck's topic in Discussion & Help
Also, the Dropbox website if you don't use Time Machine. -
Export Alfred 3 workflow for Alfred 2 users
deanishe replied to 29decibel's topic in Discussion & Help
I think just editing a workflow with Alfred 3 makes it incompatible with Alfred 2, even if you don't use any 3-only features. Just fixing a typo is enough to break compatibility.