Benjamski Posted March 31, 2016 Share Posted March 31, 2016 (edited) Hey everyone! I'm trying to get this workflow to work and it doesn't seem to be connecting to my dropbox properly. Is there something in the script that I need to change for my personal dropbox account? I'm also trying to get it so that when I've selected a gif file, it not only copies the public dropbox url and copies it to the clipboard, but also just pastes it into the current cursor selection when alfred was prompted. Very similar to Tyler Eich's Colors workflow. Can anyone give me a little nudge in the right direction here? I'm very new to programming, still learning js basically so no matter how much documentation i dig through it's all still way over my head. Here's the current script: dropbox_url="http://dl.dropboxusercontent.com/u/282732/gifs//AACDFIxvzolOPLCzZv8BDF8za?dl=0" gif_path=`dirname {query}` gif_folder=$( printf "%s\n" "$(basename "${gif_path}")" | sed 's/ /%20/g' ) echo -ne ${dropbox_url}${gif_folder}/$(basename {query}) | pbcopy Edited March 31, 2016 by Benjamski Link to comment
deanishe Posted March 31, 2016 Share Posted March 31, 2016 (edited) That isn't your Dropbox you're trying to connect to, it's Jessica's. dl.dropboxusercontent.com/u/282732/gifs/ That's her user ID, not yours. Edited March 31, 2016 by deanishe Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now