Jump to content

jdfwarrior

Member
  • Posts

    2,028
  • Joined

  • Last visited

  • Days Won

    55

Posts posted by jdfwarrior

  1. Hi Andrew,

     

    After changing the hotkey to double alt, the double cmd hotkey is still showing the same action. So double alt launches Alfred as expected and double cmd now launches with "Users/~/" populated. Additionally, I cannot seem to change the hotkey back to double cmd. Since the double cmd is a second nature at this time, any ideas on how I can clear this? Tossing the plist file?

     

    Let me know when you can!

     

    Cheers,

    Phil

     

    Could you try temporarily creating a new user account and seeing if you have the same issues with Alfred there? If you can't set the hotkey back to double cmd, that's  typically an indication that something else is clashing with that hotkey. That could explain the behavior. Is there anything else you have installed that could be using that same hotkey?

  2. What I am trying to do is launch Alfred, type the name of a folder, then see all the bookmarks in that folder.

     

    Does anyone know if this is possible out of the box or with an extension?

     

    What browser are you referring to? It's certainly possible to search bookmarks. A file filter can do it for Safari. There are workflows for search Chrome bookmarks. I'm not saying they don't exist but I'm not aware of any that allow the method you are requesting though (searching by folder).

  3. Hi there,

     

    I love the Clipboard History feature pretty much, but what's missing for me is an option to clear the history on restart of the computer. Maybe this option could be implemented in one of the upcomuing releases? Or at least we could have a 'presist for' option less than 24 hours?

     

    Cheers,

    Michael

     

    I'm not sure what Andrew's plans are in this area but, the 'clear on restart' could be accomplished with a script. You could create a bash script that runs at startup or on an interval using a cron/launchd script to clear the clipboard database.

  4. Hi,

     
    I wonder if it would be possible to trigger a workflow based on the proximity of an BT device or based on the current network connection.
     
    Some use cases where this might be useful:
    • Start a lock/login workflow on my Macbook each time I leave or return with my iPhone (maybe also Afred Remote?)
    • Setup some apps/documents when I arrive in office and connect with Wi-Fi network
    • Automatically connect with work VPN, if I'm connect with the network at some client's offices.

    I'm sure some smart people will have even more cool workflow ideas.

     

     

    Cheers,

    Nhat

     

    Alfred doesn't normally monitor such things. There are several applications that do provide this type of functionality though. With those, you could set them up to run workflows open state change using applescript to trigger Alfred's external triggers.

  5. Hi all,

     

    Brand new Alfred user here. I have a folder in Dropbox that should be visible to Alfred. I can find other path-adjacent folders with no trouble. But this folder doesn't appear in Alfred.

     

    I can browse to it in Alfred.

     

    This folder is called "Logos" and the Alfred search for "Logos" returns other hits, but things that should be lower down in search results—items that have "logos" midway through their filenames, for example.

     

    What am I missing?

     

    Thanks!

    Jack

     

    There are several things that could be causing this. First, have you tried walking through the steps located here? The steps tend to solve most similar issues. If this doesn't solve the issue, report back and let us know and we'll try to figure out where things are going wrong

  6. So, if i type in for example 'find hello'

    Instead of searching for the action, it displays "Search Google for 'hello'"

     

     

    The find command is turned on, and works for other items

     

    any ideas?

     

    I've tried using workflows, and when they're loading or timeout, it asks to "search google for 'command'"

     

    Thanks in advance!

     

    What you are describing is known as a fallback search. This occurs when the search term that you provided doesnt match anything within Alfred's current search scope.

     

    By default, when you search within Alfred (no command provided), Alfred performs a search for the default items selected in Alfred Preferences, in the Features tab under Default Results. The 'find' command performs a more broad file search. As mentioned, when the search term that you provided isn't found in whatever the current scope is, Alfred will default back to whatever fallback search you have specified.

  7. Hi,

     

    I'm working through my first script workflow and it works as I expect, but when I look at the debug in alfred, it outputs

    [ERROR: alfred.workflow.input.scriptfilter] Code 1
    

    just before the output of the xml. I'm having a hard time finding any information regarding this. Maybe I'm just not looking in the right spot?

     

    Thanks for any advice.

     

    I'm not sure what Code 1 is but if the workflow is something that you could share, I could have a look at it and see what the issue is

  8. Is it possible to move files to a remote server when my Mac is connected to said server?

     

    I connect to my office's server (Command+K) routinely, and while it's connected I can access it like any other drive on my Mac, but Alfred doesnt seem to allow me to navigate through the server's files. Specifically I'd love to be able to copy local files to that server for backup purposes.

     

    Is this possible? or are servers just beyond the reach of Alfred?

     

    Alfred wouldn't find the server because it wouldn't be within his search scope. You could still copy files there but you would have to start from the root. When you connect to a server, the remote path is mounted in /Volumes. So you could select Copy To, then just start typing a path.. /Volumes/<mount>/rest/of/path

  9. Is it possible to build a workflow that block some website and another to stop blocking them?

    could be based on edit the host file or there is some other way to do it?

     

    thanks

     

    This would usually be done with a proxy. A hosts file COULD do it but.. editing it would require admin permissions unless you modified its permissions but, that's not something I'd recommend

  10. I am looking to make a workflow for searching an image API.  I would live to feature live results as preview images in the alfred window.  can this be done?

     

    This can be done but you can't currently link directly to a url for the image icons. You would need to download the images and then set the path accordingly in the xml

  11. Hey there!

     

    I work in customer support, and I'm trying to create a workflow that will make it easy to search for and open support docs in my browser.

     

    I know I could use a custom searches for each one, but since there are over 400 potential support docs that would make entering them take a long time, and it would also be difficult to share it with other members of my team.

     

    What I'd like to do is create a workflow with a keyword that would allow me to fuzzy-search the list of support articles, and open the URL in my browser. I've exported a list of all of the support docs in a tab-delimited text file that looks something like this:

     

     

    I know basically, that I need to a script filter that would search the first column, and output an XML item for each line that matches. Then I can forward that to an "Open URL" action in my workflow.

     

    I'm not really a coder (though I have a basic understanding of PHP), so would anyone be able to provide an example of how this might be done? Or is there a better way to approach it?

     

    Thanks!

     

    I could probably help you with this. If you'd like, send me the file of the urls and I'll put together a workflow for you to be able to search them and display the results. You can send it david at alfredapp com

  12. Hi,

     

    I regularly send emails to myself and would like to use Alfred to automate the process. 

     

    It would have to create a new email and set the sender field to my email address.

     

    Am I missing an easy way to do this?

     

    Thanks!

    LT

     

    You could do this would a workflow that executes the following AppleScript

    tell application "Mail"
    	activate
    	set theMessage to make new outgoing message
    	tell theMessage
    		make new to recipient with properties {address:"<your email address>"}
    	end tell
    end tell
    
  13. How do I turn off the search function that looks in Dropbox as well as my mac?  Is that possible?  I have several works files on my mac that I use every day.  Once a week I copy them to Dropbox as a back up.  Since starting to use Alfred when I search for one of those files it pulls up both - the one on my mac & the one in Dropbox (same file name).  Is it possible to eliminate Dropbox from the Alfred file search?  Or better yet, is it possible to create a workflow that automatically updates these 5 files every time I save them?  I don't mind doing it manually .. just curious.

     

    Alfred uses Spotlight's metadata server to perform searches. That being the case, if there are files/folders that you wish to have excluded from search you can drop them into the Privacy tab of Spotlights settings. You may need to follow this up by popping up Alfred and typing 'reload' and pressing Enter. This will clear Alfred's cache.

     

    As far as a workflow to automatically update them when the files are saved.. Are you just wanting to use a command to copy the files to a specific location? Or are you wanting it to actually monitor the files for changes? Alfred doesn't do the latter. You could use something like Hazel to do something like that. If you want to enter a command to perform some commands, Alfred could easily do this.

  14. I love the iTunes mini player. Is there any way to fast forward and rewind the currently playing song via a keyboard shortcut?

     

    Thanks,

     

    There isn't but you could make a simple workflow that would perform that same actions. iTunes has two actions available in it's AppleScript dictionary that would probably perform what you are looking for. They are "fast forward" and "rewind". These commands tell iTunes to skip forward or backward in the currently playing track

  15. Thanks for that. Nice.

     

    Is there a location to find the enabled 'built-in' keywords too?

     

    There isn't, they are located in multiple areas of the preferences and organized by the function that they pertain to. These can be located in the Features section of the preferences. I do believe that someone had an Alfred "cheatsheet" that they created at some point that showed this information though.

  16. When I use the appropriate 'Show Actions' button on a file/folder name, Alfred pulls up the action panel for the item.. and if I want to go back to the original Alfred panel, I can hit escape, and it puts me back where I was in Alfred. If I instead use the 'File Selection' hotkey to do the same, when I hit escape, it just kicks me out of Alfred. Is this by design? I think the hotkey invocation should act the same, but it doesn't appear to. Thoughts?

     

    Thanks

     

    It is by design. In Alfred, in the typical file search/navigation you, you have context. You have performed a search or navigated into a folder or selected a folder to perform an action on. You have something that you've done. From the File Selection key, that selected file is your only context. There is no previous step that you were at for you to go back to if you press Esc. I guess it COULD be argued that you could make it fall back to the parent folder but that may not always be the desired case. A workflow could be created fairly easily (just a hotkey) that would just select the currently selected Finder file in Alfred. Then you could press right arrow for actions, or press Esc to go back. From there you could press Cmd+Up to navigate back up the file structure.

  17. is there a way I can use Alfred V2 to be able to hotkey a password in this Apple locked password Dialog box without me having to enter it as I tried a copy and paste function and it didn't work so looks like a manual entry of the password, has anybody done a script to hot key this with out having to do this all the time can somebody help me please?

     

    for example in the System preferences unlocking the user account or any areas the password dialog box appears

     

    The down side of trying to script something like this is its not very secure. In these cases, you would typically have your password stored in a text file or some kind of configuration file and it would be stored in plain text.

  18. Hi,

     

    Integration with 1Password is really great for filling in forms in browser windows.

     

    However, sometimes I'd like to be able to use Alfred to open a 1Password item in 1Password.

     

    For example, I would like to type "paypal" see the 1Password item, hold down (for example) 'Option', click and have the item open in 1Password. Is there a way to do this?

     

    Thanks,

     

    Pat

     

    This currently isn't available but this could easily be accomplished if you have 1Password Mini running. I believe it's default hotkey is Cmd+Opt+\ which is inconvenient because it conflicts with a hotkey for Alfred but I  set it to Cmd+Opt+]  This will allow you to search your 1Password data, copy the password, open it in 1Password and so on.

  19. P.S.  I use 1Password every day and tried to create this login through 1P, but I can only get it to launch the url and add one of the two pieces of info.

     

     

    Yes I use 1password as well same issue still gets blocked regardless

     

    Apple somehow got this covered!!!

     

    Any ideas anybody else?

     

    Things like this CAN be done but are sometimes a little weird. If the URL/page isn't already loaded, Alfred doesn't know when the page load has completed so you would have to do that in code. I'm not sure if Safari has a way to check the loading status of a page. I think Chrome can.

     

    If you call the workflow with the page already loaded, then you could do some Applescript to enter the data, simulate pressing tab (assumingly to skip to the next field) and then enter the rest. This just requires a little scripting using AppleScript.

  20. Yes, but chaining would be MUCH easier. 

     

    In addition, if you look at *sophisticated* macro programs like, e.g., Keyboard Maestro, with those you can go INTO AN APPLICATION and make menu choices, etc. WHY can't we do this in Alfred?? No, I do NOT want to write Applescripts. No, I do NOT think that Alfred shouldn't be able to do this, when there are several programs out there that will. 

     

    I used to be a programmer, back when linear programming was pretty much it. So, yes, I *could* learn Applescript. But *WHY* should I? Believe it or not, I have a life now, and it does not include programming beyond relatively simple macros such as those in KM above. Applescript has a learning curve that I simply don't have time for now. 

     

    This was an old thread. Workflows can take advantage of portions of other workflows by using external triggers within Alfred.

  21. I've created a simple workflow with a keyword input that runs an applescript.

     

    It works fine when I type in the exact keyword ("a thing").

    Attached to this workflow, I have entered a description ("does something special").

    Additionally, for the keyword input for this workflow, I have entered "does something special" for the title and subtext.

     

    I would love to be able to simply type "special" or "something" in alfred's fuzzy search and see my workflow in the results. Right now, it just goes to FallbackSearch.

     

    How can I set up the intended behavior?

     

    Alfred isn't really designed to do this. Alfred can match files and folders in this manner but for workflows, Alfred matches their keyword alone. You could create multiple keywords if you wanted that all link to the single script if you wanted to match another word though.

  22. Sometime ago I got through David a great little PHP script to attach files selected via Alfred to IBM notes emails. I use it a lot and works fine as long as the file does not contain any spaces in the name. If there are spaces that attachment process does not work. The script is the following:

    $files="{query}";$files=explode(" ", $files);
    $url="mailto:?";
    foreach($files as $f):
    $url.="&attach=".urlencode($f);
    endforeach;
    echo $url;
    
    
    exec('open /Applications/IBM\ Notes.app "'.$url.'"');

    My question - how can the url encode() be modified so that filenames with spaces are also properly inserted into my emails. I've tried looking without success.

     

    Try just modifying the explode() command to look like this...

    $files = explode("\t",$files);
    

    That will split the input into parts using a tab as a separator instead of a space.

  23. I'm extremely new to applescript and alfred for that matter so I have absolutely no idea if this is going the right way or not.

    So far I've managed to get applescript to take a predefined file (URL given to it by me before hand) have it load into chrome and then use chromes right click->search by image function.

     

    Any advice would be appreciated on how to take it further! The next step in my mind is trying to work out how on earth to get alfred to pass a file into the script!

     

    It's very a gritty script but it's finally working at least >,<

     

     

    set myFile to "file:///Users/admin/Desktop/Google%20Drive/Applescript/ReverseSearch/photo.jpg"

     

    --do not move mouse while this is running

     

    activate application "Google Chrome"

    tell application "System Events" to tell process "Google Chrome"

    delay 1

    set the clipboard to myFile

    keystroke "t" using command down

    keystroke "v" using command down

    key code 36

    delay 2

    do shell script "/Users/admin/cliclick kd:ctrl c:700,500 ku:ctrl"

    delay 1

    do shell script "/Users/admin/cliclick c:766,590"

    delay 1

    end tell

     

    --close image opened in previous Chrome tab

     

    tell application "Google Chrome"

    set windowList to every tab of every window whose URL starts with "file://"

    repeat with tabList in windowList

    set tabList to tabList as any

    repeat with tabItr in tabList

    set tabItr to tabItr as any

    delete tabItr

    end repeat

    end repeat

    end tell

     

    NOTE: Cliclick must be located in home for the right click to work and the browser has to be in the middle of the screen currently while I work on calculating the bounds of the users browser and finding the top left most corner of the image for the right click to be effective!

     

    How are you wanting to trigger this? A keyword? A hotkey? Different methods have different ways of setting this up.

     

    a) Hotkey - You would simply setup a workflow that had your script in a "Run Script" object and change where you set the path to myfile to be:

    set myfile to "file://{query}"
    

    You would need to make sure that the hotkey trigger was set to pass the current osx select to the next step and connect the hotkey to the run script.

     

    B) Keyword - Similar to above except you would use the keyword to run your applescript and use the applescript to grab the currently selected object within finder.

     

    c) Result Action - This is when you select a file within Alfred and then press the right arrow to get a list of actions to perform on the file. Here you would add a Result Action item into the workflow, name it and connect it to the Run Script as well. The file path would be passed to the Run Script the same as the other methods.

     

    Does that help?

×
×
  • Create New...