MrMuetze Posted March 16, 2013 Share Posted March 16, 2013 Hey alfred community I just got used to some of the new alfred workflows and I already think about some that I would love to use. Unfortunately, I'm not the best scripter nor do I have any experience creating some of these little tasks. I found an older workflow that enabled me to upload one file to the dropbox public folder and copied the (shortened) url to the clipboard. My wish would be that I could also choose a folder/file or maybe a bunch of files (which wouldn't be a must have feature since the folder thing should do the job), zip that folder or that file, move it to the public folder and copy the (shortened) link to the clipboard. Such a workflow would just be amazing to use and I think it would be the best way to handle this little dropbox problem. The file could either be chosen by the built in Alfred Finder or a global hotkey. Thank you guys for reading that post and even thinking about if you would give it a try or not Best regards from Germany, MrMuetze Amoftcoorb 1 Link to comment
jdfwarrior Posted March 16, 2013 Share Posted March 16, 2013 Hey alfred community I just got used to some of the new alfred workflows and I already think about some that I would love to use. Unfortunately, I'm not the best scripter nor do I have any experience creating some of these little tasks. I found an older workflow that enabled me to upload one file to the dropbox public folder and copied the (shortened) url to the clipboard. My wish would be that I could also choose a folder/file or maybe a bunch of files (which wouldn't be a must have feature since the folder thing should do the job), zip that folder or that file, move it to the public folder and copy the (shortened) link to the clipboard. Such a workflow would just be amazing to use and I think it would be the best way to handle this little dropbox problem. The file could either be chosen by the built in Alfred Finder or a global hotkey. Thank you guys for reading that post and even thinking about if you would give it a try or not Best regards from Germany, MrMuetze This could be created but its going to take a little more time than I currently have to dedicate to one thing. With the launch, I'm crazy busy trying to keep up with supporting everyone right now. This would be done by using a file filter (allowing multiple files so you could use the file buffer), then make it zip all those up and get the link. I know that doesn't help you a whole lot right now but, if someone else doesn't step in and help you in a few days, hit me up again and I'll see if I can get it created for you. Link to comment
Carlos-Sz Posted March 16, 2013 Share Posted March 16, 2013 Hi MrMuetze You have posted here about your request. Right now you could use Zip and that Dropbox workflow (did you get my Dropbox workflow?). Zip then a hotkey… Not too bad. Of course, it is possible to create a single workflow. Link to comment
MrMuetze Posted March 16, 2013 Author Share Posted March 16, 2013 (edited) That's actually my workaround right now I was just looking for some "droplr" like replacement without having to create another account and download another app. Just have some files and use one simple Alfred workflow to get everything done. An easy way to share it with someone. Two workflows are great, but one would be superior But I don't want to ask you guys to create that workflow just for me Just if you have time and find it useful for yourselfs. Best regards, MrMuetze Edited March 16, 2013 by MrMuetze Link to comment
lmartins Posted March 16, 2013 Share Posted March 16, 2013 Would love this workflow also. Not being able to do it myself, i believe someone will be kind enough to share something similar with the community in the future. Link to comment
Carlos-Sz Posted March 16, 2013 Share Posted March 16, 2013 That's actually my workaround right now I was just looking for some "droplr" like replacement without having to create another account and download another app. Just have some files and use one simple Alfred workflow to get everything done. An easy way to share it with someone. Two workflows are great, but one would be superior But I don't want to ask you guys to create that workflow just for me Just if you have time and find it useful for yourselfs. Best regards, MrMuetze In resume: zip file(s)/folder(s) move to Dropbox Public folder copy the shortened link to the clipboard Right? I think I can mix the two workflows together. I’ll post here a test version as soon as possible. Link to comment
MrMuetze Posted March 16, 2013 Author Share Posted March 16, 2013 That would be just perfect. I appreciate your effort and I'm looking forward to your first solution. Link to comment
lmartins Posted March 17, 2013 Share Posted March 17, 2013 In resume: zip file(s)/folder(s) move to Dropbox Public folder copy the shortened link to the clipboard Right? I think I can mix the two workflows together. I’ll post here a test version as soon as possible. That sounds about right :-) Maybe two options, one with zipping other for single files without compressing. Would be awesome! Link to comment
Carlos-Sz Posted March 18, 2013 Share Posted March 18, 2013 (edited) Here is a version to test but first consider: The workflow assumes it is a normal Dropbox installation so the public path would be like "/Users/YourName/Dropbox/Public/". I can make it configurable later after our tests. The workflow will ask for the Dropbox Public folder ID There is no way to edit the ID right now (please type it carefully) Test redundant files first though the workflow does not delete or move the original files Shortened URL is a bit tricky because if the file is synching then it does not exist in Dropbox yet. I found out that some services checks if the file exists before making the URL. The service used in the workflow produced the best results. Download here. Note: hotkey, keyword and File Actions are ready to test. Edited March 18, 2013 by Carlos-Sz MrMuetze 1 Link to comment
MrMuetze Posted March 18, 2013 Author Share Posted March 18, 2013 (edited) Thanks for that first version. Though I have the problem that he isn't asking me for my DropBox ID. Tried it with the finder command and also the shortcut. (with removing and re adding the workflow) It says "zip", but doesn't do anything else besides that (is not moving the zipped file to the public folder either). But thanks for that first version, I'm looking forward to test the next one MrMuetze Edit: Are these zip Files temporarily saved at some point? Because I created lots of them Maybe I could get rid of some of them. Edited March 18, 2013 by MrMuetze Link to comment
Carlos-Sz Posted March 18, 2013 Share Posted March 18, 2013 Thanks for that first version. Though I have the problem that he isn't asking me for my DropBox ID. Tried it with the finder command and also the shortcut. (with removing and re adding the workflow) It says "zip", but doesn't do anything else besides that (is not moving the zipped file to the public folder either). But thanks for that first version, I'm looking forward to test the next one MrMuetze Edit: Are these zip Files temporarily saved at some point? Because I created lots of them Maybe I could get rid of some of them. I have uploaded a new version slowing the Dropbox ID checking a bit. Can you please try it? Here It works every time (from Alfred keyword and hotkey). Finally, the notification you got says something went wrong even before zipping files. Link to comment
MrMuetze Posted March 18, 2013 Author Share Posted March 18, 2013 I think I found out that it is not working if I select files on the desktop via the mac finder. It says "error: select items in finder". Tried it with some other files in my user folder and it worked perfectly with the hotkey. Also got the shortened link! I'm going to test it a little bit more. Link to comment
Carlos-Sz Posted March 18, 2013 Share Posted March 18, 2013 I think I found out that it is not working if I select files on the desktop via the mac finder. It says "error: select items in finder". Tried it with some other files in my user folder and it worked perfectly with the hotkey. Also got the shortened link! I'm going to test it a little bit more. Great. I’ll also make some tests. If everything is OK I’ll update the code so the user will set the Public folder (due unusual Dropbox installation, if it is even possible) and a way to reset the settings. Link to comment
MrMuetze Posted March 18, 2013 Author Share Posted March 18, 2013 Strange, now it works with desktop files like there has never been a problem before I like it. Has the dropbox id check problem something to do with a slow internet connection (or maybe unstable?). Right now I'm just connected over UMTS. Link to comment
Carlos-Sz Posted March 18, 2013 Share Posted March 18, 2013 Strange, now it works with desktop files like there has never been a problem before I like it. Has the dropbox id check problem something to do with a slow internet connection (or maybe unstable?). Right now I'm just connected over UMTS. Great. The workflow only access the internet when making the shortened URL. The Dropbox ID is a local procedure. Link to comment
Sebastian Daza Posted April 13, 2014 Share Posted April 13, 2014 I got "blocked" in the notification center when I use this workflow... any ideas? Thanks! Link to comment
Carlos-Sz Posted April 15, 2014 Share Posted April 15, 2014 I got "blocked" in the notification center when I use this workflow... any ideas? Thanks! Unfortunately glo.li service is not available anymore. I can’t update the workflow right now but you can edit both zip_zipdropbox.scpt and zip_alf_zipdropbox.scpt files: Find: try set tshell to "curl http://www.glo.li/toolbarshort.php?url=" & theURL & " | textutil -stdin -stdout -convert txt " set theglowurl to (do shell script tshell) set endchar to (offset of return in theglowurl) - 1 set theRes to text 1 thru endchar of theglowurl return theRes on error return theURL end try Replace: return theURL Link to comment
Sebastian Daza Posted May 15, 2014 Share Posted May 15, 2014 I did the change... but I still get the same error. Thanks! Link to comment
Carlos-Sz Posted May 15, 2014 Share Posted May 15, 2014 I did the change... but I still get the same error. Thanks! Please, try this build. Link to comment
Sebastian Daza Posted May 15, 2014 Share Posted May 15, 2014 I restarted my laptop and now it works, thanks! Link to comment
Sebastian Daza Posted May 15, 2014 Share Posted May 15, 2014 Ouch, with your new build I got that it is an incompatible workflow (I am using 2.3 8th May 2014) Link to comment
Carlos-Sz Posted May 15, 2014 Share Posted May 15, 2014 Ouch, with your new build I got that it is an incompatible workflow (I am using 2.3 8th May 2014) I’m using Alfred 2.3 too and it is working here. ASAP I’ll post another build. Link to comment
Carlos-Sz Posted May 16, 2014 Share Posted May 16, 2014 Ouch, with your new build I got that it is an incompatible workflow (I am using 2.3 8th May 2014) OK. Here is a new workflow and it is now Zip to Dropbox. Please, make some tests before using it for good. Consider it as a beta. The first time you run the workflow you will have to configure it. Just follow the steps which are: Select the Dropbox public folder, then Type your Dropbox public folder ID Download 0.1 beta Link to comment
Sebastian Daza Posted May 16, 2014 Share Posted May 16, 2014 Thanks Carlos. It doesn't work here, I can't specify the public folder (I get stuck there even selecting the right folder). Link to comment
Carlos-Sz Posted May 16, 2014 Share Posted May 16, 2014 Thanks Carlos. It doesn't work here, I can't specify the public folder (I get stuck there even selecting the right folder). Sorry. I forgot a piece of debug code there... Please, try 0.2 beta. 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