Jump to content

jdfwarrior

Member
  • Posts

    2,028
  • Joined

  • Last visited

  • Days Won

    55

Posts posted by jdfwarrior

  1. bump.

     

    Not you can't but you could set a hotkey to do something like this...

    tell application "System Events"
    	set theapp to (first process whose frontmost is true)
    	tell theapp
    		tell menu bar item "Window" of menu bar 1
    			click menu item "Bring All to Front" of menu "Window"
    		end tell
    	end tell
    end tell
    

    So you could select the app and just press a key and bring all its windows to the front

  2. I use CMD+Space to activate Alfred. Works great (and the minimal space between the keys is perfect for my left thumb's damaged ligaments).

     

    However, when using Adobe Creative Cloud, I'd really like to reserve CMD+Space for standard Adobe zoom function.

     

    So, is there a way to selectively disable the Alfred keyboard shortcut for certain applications?

     

    Thanks!

     

    Unfortunately not. You could try setting Alfred's hotkey to a Cmd double tap. That would still be relatively easy and would maintain the hotkey you need in CC.

  3. I have a workflow that I created from a terminal command that will turn off wifi, and another one that will turn it on. Is it possible to schedule these, so that wifi turns off at the same time each day and turns on at the same time each day?

     

    You are going to need a LaunchDaemon using launchd ... essentially the LaunchDaemon runs at system startup and keeps running, so that you can run timed tasks.

     

    Starter: http://nathangrigg.net/2012/07/schedule-jobs-using-launchd/

     

    Another good option for this is just to use Keyboard Maestro. You can create triggers for all kinds of things with it.

  4. Is there a way to tie my shell/python/whatever script in with Alfred's "Lock" action?

     

    In the immediate instance, I'd like to clear all SSH keys and revoke sudo access when I lock the console. The shell commands to achieve this would be "ssh-add -Dx ; sudo -nK". For my purposes it wouldn't matter whether the script gets run before or after the console is actually locked.

     

    There isnt a hook from Alfred for that but you can make a workflow that ran your script then executed the lock system command. Then you can disable the built in lock command

  5.  

    Hi All

     

    It is easy to lock the computer using Alfred using the Remote.  However, I want to be able to unlock the computer (with a password) from the Remote so I can use spotify etc from the remote.

     

    I don't want to have to go to the computer and unlock!

     

    Is there a way??

     

    Thanks

     
    Andrew

     

     

    I'm not really sure that this is possible. I attempted to do set up an applescript that would simulate the keypresses and it just sends them into the OS and not actually to the login screen.

  6. Is there a way to make Alfred behave like spotlight so the search bar automatically comes up when you click the Alfred icon?

     

    Additionally, is there a way to make the Clipboard Snippets have an icon in the menu bar?

     

    Thanks

     

    Unfortunately, the answer is no to both. You can however setup hotkeys to to toggle Alfred or show the snippets UI. If you want help for doing either, let me know and I'd be happy to help

  7.  

    Hi Shawn, 

     

    I guess I worked that one out for myself! But this is rough and ready - it should be a seamless process.

     

    Hi Tyler,

     

    Same comment as above.

     

    I am coming to the conclusion, especially when it come to workflow, that this was a rushed release and many basic actions were overlooked for commercial reasons.

     

    Alfred need take stock of this basic functionality.

     

    Regards
    Howard

     

     

    Following Tyler's note and to agree, it's not available "yet". Alfred Remote is the result of a lot of time and effort on Andrew's part and certainly couldn't be considered a "rushed release". Software is an iterative process. Every software package has updates, fixes, and new feature additions. If any software product was withheld until every possible feature, every fix, every bug, every idea was implemented, we'd never see any of them. That being said, this is only the beginning for Alfred Remote. Andrew has lots of other ideas planned.

  8.  

    Hi Andrew, 

     

    This has beaten me and is unnecessarily complex. I haven't the time to fiddle around with the workflow I have created - I just want them to work in Remote.

     

    I respectively suggest that you revisit this and make it easy to use.

     

    Also, you could have prepared the videos for release at same time as the App.

     

    Leave it with you for now.

     

    Regards
    Howard

     

     

    The process to convert a current workflow into an item accessible via Remote wasn't designed to be a complex action. All that is required is to add an additional item to the workflow (the same process used to create workflows) to add an Remote Trigger. If you missed it above, Andrew outlined the step necessary for doing this 3-4 posts prior to this one.

  9. Just updated to 2.6 and got confused by remote.

     

    From the introduction I can only have a rough understanding of how remote works. It seems Alfred Remote can only submit a predefined, complete task, such as launch an application, or it can bring up the Alfred search box on my Mac and leave it unfinished, so that I'll have to finish the search term one my Mac's keyboard, is that right ?

     

    I'm looking for a solution of remote controller that can provide interactive operation; that is, I want to remotely control a Mac to navigate through the file system, and let me choose an application to open the selected file or folder. In other words, I'd wish that Alfred Remote can bring up the File Action panel, and let me remotely select an action from the iOS. Or at lease, I'd wish for a virtual keyboard (with extra arrow and modifier key buttons) in Alfred Remote. It's ultimately stupid to bring up the Alfred search box in Alfred Remote, and than switch to another remote keyboard / mouse app like BTT remote to finish the rest task.

     

    I'm not sure whether Alfred Remote is something I'm looking for, and I don't want to spend $5 for a test drive. Can we have a trial version or something ?

     

    Alfred Remote doesn't provide the results panel as you are looking for but, known actions, you could essentially do the same thing. By that I mean, Remote has the ability to do some of the tasks that workflows can do, but, you can also trigger workflows from remote as well. So,  if you have a workflow to perform the task in question, you could easily a remote trigger to that workflow and have Alfred Remote execute that. Ultimately Andrew and Vero would be the ones making the call on whether or not there were a trial version but I can say that I have never heard mention of one. 

  10. Is it possible to add a command switch to opening files? E.g. I want to open a powerpoint file to slideshow mode. That will required I use a /s at the back of the command. 

     

     

    Cheers Bernard Sia

     

    No you can't do that, but if you are a Powerpack member, you could create a result action to do it. This would mean that you select the file in Alfred, press the right arrow, and you would be provided the normal list of options, plus your current one to "Launch in Slideshow Mode"

  11. Hi, i usually create a "tunnel" to my localhost with ngrok (ngrok.com) on my terminal to expose my local website to the outside.

    I would like to be able do the same with Alfred :)

    I just bought the powerpack yesterday so i'm asking some help... 

     

    For example, if i write:

    ngrok 80 => it will create a tunnel and my app will be available at http://randomdomain.ngrok.com (port 80)

    ngrok subdomain myapp 80 => my app will be available on a custom domain http://myapp.ngrok.com (port 80)

     

    Thank you

    Alberto

     

    So are you saying you just want to be able to perform those commands quickly from Alfred? If so, you could make a workflow that has a keyword and a run script item, then in the run script, leave the language set to bash and enter your commands there. These commands are run relative to your workflow directory so if you need to run something from another location you would need to cd to that directory. Alfred also doesn't import your ENV so things like PATH and such aren't there. I say that because, referencing ngrok, you would probably need to launch it with the full path, not just "ngrok <params>"

     

    If you need some help setting this up, let me know

  12. Hi

     

    I use the Clipboard snippets feature A LOT with Alfred 2!!

     

    I think I've seen mentioned on this forum that the snippets are stored in a sqllite database..?

     

    If this is the case how secure is the content of this database?

     

    I sync Alfred via Dropbox and just thought that I should exercise some caution when storing sensitive info in my snippets??

     

    Thanks

     

    The data is stored in plain text so if you are worried about someone getting the data, you may want to be careful. If you can copying text that you are worried about getting in the clipboard history, you can set it so that certain apps, their data is ignored and not placed in the clipboard history

  13. I would like to find all the .wav files on my NAS.  I would also like to search the same volume for specific music track names.  How do I do that with Alfred?

     

    Thanks!

     

    Alfred's relies on Spotlight's metadata to search through your files. So first off, is your NAS currently being indexed by Spotlight? This would have to be enabled for Alfred to be able to search the drive

  14.  

    I have the ntfs for mac (paragon) and can read-write and formatting secondary disk to ntfs with ease. My spotligit displays all the results from the two discs. But the Alfred My only returns results from one drive that is to HFS

     

     

    Have you added the secondary drive to Alfred's search scope in Alfred's Preferences? Preferences->Features->Default Results?

  15.  

    Hi all

     

    I have a problem with the Alfred v2.5.1 and I can not find a solution.
    On my iMac I have installed a Yosemite in ssd and secondly hdd,that is format in ntfs and divide in 6 partition and I have placed my data there.
    When I do a search with the Alfred I have the results only from the ssd and not from the second drive.
    How I can have search and info from both drives.
    I just want to inform you that I have entered to search scope the partition from the second drive without success.
     
    Ps: when i do search with spotlight I have the info,data from both drives.
     
    Best regards

     

     

    Something is a miss here. Spotlight doesn't index NTFS partitions therefore, it can't be searching your data in Spotlight. If the secondary drive was HFS partitioned drive (a Mac OSX partition) then Spotlight indexing could be enabled on that drive. Once that was done, then Spotlight can index the drive and the drive could be added to Alfred's search scope. Then Alfred would be able to search the drive.

  16. I'm writing my first workflow, which launches two terminal windows.  Problem is, the apps usually (not always) launch on my laptop screen, while I need them to launch on my external monitor.  I’ve searched the Alfred web site and the forum for this, without much luck.

     

    I'm running Yosemite, fwiw.

     

    Any suggestions?  Is this something you'd control in Alfred?  Terminal?  OSX?

     

    I'm not aware of how to do this programmatically. I think about the closest you could get would be to use the functionality of assigning an app to a Space/Desktop that is built in to OSX. Open the app, right click on it in the Dock and select Options, the select the Display that you want that application to be visible on.

  17. Hello! I'm pretty new to Alfred and I appreciate all the help you can give!

    I'm trying to create a global shortcut that I can use to skip forward or backwards in MPlayerX (a Mac video player). In the app itself, all I need to do is press the left or right arrow keys (and that skips back or forward roughly ~10 seconds). For example, the shortcut (control + L/R arrow key) is not being used right now.

     

    (Not quite necessary, but some background: I'm always watching grad school podcasts on MPlayerX and typing in notes on Adobe Acrobat. I usually go back and forth between these apps to pause, rewind 10 seconds to re-listen to what the professor just said, and continue. If I can create a shortcut that does this globally, or at least while I'm still in Adobe, that'd save me so much time.)

     

    Thanks again!

     

    Assuming that you are a Powerpack user? 

     

    I'm not sure what path you wanted to go down... creating your own workflow or just downloading one that I created for you. Here is a link to a workflow that I have already created for you. If you would like to learn how it was created, let me know and I can walk you through a few things with workflows and how to created them. I set the hotkey to Fn+Right Arrow and Fn+Left Arrow

  18. I need to copy 5 form fields (one at a time) from a form in one browser

    I then need to paste these 5 fields into another form on a different browser

    I need both processes automated 

     

    In a previous post, I was told I can do this - with the help of Alfred's clipboard feature

    I'm not sure where to start...

    Can someone give me a few pointers?

     

    In Windows, I do this with AutoHotKey

    So, I start off in the first forms field

    The script sends a 'CTRL A' to select all in the field... then sends 'CTRL C' (and stores into a variable), then send TAB to move to the next field, then sends 'CTRL C' and repeats for the rest of the form fields

     

    Do I need to read up on how to use AppleScript?

    I wasnt sure how I would access Alfred's clipboard

     

    Any help would be great

     

    Thanks

     

     

    Omar

     

    The clipboard feature would be helpful if you were doing this manually. To automate it though you would need to be familiar with AppleScript as this would require a little UI scripting. 

     

    The clipboard feature is useful for copying multiple things and then having a UI to view previously copied text and being able to paste multiple past items. As mentioned though, this is a manual step.

  19. I want to run a Python script 

    How can create a keyboard shortcut do this?

    Can I supply an arguement when calling the script?

     

    Apologies in advance... if that's a super dumb question

    I've had Alfred installed for sometime, but never actually used

     

    Thanks

     

     

    Omar

     

    If you are a Powerpack member, then the way to do this would be with a workflow. In Alfred's preferences, click the Workflows tab, then click the + icon in the bottom of the list panel on the left. In the menu that appears, click the "Blank Workflow" option. Set the name and other such properties for your custom workflow. Next, in the editor area on the right, click the + in the top right corner. Select to add a Trigger->Hotkey then set the properties for the hotkey. Next, click the + in the top right again and select Actions->Run Script. From here, you can configure what you want to run. You can leave the language set to bash and enter commands to run the script the exact same way you would if you were at a Terminal. Alternatively, you could set the language to Python and enter your code here directly. Once you are done setting up the Run Script, save it and position your mouse over the hotkey item. A little tab should appear on the right side. Click the tab and drag it to the Run Script to connect them. After that, you should be all set. Let me know if you need any more assistance

  20. Hi, David!

     

    I'm trying to create something like real time progress indication for my Alfred workflow. So, I've tried:

    tell application "Alfred 2" search "dpbo"
      tell application "System Events" to key code 36
    end tell

    Where "dpbo" - proper progress indication Script Filter (and it is linked with this osascript).

    But it looks like Enter is not handled by Alfred - there is no auto refreshing happens.

    If I press Enter by myself - all fine, info would properly refresh.

     

    Can you plz help me? What am I doing wrong here?

    Also, it would be great to add some sleep in this osascript to make refreshes each 2 seconds f.e. (to prevent Alfred blinks).

    If you know how to do it in osascript - it would be very useful for me :)

     

    Thanks!

    tell application "Alfred 2" to search "Safari"
    delay 0.2
    tell application "System Events" to key code 36
    

    This seems to work perfectly fine for me. Could you test it and let me know how it works for you?

  21. I think that I do understand the complexity of what I'm asking. Take for example the terminal implementation in OSX of the example query that I gave:

     

    mdfind coenzyme -onlyin /Users/me/talks | grep \.key$

     

    Pretty straightforward. I'd prefer to use Alfred, but firing up a terminal is easier than creating a workflow. It's just too bad that in the Alfred search box there can't be more than one modifier, apparently.

     

    Creating a workflow is not a complicated task. Creating a multistep one similar to what you are needing is a little more advanced though. There may be a way to accomplish what you are looking for but it may actually require a few workflows working together to achieve unless you didn't typing out the path and file extension and such. If that were the case then a workflow with a script filter may work fine. That would allow you to type a keyword for the workflow, the search term, the path, and the extension (all separated by some delimiter, maybe a space) and then it run the query you provided above and show the results in Alfred. Would that suffice?

  22. Is there a way to open a different address book application besides the default Contacts app? The application I use is BusyContacts, which uses the same database as OSX's Address Book but I'd like to open BusyContacts when searching for a contact instead. Is this possible? Thank you

     

    Not really... you could make a workflow that would give you a contact action where... if you press enter on the users name for example it would perform some action  (open BusyContacts)

×
×
  • Create New...