Jump to content

jdfwarrior

Member
  • Posts

    2,028
  • Joined

  • Last visited

  • Days Won

    55

Reputation Activity

  1. Like
    jdfwarrior reacted to Tyler Eich in Workflow XML does not accept arg ?   
    Looks like you're missing the quotes around the arg value; it should be:
    currentValue = 42; print("<items><item uid='foo' arg='" + currentValue + "' valid='yes'... (Notice the extra single quotes before and after the double quotes)
     
    Cheers
  2. Like
    jdfwarrior got a reaction from Tyler Eich in Basic understanding of Workflows with PHP   
    Tyler's so smart, he's my hero Thanks dude
  3. Like
    jdfwarrior got a reaction from Mijathi in Recommendations for Sharing Workflows   
    Andrew has many ideas and plans for enhancing and improving workflows.
     
    As for the dependencies, if I remember correctly, you were asking for Groovy be offered as one of the language selections and I said that so far we were only providing support for languages that came with the default OSX installation. That doesn't mean that Groovy or other languages don't work. The only way they differ from the ones in the default list would be that you need to specify the path to the binary file. So, in this case, it would be that Groovy should work as long as you specify the full path to the binary but if you decide to distribute a workflow created with Groovy that you should list it as a dependency. Otherwise, users are going to download and install it and it's not going to work.
  4. Like
    jdfwarrior got a reaction from dmick89 in Request: Fangraphs (MLB) workflow   
    Try this out.
     
    The keyword is 'fg', so type 'fg <player name>', as you type their name, it should provide a list of matching results in Alfred. You can press enter on a result to open that players page on fangraphs.com or you can press Shift with a player selected to get a quick preview of their stats.
     
    Download
  5. Like
    jdfwarrior got a reaction from Vatican in [Request] Workflow for Changing Sound Output   
    I don't remember where I found it but try this: http://cloud.dferg.us/2A7l
     
    Obviously not my work, credit belong to the original workflow author
  6. Like
    jdfwarrior got a reaction from drking in Request: List of Fave URLS   
    This can easily be accomplished with the custom searches feature that is already built in to Alfred. Simply create each of the sites as a custom search, and set the keyword to the same for each one. Then you would just pop up Alfred and enter the single keyword to see a list of all of them.
  7. Like
    jdfwarrior got a reaction from WillsonSmith in Piping info to pbcopy works in terminal, not in "run script"   
    Doh! While watching the video I realized what the issue more than likely is. Alfred doesn't import your profile and so therefore probably isn't finding and actually running the node executable. Try providing the full path to the node executable and let me know the outcome of that. I don't use node at all so I'm not aware of where it's installed by default, but, is the node app is installed in /usr/local/bin, then instead of the command being just 
    node <path to file>  
    Specify the full path to it, such as:
    /usr/local/bin/node <path to file>
  8. Like
    jdfwarrior got a reaction from teeheehee in Exclude Results from Parallels   
    Add the folder that the applications reside in to the Spotlight Privacy tab in the Spotlight Preferences. To find these settings, go to System Preferences->Spotlight and click the privacy tab.
  9. Like
    jdfwarrior got a reaction from ccortes in Send to Evernote function in Alfred file browser not working with PDFs   
    How are you sending file to Evernote? An installed workflow? If so, this is probably more of an issue with the workflow than Alfred.
  10. Like
    jdfwarrior got a reaction from RoboSloNE in Controlling ncmpcpp via Alfred 2 Workflows   
    I don't really see any issues with the bash script. The exit 0 isn't really necessary but that shouldn't prevent the script from working I wouldn't think. Looking around, I'm assuming that you installed ncmpcpp through Mac Ports? If so, did you maintain the default installation path (/opt/local/bin)? If so, the only thing I can think of is to once again try running the application from the full path. Keep it as simple as possible. For the script, just have....
    /opt/local/bin/ncmpcpp toggle  
    If it still doesn't execute, check the OS X Console.app and see if you have any error there associated with trying to run ncmpcpp. This should be an extremely simple, straight forward workflow.
  11. Like
    jdfwarrior got a reaction from liatmgat in Faves - Formerly Favorite Folders   
    Formerly called Favorite Folders, now allows you to set any file, folder, or application as a favorite.
     
    A user requested this under the help and questions forum and i really liked the idea of it. I threw it together really quick for them but thought I would share with you guys as well. Not sure if something like this has been made already or not but, here is my rendition of it.
     

     
    The idea is to have a list of items that you access often, saved in a list and easily accessible. Results are actionable, can be opened by pressing Enter, browsed in Alfred by pressing Cmd+Enter, or removed from the Favorites List with Ctrl+Enter.
     
    Download
  12. Like
    jdfwarrior got a reaction from Tyler Eich in v1 style hotkeys windows brought to v2   
    Awesome, thanks for sharing Tyler.
  13. Like
    jdfwarrior got a reaction from obstschale in [HOW TO] Script Filters: Reusing a single script filter or chaining multiple together   
    This tutorial is aimed at Alfred 2. Alfred 3 allows you to connect one Script Filter to another, so these workarounds are not necessary. (They might still be interesting, however.) [added 2017-03-20 by deanishe]
     
    Provided below is a workflow that provides a demonstration of how to reuse a single script filter or, how to chain multiple script filters together so that you can create the illusion of having multiple steps or allow you to further refine results from the first script filter, using the second.
     

     
    Demo 1
    This demo shows how you can use AppleScript to call the next step (another script filter) after the first script filter has completed. This could be used to send the value of the first script filter into the second, or, you could just save the values to file and then read them all back in when you are done. This example will save the value to file.
     
    Demo 2
    This demo shows how you can reuse a single script filter using autocompletion to separate multiple inputs with a delimiter. When the filter completes, you could then use that delimiter to split the string into its multiple parts. This works really well if your input data is numeric or short strings.
     
    Demo 3
    This demo shows how you can reuse a single script filter, with AppleScript to provide multiple inputs/steps to the end user.The data entered by the user is saved to file in each step, then read in and appended together at the end. You could separate the final output with a delimiter and pass it on to something else if you wanted.
     
    There are many ways that this could be customized to your liking. Change the delimiters, how values are passed, etc. This thread is merely meant to provide examples of how this could be accomplished for those interested.
     
    Download the demo workflow here.
  14. Like
    jdfwarrior got a reaction from Boarder24 in Paste text in frontmost app output   
    Something like this could be implemented now, without using the clipboard, by using AppleScript. 
     
    tell application "System Events" to keystroke "This is a test"  
    The only downside to this is that its a little slower...
  15. Like
    jdfwarrior got a reaction from Vatican in Faves - Formerly Favorite Folders   
    Formerly called Favorite Folders, now allows you to set any file, folder, or application as a favorite.
     
    A user requested this under the help and questions forum and i really liked the idea of it. I threw it together really quick for them but thought I would share with you guys as well. Not sure if something like this has been made already or not but, here is my rendition of it.
     

     
    The idea is to have a list of items that you access often, saved in a list and easily accessible. Results are actionable, can be opened by pressing Enter, browsed in Alfred by pressing Cmd+Enter, or removed from the Favorites List with Ctrl+Enter.
     
    Download
  16. Like
    jdfwarrior got a reaction from Tyler Eich in App Store for Workflows and Themes   
    The Alfred Extras site, from my understanding will be more of a curated site and not a full repo of all available workflows. Currently, alfredworkflow.com, APM (in beta), or searching the forums are the best method for finding a full list or searching for potential workflows for Alfred 2
  17. Like
    jdfwarrior got a reaction from RevellNL in Workflows Best Practices   
    No sir, that's why a folder outside of the actual workflow folder is recommended to be used.
  18. Like
    jdfwarrior got a reaction from rafaele in Custom Search and Workflows   
    TingTingBen is correct. There isn't a way to do it with premade custom searches but you can do it with Open URL modules
  19. Like
    jdfwarrior got a reaction from hansdorsch in ALFRED and Podio   
    I'm willing to help once things slow down a little from the launch. If nobody else steps up and helps or you don't figure something else out, bump this thread and I'll try to help you figure something out.
  20. Like
    jdfwarrior got a reaction from drking in Search URL for searching this forum?   
    Try this:
    http://www.alfredforum.com/index.php?app=core&module=search&do=search&fromMainBar=1&search_term={query} Use the encode spaces as + option.
     
    It also appears that it may not search really short terms so if you search something and every term doesn't appear, that may be why
  21. Like
    jdfwarrior got a reaction from Sridhar Katakam in Search Mail.app Workflow   
    Search Mail.app for email messages matching the search query passed.
     
    http://d.pr/f/FVd2
     
    A few have reported with this not working so I went back and added the option in mdfind to search in a specific folder so that hopefully it would find those results. Report any issues
     
    UPDATE: Based on schoeps comment below, I realized that the search I was performing was queueing off of kMDItemKind == 'Mail Message' and depending on your local language, that may not be the appropriate value. So I changed it to search on kMDItemContentType which should be the same across the board. I have confirmed that it works in English and Italian at least.
     
    UPDATE: I removed the -onlyin argument from mdfind. Removing the specified folder helps in finding the files with alternate language OS's.
  22. Like
    jdfwarrior got a reaction from liatmgat in Weather Workflow (with Conditions and Forecast)   
    Updated 3/18:
    NOTE: Set your location again so a default weather unit gets set initially, then change it.
    Removed saving to the Workflow Data folder and actually save IN the workflow folder now. Should fix issue a few users are seeing and also allows syncing weather location.
     
    Download
  23. Like
    jdfwarrior got a reaction from R4z3r in PHP: Remember to set time zone before use of strftime()   
    Indeed it will. Also, another good tip would be to..
     
    <?php $tz_string = exec('systemsetup -gettimezone'); $tz = substr( $tz_string, ( strpos( $tz_string, ": " ) + 2 ) ); ?>  
    Then do
    date_default_timezone_set( $tz );  
    That will grab the computers timezone and use that to set the current.
  24. Like
    jdfwarrior got a reaction from mariva in Feature Request: Clone workflow   
    What he said
  25. Like
    jdfwarrior got a reaction from mariva in Workflow to Message a specific contact?   
    To send a message to their phone number (as an iMessage), you would go to Preferences->Features->Contacts and add a Custom Action. Select "Phone" as the field and set it to Pass to URL Scheme. Set the scheme to imessage://{query}
     
    This works in most cases but sometimes the Phone Number is entered in a different format. The "Pass to URL Scheme" doesn't work so well if the phone number has parenthesis, hyphens, or spaces in it. To avoid that, you would create a workflow with a Contact Action. Then, instead of using Pass to URL Scheme, you would select your custom contact action (the workflow). Here is one already made: download
×
×
  • Create New...