Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Everything posted by deanishe

  1. If you upload the non-working workflow and post a link to it, we can help you fix it.
  2. Sounds like there might be a quotation mark (or another "special" character?) in one of your folder paths. Is that perhaps the case?
  3. Not in native AppleScript, I believe. I think you'll either have to use something like NSTask or use a different language that doesn't fiddle with subprocesses' STDERR.
  4. The problem isn't with my.scpt, it's that you're running your script from another AppleScript with run script. run script captures and returns the output of the script you run: log run script "my.scpt" with parameters "{query}"
  5. Run Script, not Run NSAppleScript. I'd be surprised if Run NSAppleScript worked at all, as you're now trying to call Alfred from Alfred's own main thread. Don't use Run NSAppleScript unless there's a good reason to do so.
  6. I'd assumed OP meant via Alfred's navigation mode, which is why I suggested something completely different. I think your File Action is probably the best solution.
  7. I don't want automount or auto-execution when a directory has changed. I just want to not have to run every configuration every time because the target might not be mounted or I want to quickly sync only the directory I just changed.
  8. With a Run Script Action and AppleScript: tell application "Alfred 3" to search "{query}"
  9. As best as I can tell, Word is behaving exactly as it's supposed to. If you expand a snippet/paste text, each newline gives you a new list item in Word. You are expanding the snippet in a paragraph that already has a number (in Word), right? A single-line snippet shouldn't mess up Word's numbering provided the paragraph is already correctly numbered. The question doesn't really make sense. The way Word handles snippets/pasted text is entirely down to Word. Other applications cannot influence Word's behaviour via the clipboard. FWIW, Word doesn't merge lists. If you expand/paste plaintext into an existing list, each newline will create a new list item. If you expand/paste in a normal text paragraph, each newline creates a new paragraph.
  10. Hi @silverbenz, welcome to the forum. You can't, basically. Alfred doesn't make bookmarks available to workflows. If you use Alfred's built-in bookmarks-search feature, you're stuck with Alfred's built-in bookmarks handling (i.e. default browser or owning browser only). If you were using Safari, there's a workflow that could help, but there's no equivalent for Chrome, AFAIK.
  11. Hi, @Eukaryote, welcome to the forum! Snippet expansion works exactly as expected for me with Word 15.32/Alfred 3.6.1/macOS 10.12.6. Which versions of what are you using? Can you be more precise, or better yet, upload a test document that has the issue (and post a link here) and describe which snippet to expand where? Alfred snippets are plaintext-only, so I suspect it is some bad interaction with your Word document formatting. In fact, I often use Alfred to avoid formatting issues, as most apps automatically give plaintext the same format as what it's pasted next to. But MS Word has always been a bit special.
  12. Google documents (.gsheet etc.) are just JSON files containing the URL of the real document online. I don't think you can create a Google-native document via the filesystem. AFAIK, there isn't an actual discrete file format for Google-native documents. Which is kinda worrying now that I think about it… With this new Google Drive File Stream thingy, you can't even open .gsheet JSON files in any other app: they're marked cloud-only. Google are probably pleased with themselves about that UPDATE: Just tested it. Creating an empty .gsheet document does nothing. Silly Google.
  13. Haha! I'm going to use the shit out of this workflow Feature requests! ? Remote source/target folders? That's far any away my main use for rsync, tbh, though I've plenty of local folders to add as well It'd be cool to be able to run just one configuration instead of all of them. (Perhaps run by default, ⌘↩ to delete, or vice versa?) I use rsync to back up my drive, but the target drive isn't mounted most of the time. It'd also just be generally cool to be able to only sync the folder I just changed.
  14. Gah! I should have posted faster. Now I look like a dummy. Also, I completely forgot that cover view is a thing. Like, woah… I totally thought that went away years ago.
  15. Presumably Icons/List/Columns (⌘1, ⌘2, ⌘3). So, the thing about Alfred opening stuff in general is that all Alfred does is ask macOS to open the stuff (optionally with a specific application). How any application goes about opening stuff when asked to is entirely and exclusively that application's business. What I'm saying is, (a) Finder kinda sucks, and (b) questions of the form "How do I change the way Alfred opens XYZ?" are really questions about XYZ, not Alfred, so an XYZ-related forum is generally a better place to ask. Still, everyone uses Finder, so we know a thing or two about it here, too. Personally, I think the best solution is to approach the problem from another direction: write a script that closes all Finder windows and/or tabs except the current one. Assign it a Hotkey in Alfred, or run it with my AppScripts workflow, which is made for this kind of stuff (I have a similar script for Safari). If it were any other application and filetype than Finder and folders, you could write a stub application that implements the behaviour you want, but I think that's a bit too risky with Finder. If you try it, I'd love to hear how it works out, though
  16. "It doesn't work" is not a helpful description of an issue. Please follow the instructions in the pinned thread. @xilopaint might be right: perhaps you just need to run Fixum. OTOH, he might be completely wrong because he's guessing, as your description contains no actionable information (you didn't even say with version of macOS you're on—which is very relevant to @xilopaint's advice).
  17. Sounds a lot like this issue. Are you sure you have the latest version of the workflow, @Januz? If so, please post the log from Alfred's debugger.
  18. What version of macOS are you on? GitHub recently changed their SSL settings, and the Python version on El Capitan (which is old and has very crappy SSL support) and earlier no longer works (with GitHub).
  19. No, I'm pretty sure there isn't. File Filters order results by last-accessed/-used time (that's the order the system search index returns them in, I believe), and then Alfred may move a few results to the top based on its own frecency-like sorting. Neither cares about the type of the file (as far as ordering results goes). If you want to sort results by any other criteria, you'll have to implement your own filtering & sorting, which in the case of a File Filter, means implementing your own search, too.
  20. It's difficult to say without the app, and there doesn't appear to be a way to easily download a demo… As a rule, you can almost always simulate clicking/tabbing around in the window using AppleScript, but that's kind of a last resort of automation.
  21. Superb! Thanks very much for the tip. Check out version 2.0. BTW, have you tried ControlPlane? It can automatically switch network locations (and lots of other stuff) based on which WiFi is nearby. Very handy if you switch networks a lot.
  22. It is. If it's only applications you're having issues with, it might be worth trying rebuilding your Launch Services database: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain u -domain s -domain l -v
  23. You could add it to the workflow relatively easily by copying the existing Hotkey row that opens the action list for the current tab. Replace the self.tab-actions external trigger call with a Run Script with language = /bin/bash containing: export ALSF_ACTION="Open in Chrome" ./alsf action url Note: I haven't actually tested the above. It should be at least close to working.
  24. The same as between Quitting and Force Quitting an application, basically. By default, kill sends SIGTERM (15). kill -9 sends SIGKILL (9). Here's a good explanation.
×
×
  • Create New...