We have a Silverlight client that, among other things, has two requirements: - Open files on the local network (using UNC for Windows and SMB on Mac) - Drag and drop files from Explorer / Finder onto the SL client.
Opening files (using UNC) works fine on Windows, either using IE, FireFox (with some tweaking), or using COM Out Of Browser automation.
On a Mac, this turned out to be difficult; Out Of Browser on a Mac does not have “enhanced trust functions” (which is equivalent to COM automation on Windows), so on OOB on a Mac, the HyperlinkButton control is the only way to open files (uris), but this creates a security exception when opening “SMB files” ( due to crosstalk / cross-domain restrictions in SL OOB, I think). Thus, we had to search in the browser: now Safari can not cope with this. FireFox can open local files if you configure your browser to allow this. So we did.
Then there was a problem with dragging and dropping a file (which worked in Safari, but not in Firefox due to browser restrictions). We worked on this by creating an SL control that used an HTML bridge to enter HTML sections on top of an SL client that worked as inaccessible areas.
Since the ability to open local files requires browser settings, the best solution would be to have functionality to open local OOB files (which is equivalent to automating COM on Windows, for example, the ability to run AppleScript).
Is something like this possible? Is it possible to somehow open a file using SMB on Mac in OOB?
Thanks.
PS: So, we had a working solution on Mac, running FireFox 5 in the browser (improved to allow opening local files) - until we ran into a much more serious problem that looked like a serious rendering problem in the SL plug-in for FireFox on Mac ; this problem is posted here: Silverlight Error in Firefox 4 and 5 on MacBooks
source share