Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


rjames86 last won the day on September 30 2014

rjames86 had the most liked content!

About rjames86

  • Rank

Contact Methods

  • Twitter
  1. It looks like Apple moved Favorite Servers to a new location. I got it to work with a script filter using a combination of python and JavaScript Workflow here: https://www.dropbox.com/s/nus8pihw3oxcjdg/VNC%20Favorites.alfredworkflow?dl=0 Just type "vnc" and it'll list out your favorites. No search as of right now. For those curious how to get favorites in 10.11 El Capitan items = $.NSKeyedUnarchiver.unarchiveObjectWithFile('<INSERT HOME DIRECTORY>/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.FavoriteServers.sfl') items = items.objectForKey('items') itemsCount = items.count var to_ret = [] while (itemsCount--){ to_ret.push(items.objectAtIndex(itemsCount).name) } to_ret
  2. Unfortunately Yelp killed the endpoints for how I was pulling this information. The workflow no longer works. Sorry about that
  3. You're very welcome! Glad it worked out. I might actually end up using this one as well.
  4. ahh close enough Easy fix. Re-download the workflow and you should be set
  5. Completely off topic. Are you from Ireland? I've only heard "legend" while I lived there Something must not be working. I had that happen as well, and there was a bug in the code. Can you click on the debug button in the workflow and let me know what it prints out?
  6. Yep, you're on the right track. Give this workflow a try: https://www.dropbox.com/s/s1462ddsq0cy1f0/Dropbox%20Images%20to%20img%20tags.alfredworkflow?dl=0 You'll need to first go to https://www.dropbox.com/developers, create a new app using the Sync API, with access to all files in your account. Once you've done that, click the link that says "generate access token". You'll need to put this in the alfred workflow script where it says `access_token = ''`. Put it between the quotes. Hope this helps!
  7. Also more generally, there is so much that you can do with Alfred. Don't base your purchase decision on whether it can do this one thing. For the most part, if you can write a script to do something, it can be done in Alfred.
  8. This is certainly possible. What I imagine is you would use the file buffer (or select a single file), and run a file action to get the img tags. It would probably need to look something like this (pseudocode style) from dropbox import client dbclient = client.DropboxClient(access_token) def ensure_in_dropbox(file): return True if in Dropbox else False def get_shared_link(file): link = dbclient.share(file) # This is to generate the true url, not a preview return link['url'].replace('www.dropbox', 'dl.dropboxusercontent') img_links = [] for file in files: if ensure_in_dropbox(file): img_links.append( '<img src="{}"></img>'.format(get_shared_link(file)) ) print "\n".join(img_links) You would then pass that one to a "Copy to Clipboard" action
  9. I ran across this issue, and it was related to files located in my Dropbox folder. If you have two Dropbox accounts (personal and Business), the folders get renamed to "Dropbox (Personal)" and "Dropbox (Business name)". I had to explicitly add both of these directories for Alfred to find files within them. Not sure if this was related to the fact that your primary Dropbox account folder is symlinked to another, but this ended up working for me.
  10. Hey everyone - I've been playing around with a file action to allow you to restore previous versions of files in Dropbox. Feedback and suggestions welcome. Please note this workflow isn't 100% complete. It's worked in my testing, but it probably isn't perfect Features include: - Support for personal and Dropbox for Business accounts - viewing a diff of two files if you have FileMerge installed on your computer (from Xcode) - Get a sharable link to a file (not related to previous versions, but still a nice to have) Todos: - Better errors when things don't work correctly (no FileMerge, you've revoked app access, linked the wrong account) - Take advantage of the new shared folder API. I'm testing this in my personal workflow, but it's not ready to be shared yet. - Support for more diff tools (Kaleidoscope, etc) To get started: Download the workflow here Create a Dropbox app at https://www.dropbox.com/developer Be sure to choose Full App access, otherwise it won't work Put the client id and secret into src/config.py in the workflow directory To authenticate: - Select a file that's in your Dropbox folder and choose the "Previous Versions" file action. You'll be prompted to authenticate by hitting enter. - Once you've approved the app, run dbauth and paste the code. Using Previous Versions: Once authenticated, you'll be able to get the last 10 previous versions of a file through the file action Hitting Return on any of the versions will give you the option to see a diff of the file. Note that if you don't have FileMerge installed, this will probably just silently fail.
  11. ahhhh okay. perfect. Thanks for clarifying. Thanks again for all your help on this. External triggers have been amazing. Once I finish polishing up my Dropbox workflow, I'll be sure to post it on the forum. It makes a lot of good use of external triggers + script filters
  12. Great call on the icon. I'm terrible about adding special icons for each part of the workflow. I think we might be talking about two things. The subtitle text for each of the items in the script filter have always appeared fine. What doesn't appear (also in your last screenshot) is the placeholder subtext for the script filter itself. I have a workflow that takes a file action → script filter via an external trigger That script filter looks like this When I run the trigger, I see all of the entries along with their title and subtitle text, but the placeholder subtext doesn't. After a little more testing, it looks like if I add a keyword to the script filter and begin to type the keyword, the placeholder subtext appears up until the point where you enter a keyword Maybe I was requesting something that never really existed in the first place. I was just hoping to have some sort of placeholder text just above the listed entries to tell the user what they're looking at or what to do with it.
  13. Sorry, not subtitlle, Placeholder Subject from the script filter: I'm writing a lot of workflows that are used by other people and so having *some* instructions for them is always helpful. The results of the script filter should be enough of a clue, but not always
  14. Thanks again for looking into this. This is very useful. I'm going to keep playing with this and let you know if I have any more feedback. The only thing I can think of is still to have subtitle text, but I'll see if I really end up needing it
  • Create New...