Jump to content

Recommended Posts

Many thanks to @rosenkrieger for the inspiration. Original thread http://www.alfredforum.com/topic/1343-clouddrive-toggler/ *Also mentioned in the read me of the workflow. 



So what does this workflow do. Type a keyword and a "on", "sync" or "off" argument, which will toggle on/off the desired application.

You can also toggle off all supported cloud drives by "clouds" and using an argument indicated above. I have chosen the "clouds" on action to NOT reopen Cyberduck and Fetch. This is purely a personal decision as I seldom have

 them open anyway. It would be easy to also add them to the "all clouds" on action should you wish to do so.



Currently supports and works with the following providers. All were tested on my local machine.


Version 1


- Amazon Cloud Drive http://www.amazon.com

- BitTorrent Sync http://labs.bittorrent.com/experiments/sync.html

- Box Sync http://box.com  added 1/28/14

- Cloud http://getcloudapp.com

- CloudMe https://www.cloudme.com

- Copy https://www.copy.com

- Cyberduck http://cyberduck.ch

- Dropbox https://www.Dropbox.com

- Dropbox Encore http://www.joyofmacs.com/software/dropboxencore/

- Dropzone http://aptonic.com/dropzone/

- Droplr https://droplr.com/‎

- Fetch http://fetchsoftworks.com

- GoodSync http://www.goodsync.com

- GoogleDrive https://drive.google.com/‎

- OwnCloud http://owncloud.org

- Skitch http://evernote.com/skitch/

- SkyDrive https://skydrive.live.com/

- SpiderOak https://spideroak.com

- SugarSync https://www.sugarsync.com

- Syncplicity http://www.syncplicity.com

- TeamDrive http://www.teamdrive.com

- Tonido http://www.tonido.com

- Wuala http://www.wuala.com

- ZipCloud http://www.zipcloud.com


-- Experimental Support

   - Ubuntu One   https://one.ubuntu.com


Special Note: For those using Dropbox Encore


It is a very convoluted workflow to get things working properly.


For example if Dropbox (Primary) is not running and Dropbox Encore is running. You wish to START Dropbox.

--You first have to stop Dropbox Encore and then start Dropbox, then you restart Dropbox Encore.


The scripts used attempt to automate this for you. However you should always keep an eye on which is running etc.

It is recommended to have one of the two occurrences of Dropbox using the blue icons and the other using the dark colors


* Disclaimer added 6/15/2013 @ 1600 EDT, please see the workflow read me section.


​* Clarification * I would like to note that the workflow tries to make things as simple as possible. Therefore it does not try to check if you actually have the desired app on your system. It will happily try to run the script even if it is not presently installed. Therefore you should get the standard Mac dialogue box asking where the app is if you do not have it installed. This should serve to indicate you have yet to install the app. 



Download link to my expanded version

Version 1 :  http://bit.ly/14NGdTn


Version 2 :  http://bit.ly/1bOpB2E


Edit : New link as old was broken

Edit : Add note about new argument "sync" 01/27/14

Edit : Added Box Sync and made preliminary changes for SkyDrive's upcoming rebranding, added version number for tracking changes. 01/28/14

Edited by thightower
Link to comment
  • 4 weeks later...

Added additional providers, and fix a couple of bug's


Use the download link in opening post.



Revision Note : 


1. Added GoodSync, Tonido, and ZipCloud to provider list.

2. Fixed, typos and bugs in notification options.

3. Eliminated unnecessary scrolling in settings.


edit : fix typo

Edited by thightower
Link to comment

I think I am going to add one more to the list UbuntuOne as long as it plays nicely. I am downloading now.


Unless someone comes up with some suggestions, I think the list is pretty broad and covers a fair amount of cloud services. I will be leaving it as, but will keep revisiting providers like Box, Cubby, and Mozy as their product's evolve. 


If you do have any suggest feel free to mention them.


*At this point I don't really like support for Ubuntu One, as the sync dameon continues to run. But I have left it in the current workflow with a note that you may need to close the helper in the menubar manually.

Edited by thightower
Link to comment
  • 6 months later...

Hi John2S


In my testing with the box.com app it never quite responded to the applescript commands correctly. It was one of the apps I tried and then dropped as it left other process running. Ill be sure to look at it again. Ill be traveling this week and in a hotel room so its a good time to try again.


From the read me on the workflow.


The workflow uses simple try/tell/end try statements when ever possible to minimize the risk.

I have purposely stayed away from stoping apps or more correctly force stopping them.

If they fail to work with the simple methods above I have not included them in the workflow.

Currently Box Sync and Cubby have not played nicely with the workflow and therefore have been excluded.

Edited by thightower
Link to comment



I finished a very rough version tonight with your sync argument. The "on" and "sync" will preform the same actions. So as not to break anyone else's workflows. Its just an add on for your case.


I would like a chance to try and smooth some of the rough edges if possible. Its working on my end. I would like you to try it when I release it and tell me if anything is broken. I am away from my main machine and I don't have all the apps to check with. But the ones I do currently have installed work fine.




I worked some on you request. If I can get it to working mediocre I will add it into the next version. But at a minimum it will still be beta or experimental for Box if it continues to mis behave. 


The next version should come in the next few days. I would anticipate by this weekend at the latest.




I am trying something new with the Dropbox / Dropbox Encore. I made the following changes because, I find while traveling it is  easier to start both or even quit both to conserve power. I think it may make things simpler for folks like me to split the commands out.


  • db "on" or db "sync" will just launch the primary instance. "off" will quit the app.
  • dbe "on" or dbe "sync" will launch just Dropbox Encore.  "off" will quit the app.


*New / redone


  • dboxs "on" or "sync" will start both Dropbox and Dropbox Encore. "off" will quit both.
  • It uses an orange Dropbox icon so you don't mistake it for you Blue icon as Primary and Black and the secondary aka Dropbox Encore.

Edit : ~thightower typo

Edited by thightower
Link to comment



Great news Box sync 4 works very well. I will be adding it into the mix later on tonight.


** Please note for those using "box sync 3" it may still yield unpredictable results. For best results please update you box client. 


Current changes:


  • New version with support for Box sync v4, remember  v3 may yield unpredictable results. 
  • Made preliminary efforts to address the upcoming rebranding of SkyDrive to OneDrive.
  • ** At this point I would not classify Box sync as experimental in my testing it worked without flaw. 
  • Fix typos and incorrect notification names
  • Added available arguments to the main workflow page.

Changes are uploading and the new version should be available shortly.


In order for me to keep things current I will call this 1.0 and proceed from this with version numbers to better track changes.

Edited by thightower
Link to comment

I have decided to do a complete re write from the ground up VERSION 2 is coming soon.


I wanted to make the workflow more user friendly, advanced users will have the ability to comment out a portion of the all script so they are not nagged by the OS X where is this app prompt. While allowing them to start/stop all there specific cloud apps using the on keyword or off keyword.  *I plan on providing details so most people can successfully comment out their undesired apps. More info on that later on as v2 gets closer. 


The trigger scripts have been re written to display if an app is already running, if it is currently already stopped. Dropbox and Dropbox Encore are handled better. New keyword for starting / stopping Dropbox and Dropbox Encore


New arguments have been added, including, sync, help, forum, etc not all arguments are available in all areas of the workflow. If you submit an incorrect argument you will be notified its invalid.


Several examples of keyword changes are

"Clouds"+ "forum" brings you to this topic.

app keyword + "help" takes you to the apps web site. Where you can search for help topics, grab the latest updates etc.


The apps are no longer linked by so many threads when viewing the workflow page. The all script is broken out of the app scripts. This will allow easier user editing as noted above.



  • Rather than create a separate topic I will simply be changing the info in this one. At least thats my current thinking.
  • I am about 1/2 the way through the re write and some of the changes are now live.
  • If you choose to update before the release, please check for updates often by downloading a new copy often.
  • Somethings are still in flux but they are coming together nicely. 
Edited by thightower
Link to comment

Just an update 95% of the changes are live. A couple of apps no longer function correctly on the quit function alone. So I have decided to disable the quit functions for those apps. The user will be notified if a normal quit is disabled. I am very hesitant to force close an app but I have started placing a cmd modifier into the mix to run a kill command for certain problematic apps. One specifically will hang and then crash Alfred if it is closed with a applescript quit command.  (Tonido)  Its not an Alfred issue but one with the Tonido.


I am still working on several of the later apps in the workflow to facilitate there proper functioning.  

Edited by thightower
Link to comment

Ok guys I am going to move forward with my original plans for version 2, and also make some pruning of supported apps. 


Version 1 will remain up for those whom it may benefit. The download link is in the opening topic. At this point v1 is identical to v2 except for the v2 scaling back of apps supported. So currently no one on v1 will be losing any functionality. 


Version 2 will see the removal of several of the apps I just don't use on a on going basis.


Apps which will continue to be supported are :


- Amazon Cloud Drive http://www.amazon.com

- BitTorrent Sync http://labs.bittorre...ments/sync.html

- Box Sync http://box.com  added 1/28/14

- Cloud http://getcloudapp.com

- CloudMe https://www.cloudme.com

- Copy https://www.copy.com

- Cyberduck http://cyberduck.ch

- Dropbox https://www.Dropbox.com

- Dropbox Encore http://www.joyofmacs.../dropboxencore/

- Dropzone http://aptonic.com/dropzone/

- Droplr https://droplr.com/‎

- Fetch http://fetchsoftworks.com

- GoogleDrive https://drive.google.com/‎

- OwnCloud http://owncloud.org

- SkyDrive https://skydrive.live.com/ forthcoming rebranding to OneDrive by Microsoft

- SpiderOak https://spideroak.com


  •  Thats not to say things may not reappear (apps become supported again), just that I don't use them on a daily basis and its harder for me to keep up with them.


  • Cloud and CloudMe have remained even though I don't use them daily for the simple reason they tend to work seamlessly with the apple scripting.


  • Also note that none of the apps will actually be removed from v2 their links will be removed so the appropriate apple scripts do not run for the individual commands, the appropriate section in the all start/stop section will just be commented out. This will allow me to easily switch back and forth fixing v1 if a major bug is found etc.
Link to comment
  • 2 weeks later...

Hi thightower


I've switched to v2 just now and it seems that i have an issue. When using "clouds on/off" i get a blank notification with no results cloud wise. It works great when triggering individually though. 


Thanks for a great workflow, it's very useful.

Link to comment

Hi Arthur


Looks like when I removed the portion for force stopping or killing an app. I placed the command modifier on the start option instead of removing it. Ive removed it. A new upload is in progress.


I would give it a bit of time to upload. I am on slow hotel wifi that is subject to on and off issues.

Edited by thightower
Link to comment

Small update to support OneDrive since it was officially release in the app store.


Instead of "sd" the keyword is now "od" 


v1 and v2 support OneDrive and are available at their respective link's above. They will no longer work with the old version of the app "SkyDrive". Please update your install of the app to maintain compatibility. 



Additionally:  The install from the App store does not replace the existing installed app "SkyDrive" in your applications folder. You may wish to remove it manually after updating to prevent confusion ? 


Edit : Typo

Edited by thightower
Link to comment

Hey folks,


I imagine some of you are as tired of the where is the app prompt as I am. That is if you use the "clouds"  + "on" or "clouds" + "off" feature if you are simply using the individual apps on an as needed basis this change will not affect you.


If you are comfortable editing an apple script I made some changes that will allow you to remove those apps you do not have installed or maybe you don't want to have them quit while using the "clouds" + "off" argument.


Either way the choice is yours.


Rather than place the instructions here. Simply type "clouds" + "setup" (after updating), your default browser will open and you will be taken to a Dropbox page with instructions on how to remove a desired app. The pictures are my first attempts at this and I hope to make a screen cast so it will be easier to see what is done.


The pictures reference the script you need to change and at the end of that script are several examples. In case you get lost etc.


If you happen to break the script and you cannot figure out where you went wrong, at the very bottom of the workflow below the ZipCloud keyword is a single script linked to nothing. Its sitting all out by itself. You can copy from this and past it back into the original, making sure to click save when done.

Edited by thightower
Link to comment
  • 8 months later...

I just wanted to stop in and say, I know a few issues have arisen between my Dropbox / Encore  workflows. I am monitoring the situation. Dropbox labels the issues as with Yosemite Finder integration and I am seeing some weird issues in activity monitor etc. It is making it too unpredictable at the moment, to try and come up with a workflow to work around the problem.


Normally Dropbox was a running process as was Encore. In the new setup they have a helper app and chosen not to label it helper but instead simply Dropbox. This would not normally present an issue but that helper app at times will not be running, or it will spawn duplicates of itself. This is confusing the logic behind my scripts. It would have been a little more useful if Dropbox labeled it a helper app. But I digress.


It may end up where the Dropbox and Encore portions simply go back to absolute quit and start scripts. Where they don't use the checking to determine if the script should run or not. Only time will tell if this issue is fixed or I have to downgrade my scripts to earlier versions. :(

Edited by thightower
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...