Jump to content


  • Content Count

  • Joined

  • Last visited

About winterflags

  • Rank

Recent Profile Visitors

1,321 profile views
  1. I've set up a simple Hotkey-triggered NSAppleScript that will keystroke the query currently in the clipboard: on alfred_script(q) tell application "System Events" keystroke q end tell end alfred_script My question is, what if I use this to keystroke passwords? Can I do it securely? Obviously there is a clipboard history that needs to be disabled. Are there also Alfred logs somewhere that keep the results of the workflow/applescript? Does it matter if the script uses the "compile" settings or not? Thanks!
  2. Bump. (Hope that's okay). Does anyone know if Alfred Remote can initiate workflows on the computer, if it's locked or sleeping?
  3. Thanks a lot! Got it to work by assigning hotkey and binding it to a Run NSAppleScript with these contents: on alfred_script(q) set myName to computer name of (system info) if myName = "Computer-A" then tell application "Alfred 3" to search end if end alfred_script
  4. Thanks for that dfay, that should work nicely. I tried assigning an Alfred Hotkey to SHIFT + ALT + SPACE, and then tried to bind it to Run NSAppleScript and alternatively Run Script, can't get it to work however. Should this script be functional? set theComp to computer name of (system info) if theComp = "Computer-A" then tell application "System Events" to keystroke "space" using {option down} else if theComp = "Computer-B" then return end if I also tried to prepend/append: on alfred_script(q) end alfred_script … which didn't do anything.
  5. Is there some way to exclude a certain workflow from syncing between my two computers running Alfred? I'm using Dropbox to sync Alfred. The reason is that when I access computer A from computer B via screen sharing, pressing ALT + SPACE will Show Alfred on computer B, and not computer A. So I've set up an alternative Hotkey to Show Alfred. But now I need to be able to only use it on computer A, and not computer B. Thanks!
  6. Perfect – it works. Alfred is such a great tool. Thanks!
  7. Hello everyone! I've started working on an Alfred workflow that's supposed to take a Finder item, and search for its filename on the web (preferably on a specific site using Google). My thought was to use the File Filter to select the file in Finder, and then use the Action menu to open my workflow. It should then just be a matter of passing the filename to Open URL along the pattern of: https://www.google.com/search?q={query}%20site%3Amyhomepage.com But how do I get the filename and create a query out of it? Is there an easy way to do this using Alfred's native tools, or is a B
  8. Keen observation! That solved my problem, thanks. Funny coincidence that they were using the same key combination, so I changed the one used in Evernote.
  9. Edit: I realized that the thread topic is ambiguous. The problem I'm having is that including a certain AppleScript in my Alfred workflow makes the Alfred bar behave weird, refusing to go away. I've made a workflow that uses a List Filter to open a set of URLs depending on the argument provided. I also included an AppleScript that tells Evernote to open a certain notebook/stack. The script is visible as the /usr/bin/osascript in the image below. When I run the workflow with the AppleScript attached to it, the Alfred Input Window closes but then displays again – with the previous in
  10. Can Alfred Remote sleep/shutdown a computer, even if it is locked? (Or indeed perform other actions, even if the computer is locked). The reason I'm wondering is because OS X has a Wake-on-LAN function that wakes my iMac whenever I open my MacBook, disconnect or connect my iPhone to power. I have my iMac in my bedroom, and it's pretty annoying that the iMac wakes when I plug my phone in for charging over the night. So if I could make Alfred Remote force the iMac to sleep, without having to get up and type in the password to my iMac, it would be great.
  11. Thanks for supplying the demo! It did what I wanted to achieve.
  12. Hi @deanishe, thanks for your help! I'm not sure if I'm quite getting how to do this in practice. Also, I'm not sure how to get the echo to work with the whole Terminal Command (it also does other stuff). I've added some images just to make it more clear what I'm attempting: Terminal Command: (The last image is obviously not going to work with the echo, as it stands).
  13. Based on a File Filter, I want to go to two locations with Terminal, within the same Workflow. Let's say the file filter path result is: ~/my/folder. The first part of the workflow will simply go to cd {query} which navigates to ~/my/folder. In the next part of the workflow, I want to keep the last part of the query – "folder" – i.e. the "Display Name" in the File Filter, and interject it in the path ~/my/other/folder. I guess there might be multiple ways to achieve this, and the way I've been trying to figure out has been to modify the query via string replacements, so that ~/my/ beco
  14. Okay, I actually solved this myself within a few minutes after posting the question, d'oh. What you do, is add a Terminal command. And type in cd {query}. To make it work with path names that have whitespace in them (space bar), mark the checkbox Escaping: Spaces.
  15. I have created a small workflow that uses a File Filter to match the name of a directory (public.folder), and then open it in Finder when pressing Enter. However, I also want to open Terminal and go to that path (cd ~/my/folder). Is it possible to somehow paste the query result from the File Filter, into a Terminal Command, in the workflow?
  • Create New...