Also, in our code we determine the file type, we use this later when we grab the file.
public enum FilenameType:byte
/// The file is accessed using a c:\dir\filename.
drive = 0x01,
/// The file is accessed using a \\server\share\filename.
unc = 0x02,
/// The file is accessed using http:filename or ftp:filename.
url = 0x04,
/// The filename is null or 0 length.
none = 0x10,
/// Is inside a jar or zip file.
zip = 0x20,
/// Is inside the Office 2007 template file.
self = 0x40,
/// The filename uses some other mechanism.
other = 0x80
if it is a URL we use this
WebRequest req = WebRequest.Create(filename);
WebResponse resp = req.GetResponse();
otherwise we use this
return new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
Now just to ensure that we pick the right filetype for office live documents, which we need to treat differently than a standard http:// file i have this code
if (filename.StartsWith("http:") || filename.StartsWith("ftp:") || filename.StartsWith("file:"))
This is where we stand right now, it works properly and we are able to download and save to the workspace. Now hopefully microsoft isnt going to change any of this, or if they do, they will document it.
i added in the option to upload a file via webdav. You just specify the first argument as either "Upload" or "Download" the rest is the same. I updated the source code link as well as the console app link.
you need the WindowsLive client sdk installed on your computer. I think that installing msn messenger will also do the trick, but i havent tested that. Heres the link to the Live Client SDK.
Ok like i was saying in my last post im having alot of trouble getting Office Live Workspace to let me upload/download files. Well i just had a major breakthrough, and have it working now.
Here is the console app, as a .exe with a small batch script. (You send it link)
if you just run the .exe without any arguments it will print out the arguments that are needed in the correct order.
I would recommend just changing them in the .bat file.
Here is the source code (You Send It Link), its got the source for console app, the Document Handler DLL, and it has a folder with the .exe for the console app.
the run.bat file has a valid source file address, note the syntax, it is like that of a file hosted on a network server, although it is actually up on office live.
The key breakthrough was figuring out this formatting.
I had been trying urls such as -> http://adamm515.workspace.office.live.com/90359bb4-dede-494c-b024-57dc8611d0f5/Docs/Sales Comparison.xlsx
if you get rid of the http:// and add '\DavWWWRoot' after .com then replace all the /'s with \'s. it should work properly.
As part of a project im doing at work, I am trying to make a client side application that can upload and download files from Microsoft office live. In the end, it will need to be integrated into Microsoft office via our Autotag add-in. Lets start with the problems.
NO Documentation for workspace, and as far as I know, there is no 3rd party support for working with workspace
Poor documentation for Office Live Small Business API's
It would be useful for testing authentication and pulling down files from a Small Business account.
Office Live forums are USELESS !! Me and my boss have posts many weeks old with no response
Our paid support with MSFT is just as useless, no one seems to know what im talking about.
What I don't get is why MS is making it so difficult to develop for office live. I have written a small console app which will hit a URL, and using either webDAV or FPRPC, will attempt to download the contents of the file. It fails in workspace.
Another part of my project is to get the 'Microsoft Office Live Workspace' to show up as a folder in one of our Open File Dialog boxes. In vista I am having trouble setting up a proper web folder. In XP im having trouble getting my web folder it show up in OUR standard open file dialog box. It only shows the 5 defualt ones, even though I added some to the User Defined places in the registry.
Here is a list of questions that I need answers to from Microsoft:
Outstanding Questions for Office Live
Can we register as a developer to receive better support ?
How do we become an Office Live Small Business Partner?
What are the benefits of becoming a Partner ? what is the process?
Why does the LiveIDSamples code sample fail for me, I have a workspace setup with Documents in it ?
What happened to dev.officelive.com ? Is ask.officelive.com/smallbusiness , the new site ?
Where is the best place to post questions ? Which forum ? What about email/phone support ?
Do I need to upload code to my Office Live Small Business Site to access documents from its workspace ?
Besides the Workspace that lives inside of one's office live, are there other places to upload and store documents ?
Do you plan on introducing 3rd party API's for office live workspace ?
How do I set up a web folder to access my office live workspace ?
Is it broken in vista ? I have tried to install patches that are referenced in a forum post on the Office Live Forum, but when I try to install, they all come back saying that "These updates do not apply to my System".
How do I get the User Defined 'Places' to show up in Windows XP, inside of an open file dialog box ? They show up in the standard word open dialog box, but the one in our Add-in only shows the 5 default ones.
Here are some forum posts my boss and I have made over the past few weeks trying to get answers to our questions:
Ok, now that we got the basics out of the way in my last post. Lets move onto some more interesting utilities. We will start with Multiclutch.
It is a utility that lives in your System Preferences, created by Will Henderson, this tool can be downloaded from one of his blog posts.
Essentially what Multiclutch allows you to do is to map Gestures to keyboard shortcuts in specific applications. It also has a global layer which maps gestures to keyboard shortcuts when your not using any applications, i.e. it says finder in the upper left corner. Ill explain in more detail below.
If anyone has played around with the new macs they really don't use gestures a lot, and that's a shame since its such a useful feature. When I got my Macbook Pro last year, the only application that used it was iPhoto, and the finder. At that time safari did not support any gestures.
So go download the multiclutch.pref file from Will Henderson's blog post, install it, and follow the below steps to setup firefox with gestures.
Ok back to firefox.
I use the Chromifox Theme, makes it look like google chrome. I like google chrome a lot, but the mac build isn't very mature, so im sticking with firefox.
Now to the gestures. To add an application click the plus button on the left hand side panel, and browse to its .app file. To add a gesture, click the plus button on the right hand side panel, and select which gesture you want. To map a keyboard shortcut to it, double click the textfield in the 'Key Command' column and press the buttons that would constitute the keyboard shortcut you want to be mapped.
Here is a screenshot of my multiclutch pref pane. Ill explain what each of the shortcuts does.
Rotate Left – Minimizes the Window Rotate Right – Refresh Current Page 3-Finger Swipe Down – Move to the tab to the RIGHT of the current one. 3-Finger Swipe Up – Move to the tab to the LEFT of the current one. 3-Finger Swipe Left – Go Back 3-Finger Swipe Right – Go Forward Zoom In – New Tab Zoom Out – Close Tab
Here are my global settings for multiclutch. These get executed whenever you are not using any applications, or when using certain apps like itunes, or safari that dont catch the gestures first.
The 3 finger swipes are dependent on which key you binded for moving between your spaces. In my case I used option, command is also a good choice. Control is not since its only on one side of the keyboard.
3 finger Swipes – Move to Space in direction of swipe
Zoom Out, Zoom In – opens up spaces. I like this a lot, provides a quick way to see all of your spaces and select which one you want.
Rotate Left – Minimizes current window.
******* If you are having problems getting the global gestures to work, click on your desktop to bring up the finder, then click on the help menu. This should make them work again. Youll have to do this each time you restart. ******
Ok I said that dock would be in this post, but its gonna have to wait until my next once, since this one is already getting too long.
Also this is not the end of multiclutch. I have a lot more to show after I get into Fluid Apps, and Afloat.
This is the first of a series of posts about pimping your mac. By the time im done all of your friends are gonna be envying your superior operating system, wishing that they had gesture support, and the coolness that only comes with a Mac.
Im gonna start with the basics, and describe the some of the useful features that come with Mac OS X by default and WHY YOU SHOULD BE USING THEM !
Common Themes to all of my Tips/Tricks: - I prefer using my mouse instead of keyboard shortcuts - Extra clicks and movements waste time - Many of my tips/tricks evolved out of the need to manage lots of applications and windows
If you don't know what Expose is, go to this Wikipedia page to refresh yourself. It is an ingenious window management tool. I find myself using it ALOT. I like to use hot corners instead of a keyboard shortcut to access Expose. My settings are in the picture below. NOTE: I used to have the "Upper Left" corner Expose only application windows, but I found that I didn't use it very often, so I just made both the upper corners expose all open windows.
Ill be honest, I don't use Dashboards all that much, but there are quite a few instances when I find it useful. As you can see in the picture above, I have dashboards set to the lower right hot corner. Some examples of useful widgets are: Stickies, Weather App, Clock, Calculator, Sports Updates, and Package Tracking.
I usually have a few stickies open with some quick notes jotted down, and if I need to see them I just slide my mouse over to the hot corner, and bam it's all right there, no need to open any applications, or searching for files.
Ok this is by far my FAVORITE Mac OS X feature ! I like to have a lot of windows open, and Expose can only do so much to help me be productive. Spaces is a great way to organize your applications and windows. You can setup applications to automatically load in a certain space. Or just drag it to whichever one you want. Spaces get really useful not just in organizing lots of open windows, but also getting things done. For example if your writing a paper, and are constantly switching between references and your office application, then position your reference in an adjacent space.
Below is a settings screen for spaces. Neither the above or below images are from my computer (Im writing this at work and didn't bring my mac today). The one thing I would change in the settings is to use the 'Option' key instead of the control key for moving between spaces. The primary reason to do this is because on most mac keyboards, the control key is only on the left side, whereas the option key resides on both sides. (If your not sure what ^ means, or what the option symbol looks like, check out this handy guide to mac keyboard symbols - http://www.danrodney.com/mac/index.html)
One of the standout features of Mac OS X. For starters I like my dock on the left hand side. This is just personal preference, but I find it to be more convenient. Also I like to set it to auto-hide, although that is again personal preference. I know that most people just have their dock filled with every application installed. If your like me and have a lot of apps, this can start getting ridiculous pretty quickly. In my next post I will show you how to tidy up your dock by organizing all your applications in Stacks, so only the running applications show up in your dock.