Jump to content

jdfwarrior

Member
  • Posts

    2,028
  • Joined

  • Last visited

  • Days Won

    55

Reputation Activity

  1. Like
    jdfwarrior got a reaction from yakmoz in 2-byte char(asia) with python 3.x in script filter ... help~   
    Those characters aren't properly normalized and therefore don't create valid XML output is more than likely the reason for this. Andrew added normalization options in some of the earlier builds of Alfred 2 but there were still issues with it so it was removed temporarily. I believe he's going to go back and take another look at it in the future.
  2. Like
    jdfwarrior got a reaction from mt5 in Worfklow Organization   
    Rather than an option to duplicate a workflow, plans are to add the ability to copy and paste parts of workflows. Another option (you can see it starting to take shape in b105) is having templates and/or presets when creating new workflows.
  3. Like
    jdfwarrior got a reaction from netofrombrazil in Simple question: How to open your ~ (home folder)   
    Download this workflow. Then you can call up Alfred and type 'home' and press enter, or you could simply press cmd+opt+ctrl+H. Of course, with the workflow, both the keyword and the hotkey could be customized to your liking.
  4. Like
    jdfwarrior got a reaction from luco in Make dir and copy file to dir before going ahead   
    Awesome, glad you got it figured out!
  5. Like
    jdfwarrior got a reaction from avk_tp in Last element of inline results displayed first   
    Check my blog/github. It should be resolved now. uid can be left blank to let alfred generate it. blank autocomplete values aren't added into the xml.
  6. Like
    jdfwarrior got a reaction from _mk_ in Last element of inline results displayed first   
    Check my blog/github. It should be resolved now. uid can be left blank to let alfred generate it. blank autocomplete values aren't added into the xml.
  7. Like
    jdfwarrior got a reaction from lucasgpr in Search in pdf files   
    Alfred can indeed search within the contents of a PDF document but it wouldn't open the document to the location that the search term was found in the document, it would only open the document. This COULD be done would be rather tricky and would take a bit of a custom workflow to achieve it. You would have to create a workflow to save the search text, then using a script filter search for matching files manually. After a file is selected, using the remaining portion of the workflow to open it, and then search (using Preview?). The search could be done using AppleScript like this:
    tell application "Preview" activate tell application "System Events" tell process "Preview" click menu item "Find…" of menu "Find" of menu item "Find" of menu "Edit" of menu bar item "Edit" of menu bar 1 keystroke "{query}" end tell end tell end tell Where {query} would be replaced by the search text
  8. Like
    jdfwarrior got a reaction from andersedvardsen in Access wordpress dashboard areas of pages quickly   
    Sorry it took so long, I've been a little busy this week. Try this. 
     
    Commands:
    wppages - shows a list of the wordpress pages
    wpsites - shows a list of all sites you have saved
    wp - used to search your sites, select one, the select the admin page to navigate to
    wpaddsite - add a new site. ex: wpaddsite http://alfredapp.com Alfred Site
     
    Thoughts?
  9. Like
    jdfwarrior got a reaction from Nick Moore in Launch Alfred using applescript   
    You mean something like..
    tell application "Alfred 2" to search "Example Text" ?
  10. Like
    jdfwarrior got a reaction from Sridhar Katakam in [Request] Validate current webpage for CSS and HTML   
    Firefox's AppleScript support is poor. I don't know that it's possible to easily grab the current URL via AppleScript and so to achieve this, you may have to provide the URL yourself. That being said, the rest could be rather simple. You could create a script filter that has two options, to validate the html and to validate the css where the argument for the two items would simply be the URL to the W3 Validator. You could then press Enter to open that page or press Shift (or Cmd+Y) to QuickLook them and not have to open a browser.
    cat << EOF <items> <item uid="valHTML" arg="http://validator.w3.org/check?verbose=1&uri={query}"> <title>Validate HTML</title> <subtitle>Validate athttp://validator.w3.org/check</subtitle> <icon>icon.png</icon> </item> <item uid="valCSS" arg="http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri={query}"> <title>Validate CSS</title> <subtitle>Validate at http://jigsaw.w3.org/css-validator/validator</subtitle> <icon>icon.png</icon> </item> </items> EOF If you wanted to open the page, you would simply add an Open URL item behind the Script Filter and connect the two.
  11. Like
    jdfwarrior got a reaction from JMoVS in Search in calendar   
    If you add an Open File to the back end of the file filter, it will do one of two things. If Calendar.app is already open, it will display whatever month/week/etc that the event falls in. If Calendar.app is not open then it will simply open Calendar.app. This could potentially be enhanced with a bit of AppleScript but I don't know.
  12. Like
    jdfwarrior got a reaction from Prepare Batmobile Alfred in Tweetbot Custom Search   
    AlfredTweet is more of a Twitter client. You can send tweets, see mentions, send DMs, follow, unfollow, block, unblock, etc.
  13. Like
    jdfwarrior got a reaction from oulipo in Weird behavior of youtube-dl   
    This is caused by Alfred not importing your profile. When creating workflows it's good to remember that the only thing in the $PATH variable is /bin;/sbin;/usr/sbin;/usr/bin. As mentioned in the other thread, for now, either appending paths to the $PATH variable or simply specifying full path to the additional components that you need access to is the most common solution to this issue. 
  14. Like
    jdfwarrior got a reaction from Tyler Eich in Run an app on a different Desktop   
    Yeah good point. I forgot about that. I just remembered that TotalSpaces did it and provides a lot of other options as well. Either way. Thanks Tyler
  15. Like
    jdfwarrior got a reaction from 3point in clipboard history hotkey choices?   
    Command+Opt+\ is the default hotkey for actioning items selected in Finder. Unless you changed that hotkey, it more than likely isn't working because that hotkey is already assigned.
  16. Like
    jdfwarrior got a reaction from Neilio in Alfred arbitrarily forgets shortcuts   
    Have you tried resettings Alfred's knowledge and tried it a second time to see if it would resolve itself? The option to clear his knowledge is under the Advanced tab in the Alfred Preferences
  17. Like
    jdfwarrior got a reaction from dathin in Spotlight Comments on folder not showing up   
    This may have been an issue of the metadata needing to be updated and when you added the scope back, it updated. Unsure. Keep a watch on it and let us know if it happens again as this definitely shouldn't be happening and may just be something simple.
  18. Like
    jdfwarrior reacted to tschoof in Newbie. Is there a manual for Alfred?   
    I don't just wanna pimp my blogpost on Alfred, so I'd say this episode of Mac Powerusers is a good start
  19. Like
    jdfwarrior got a reaction from adamtheturtle in Subway workflow   
    I haz a gift
     

     
    Download
     
    I don't know a full list of all the potential status messages yet. I sent the guy who made the API an email requesting that list. When I get that, I'll update this workflow again. Until then, if there are messages I haven't accounted for yet, the icon will show as a question mark.
  20. Like
    jdfwarrior got a reaction from quikatb in Edit Contacts from Alfred   
    I believe he's right
  21. Like
    jdfwarrior got a reaction from tanepiper in Returning array values to Alfred with PHP   
    You can't return array values to Alfred. Alfred accepts feedback via XML. You could use something like my Workflows class (found here) to make adding objects as results a little easier. As for searching the array and showing only certain results, I would suggest something like this..(I've used it in several workflows now).
    $data = array( 'Production Server 1' => 'http://www1.production' 'Production Server 2' => 'http://www2.production' 'Staging Server 1' => 'http://www1.staging' 'Staging Server 2' => 'http://www2.staging' ); $filter = "{query}"; foreach( $data as $name => $site ): if ( $filter && ( strpos( strtolower( $site ), strtolower( $site ) ) !== false || strpos( strtolower( $name ), strtolower( $name ) ) !== false ) ): $w->result( 'saved.site', $site, $name, $site, 'icon.png', 'yes', $name ); endif; endforeach; $w->toxml();  
    May want to check over that. I typed it all in the editor here very quickly with no syntax highlighting Using my workflows class that should take input from the user loop through your sites and only show the ones that match the input in the name or url, and then create feedback results of those items. Creating feedback items requires the use of a Script Filter, not just a keyword.
     
    Check full XML feedback syntax here
  22. Like
    jdfwarrior got a reaction from Velox in Can I automatically remove the forward slash when typing '~'   
    Alfred actually already does this. If I pop up Alfred, type '~', it shows the browser with '/Users/ferg/' populated, if I type a '/' next, it shows a second / in the path but still shows all the contents of the home folder and I can still select them and it just corrects itself afterward.
  23. Like
    jdfwarrior got a reaction from Tyler Eich in For what do I need workflow data?   
    Spot on. Thank you sir.
  24. Like
    jdfwarrior got a reaction from spuder in A Plea to Workflow Developers   
    It doesn't have to be something specific or follow a specific format, it just needs to be a string that can uniquely identify the workflow.
  25. Like
    jdfwarrior got a reaction from Tyler Eich in Workflow XML does not accept arg ?   
    Well spotted Tyler, you beat me to it Thanks for helping
×
×
  • Create New...