Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

1,149 profile views

joonas's Achievements

Helping Hand

Helping Hand (3/5)



  1. This is an old topic by now, but I was doing some googling and this post was the first result when I searched for "Alfred reopen windows when logging back in" and so I thought I'd let anyone stumbling into this know that I did indeed add this to packal years ago and I believe I've since updated it a few times. Updated System Commands.alfredworkflow: - Packal: http://www.packal.org/workflow/system-commands - Github: https://github.com/joonaspaakko/System-Commands.alfredworkflow There might be some differences in wording and whatnot, but the .alfredworkflow files are identical in both sources. I also updated the previous Dropbox link just now, but I'm sure I forget to keep that up to date in case I need to make some changes. The original workflow is still here.
  2. You can't see it when you're searching for files though... or at least I don't. This actually kind of ties in with my suggestion in a way. I was thinking about it and I realized that when you're searching for files, you can't see the preview.... or any of that info. If that were a thing, the problem I have described in my suggestion actually wouldn't be much of an issue ( in most cases ).
  3. This has always been something that bothered me. I'd love if if I could preview/navigate the search results just like you can on Finder. In finder you press space (or what ever) to preview and then you can use arrow keys to move to another file without having to close and open the preview window in between. If I'm trying to find a file based on the visual contents in Alfred I have to basically: Shift ( Open ) Shift ( Close ) Arrow Down Shift ( Open ) Shift ( Close ) Arrow down Shift ( Open ) Shift ( Close ) and so on... until I've found the file I'm looking for or I ran out of files to preview. It would be easier if I could just press arrow down (or up) while the preview window is open.
  4. I recently switched from Total Finder to Path Finder. Total Finder adds improvements to Finder, so it doesn't affect applescript usage. Because Path Finder is its own application that has limited applescript support, my old workflow doesn't work anymore. The old workflow opens current Finder selection in an application based on user input ( Alfred File Filter ). This is what I've been able to gather: It is possible to get the current folder in Path Finder with a workaround It's not possible to get the current selection in Path Finder I was thinking that since Alfred is able to get the selected files from Path Finder and pass them on to a File Action, it's possible that maybe there's a better way to do this workflow? It's important that I can use the workflow by pressing hotkeys and writing in the application name. My old workflow: Hotkey File Filter ( for applications in the Applications folder ) Run Apple script: tell application "Finder" open (get selection) using path to application "{query}" end tell My new workflow works with Path Finder (barely): Hotkey File Filter ( for applications in the Applications folder ) Run Apple script: -- Shortcut to trigger Path Finder method File > Reveal in Finder. It retains the selection. tell application "System Events" key code 3 using {option down, command down} end delay 1.2 tell application "Finder" set selectedFiles to (get selection) close every window quit open selectedFiles using path to application "{query}" activate application "{query}" open end tell So yea. this works, but it's not very ideal...
  5. Any suggestions on making a file action that allows me to search for files in the selected folder ( in both alfred and finder )? I couldn't get far with this, since I can't attach File Action to File Filter... Should I put this to feature suggestions?
  6. What I was after is slightly different. Alrighty. I do use that, but I also happen to use an incredibly mixed bag of methods depending on the situation... or something. I wanted to use this keyword in a situation where I've made the mistake of opening Alfred with the normal hotkey. I would've liked it if I could've just continued writing "action" and hit Enter to get to the file actions. Now, while not incredibly big deal, I need to Esc out of the regular Alfred window and use the hotkey properly this time. Just seems like unnecessary backtracking, considering the window is already open. I guess the solution is to just remember to press the right hotkey.
  7. According to the cheatsheet, there is a keyword "action", that will: "Show list of available Actions for selected Finder item". It doesn't seem to work...? I've looked everywhere in the preferences to make sure I haven't disabled it or something, but I can't find it there. Maybe I've understood the use case wrong? It doesn't seem to do a thing. Just goes to fallbacks.
  8. I have no idea why those aren't working, but I'm glad you asked this question, because it got me curious. This has been bothering me for a long time as well. I started looking into this and I found another way to do it. Since I couldn't figure out how to change "Reopen windows..." setting via code, I ended up making what is essentially a macro that goes through the same process you go through, when you manually trigger one of these from the apple menu. The way this workflow differs from Alfred's own System commands, is that it honors the "Reopen windows..." setting. System Commands.alfredworkflow To change "Reopen windows..." setting quickly: - Use keyword with modifier “Cmd” - Change “Reopen windows…” setting (Space) - Cancel (Esc) I'm not very good at making workflows, so maybe this is not perfect, but it works for me, so I'm happy.
  9. I get incredibly paranoid pretty much every time I use these file actions. Partial reason for this request ...and my paranoia, is how copy and move silently fail if the file(s) already exists in the destination folder. So, I've developed a habit of always navigating to the destination folder to make sure the file(s) were copied or moved there. Which kind of makes these folder actions useless for me. I might as well just copy or cut and paste from finder folder to another and that would be more or less just as convenient, if not more convenient. Maybe there could be a osx notification that says: "File succesfully copied.", or something. I mean sure... When you move a file and it disappears, it probably ended up in the destination folder, but when you're copying, you won't be able to tell. You just have to assume or make sure it did. Of course you can't see the file disappear if you do it all in Alfred and you don't have the finder folder open. In addition to this, It would be great if Alfred handled copying and moving more like finder does, when it detects the file(s) already exist in destination folder. The way it gives you options: "Keep both", "Stop", "Replace".
  10. Sounds like what you are getting is the fallback results. If you enable a search engine in the "Web Search" tab, you need to invoke it with a keyword. DuckDuckGo should show up if you start writing "Duck ". Fallbacks are shown when your query doesn't match a keyword or an app or what ever else you've set Alfred to look for. If you want DuckDuckGo to show up as one of the fallback results, you can do that too. In the "Default Results" tab, at the very bottom, there is a button called "Setup fallback results". You can manage the fallbacks there.
  11. I've had similar issues in the past. I don't know if there's a better solution, but I've gotten around it in the past with a workflow like this: Trigger: Hotkey with no arguments Action: Run NSAppleScript Paste this into the Run NSAppleScript: on alfred_script(q) tell application "Finder" open (get selection) using path to application "/Applications/Adobe Photoshop Lightroom 5.app" end tell end alfred_script Note that you can get application path pretty easily by searching for an application in Alfred and by dragging it to the script editor in Alfred workflows.
  12. Is there a way to see path of the file I've placed into the "Open File" action ? The workflows I've made for myself are all pretty simple ones, that just open files in specific apps. I'm constantly bumping into the issue that I have no idea what some of those files are. Especially if it's a file I haven't launched in a while. The full path would give it some more context (or if I could open the path in finder). The most irritating thing is that some of these files share the same name and extension, but exist in different locations. I have no way of knowning which one is which, unless I remember it based on the hotkey or keyword I've given the action.
  13. Thanks. That'll do.
  14. I haven't really had any issues finding the files themselves. I'm just not too fond of the steps you need to take to open the file(s) in a specific app, which I admit is not the worst, but I would love to be able to take a specific action after I've selected the files I want. Is it possible to make a workflow where I can select files in Alfred and press a hotkey to open whem in a specific application? Like this: Open alfred > Write "find file.jpg" > Press hotkey that opens the file in Photoshop ( and similarly open buffered files in a specific app, via hotkey ) The best I've been able to do is make a File action workflow, but that doesn't really tick all the boxes for me. It's pretty close to what I want, but I'd rather use a hotkey instead. I tried to make a workflow with "Open file", but I couldn't figure out how to pass in files from Alfred selection.
  • Create New...