Jump to content

Jasondm007

Member
  • Content Count

    255
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by Jasondm007

  1. Works great on my end now, too! Thanks @Andrew (and @vitor)!!
  2. @vitor FWIW - I've had this issue for quite some time, too. macOS 10.15.6 Alfred 4.1.1 (1170)
  3. I would love to be able to directly access all of Alfred's default file actions in my workflows. @Andrew recently added some awesome new actions for the buffer - and, Alfred already included some of the other default file actions, like Reveal and Browse - but I'd love to be able to access other default file actions, too - such as Open With, Recent Documents, etc. At the moment, if you want to access these without extra steps, you have to use GUI-based approaches that type the file action's name into the File Action panel, which are always imminently fragile and problematic.
  4. @csaborio & @dfay Out of curiosity, do you guys know if this issue has improved since your last post (re: Add Apple Music track to playlists and/or user library, etc.)? I'd like to be able to: Add the current track playing from Apple Music to my user library (so that it's now in my library, or so that I can later add it to playlist, etc.), and Add the current track playing from Apple Music directly to a playlist without first adding it to my user library As for the first issue, I've had a little luck using the following line to get the track into my library:
  5. @deanishe & @vitor Yeah, I hear you. I keep trying to peck at the other languages, but have struggled. If I told you how much time I've spent on these (and other terrible) workflows, you'd laugh. As you can tell, I don't work in tech and barely understand AppleScript. Baby steps! Ha While I'm obviously not familiar with these things, I still find it somewhat surprising there isn't a better library/dictionary for AppleScript to use for purposes of JSON outputs. The one that I relied on in the example - which is also used by a lot of other Alfred workflows - hasn't been maintaine
  6. @deanishe Thanks a ton for taking a crack at it. I really appreciate it. As you would expect, you script works perfectly! And, @deanishe & @vitor your comments were also really helpful, too. I'm going to try and wrap my head around them, and get back to you. At the end of the day, it's obvious that I just need to start getting better with other languages 🤦‍♂️. Thanks again!
  7. @deanishe Thanks for getting back to me. While I might not have done it correctly, before posting this, I tried adding "Unicode" to the text references in the script above. However, it didn't fix the problem. I might be totally wrong about it encoding an issue? Oddly enough, the emojis and everything seem to show up just fine in Script Editor. Thanks!
  8. I’m struggling to get a script filter to work which outputs a variable containing a mixture of text and emojis. In the output, Alfred just spits out empty characters for the emojis (⍰ question mark in a box). There’s obviously an encoding issue I’m overlooking, and I haven’t been able to quite put my thumb on it. To explain, I’ve created a script filter with AppleScript that’s supposed to let the user select a playlist from their Apple Music library (to play it, move it, etc). I recently moved over from Spotify to Apple Music, and I have a ton of playlists (put that's a separate proble
  9. @brunoc I figured out how to implement the local smart group search, in a relatively hackneyed manner by making a few minor changes to the workflow's "dtp-list-groups.applescript" file. For some reason, you have to use the string version of "smart group." I have no idea why, but apparently it's a known problem? In any case, here's the updated portion for others that might also want to be able to select local smart groups: on reiterateOnGroup(theRec, thisDB) set my numCurrentLevel to (my numCurrentLevel) + 1 tell application id "DNtp" repeat with r in (every child of theRec)
  10. @brunoc Previously, I asked about the possibility of adding Global Smart Groups to your workflow, which I'm sure is quite the Herculean task given how different they are from the standard groups the workflow currently searches for. Would it be possible - and perhaps much easier - to, instead, add an option for the workflow to search for local smart groups (similar to how you've added an option for searching tags)? Personally, I've started using these a lot lately. And, since they don't have the same sidebar section as global smart groups, your workflow would be great for quickly ac
  11. This is a relatively minor feature request, but I'd love it if Alfred's Bookmarks search displayed each bookmark's full folder hierarchy. At the moment, it only shows the enclosing/parent folder's name in brackets. While my folder hierarchy for bookmarks is relatively simple compared to other files, there are some areas where I'd find it incredibly helpful to get more information about the location of each bookmark (particularly with research-related bookmarks). To explain what I'm looking for, consider the following example for a bookmark to this forum, which is located in a folde
  12. @vitor I would definitely echo @politicus statement about how awesome this workflow is! It's definitely near the top of my most used workflows. Somewhat related to @politicus question about blacklisting items, is it possible to exclude temp/invisible items? I might be wrong, but the issue seems to be limited to Microsoft Word files. When I run your workflow, it always shows a handful of Word files that start with "~$". I notice them whether I run the workflow on my Downloads or Desktop folders, etc. Thanks again for sharing the workflow!
  13. @deanishe Thanks for getting back to me! Not from what I can tell (at least, not in the same way that every other app-specific shortcut on my computer works with BTT). That's why I was asking about how to return the bundle ID of the focused app through a script. There's has to be a general way to do this outside of Alfred, right? How does Alfred do this? It's not really Gremlin water, right? I thought about going this route previously, but didn't like the idea of adding a bunch of new (intermediary) hotkeys to Alfred. They're
  14. @Andrew OK - I think I understand what you mean here. Thanks! I'm sure I'm using the wrong terminology here, so please bear with me. But in layman's terms, I was wondering how I could tell other apps, like BTT - which I often use to kick off Alfred workflows - whether Alfred is the focused app (i.e., since the frontmost app-related checks, that I'm familiar with, won't work). Is it possible in a script (in any language) to tell whether Alfred is the focused app (i.e., that his search bar is open)? Put differently, if I launch a shortcut with BTT (or anything outside of
  15. @Andrew Thanks for getting back to me, and for your recommended approach above. I've been using it today, and it's working great. I was hesitant to copy things to the clipboard in this fashion, but everything seems to be working fine. To be honest, I had largely stopped using app-specific hotkeys with Alfred (for the depletion reasons we discussed previously), and I did not realize that the focused app variable worked with Alfred (i.e., so that it returned Alfred as the focused app). While I'm obviously not much of a coder, I assumed that it wasn't possible based on our previous di
  16. @Andrew Thanks a ton for responding to my message! I really appreciate you walking through everything. That’s very kind of you. As far as behavioral changes go, perhaps my use patterns are just a little different from the norm? While I’m not so concerned about consistency with Spotlight - after all, if I liked it, I wouldn’t be such a huge fan of Alfred 😜 - I can certainly appreciate the speed for others who might want to quickly enter a new search (i.e., because the query’s text is still highlighted). The reason I suggested shifting the cursor to the right of the query (after the
  17. @vitor Thanks for getting back to me! I initially considered doing what you mention above, but was hoping there was an easier way of dealing with the issue. As I mentioned above, it seems like more of a UX issue than anything. I just have to remember to hit the arrow, if I'm looking at the results from a previous query. To illustrate the description from my previous post, I've put together a short video. It's scaled down to meet the size restrictions here, so my apologies for its quality. I've attached the hotkey to a Large Type output, so it's easy to see what I mean about how the
  18. Is there a way to configure a hotkey so that it always passes a selected/highlighted file in the results? More specifically, I have Alfred set up so that, when he opens, he shows his previous search results (Advanced - History). Assuming there’s an old query to display, by default, Alfred automatically selects/highlights the text from the previous argument. This text also stays selected/highlighted until the user clears, modifies, or unselects it (e.g., right/left arrow keys). As a consequence, if you use hotkeys to pass files to workflows (i.e., setup w. Section in ma
  19. @dfay & @xilopaint - Thank you both so much for sharing your workflows for splitting double paged PDFs. You guys are a lifesaver! I have been doing this manually in Adobe Acrobat for eons - and cursing every moment of it. Can't thank you both enough!!
  20. @deanishe Thanks a ton for getting back to me! While I understand what you mean conceptually, most of this is a little above my skillset. Let me do a little research and tinkering around, and see if I can stitch together some kind of a test workflow to share. Thanks again!!
  21. @deanishe This is probably a stupid question, but is it possible to feed the output from the mdfind command directly into the "scopes" field of a File Filter (using a JSON Config utility)? In short, I'd like to create a standard File Filter for searching within a set of folders with a specific tag ("Notes"). Because these folders fluctuate, however, I didn't want to just drag a set of static folder locations into the File Filter's Scope panel. Instead, I was hoping to feed the "scopes" field of a JSON Config utility the output of the following search (mdfind 'tag:Notes
  22. Thanks a ton @brunoc!! I really appreciate it.
  23. @GuiB Thanks for the suggestion. I was actually trying to trigger Alfred's "Open with" file action directly (or any other file action, for that matter). I wanted to attach a global shortcut to it (because I hate right-clicking things and bumbling around with the default "Open with" contextual menu in Finder and other apps). Alfred's file action for that is much easier for me to see and it avoids the mouse. Thanks again!
×
×
  • Create New...