Accessing Hidden Folders with FilePicker - windows-8

Im trying to gain access to a file in the Users AppData folders. I've resigned myself to the fact that I'll have to use FilePicker and FutureAccess to get this done. My problem is that the FilePicker wont show hidden folders. Anyone got a solution for this?
Cheers
Ross

Related

Get path to file (e.g. picture) in android device (e.g. cell phone, tablet...) from vba access form

I need to get path string to android device or its SD card as be able to copy or get some files(e.g. pictures) to process further...
As I didn't find not so menu samples about...
I tried go get the file with file dialog f = Application.FileDialog... but the directory has not been showed in the dialog.
I follow some samples to get getExternalFilesDir(... but I get Sub or function not defined error message.
Simply I need to get file from let say this address:
Computer\HUAWEI M2-801L\Internal storage\DCIM\Camera\12.jpg
I tried to use Environ() go get external directory but I didn't success to open folder.
As well I need to count items there or choose the latest record etc in that directory etc.
I tried to work with WIA COMMON DIALOG but I stuck over there as well
please anyone to help

Replacing Webbrowser control with Listview - does Listview offer all features as Webbrowser?

I'm currently using Webrowser control on my form for navigating to paths on my PC. Everything is perfect - you can drag/drop files, cut/copy/paste them, navigate through folders, create new ones, files and icons are shown - as in Windows Explorer. Only problem I have is windows system security settings (PC at office). I keep getting Windows security alert "Do you want to allow files from this website to run on your computer?".
I wish to create Explorer on my own, so I started dealing with Listview. It's hard for my level of vb.net knowledge so before I proceed further I need to know this:
Can I show files + folders from desired path in Listview (like "C:\Myprograms\SomeFolder\") with all icons ?
Can I navigate in Listview - like when I have a folder in Listview and double click it to view It's contents
And can I drag/drop files in It and cut/copy/paste files, which will ultimately change my folders on PC ?
I'm asking this because I allready started and I've bumped into many problems - folder icons not showing (using different methods), folders and files not showing together in Listview, cut/copy/paste issues etc.
I just want to know If It's even possible. Thanks for response in advance.

Sandbox and Saving files

I know about Sandbox limitations and and my usual technique of having the user save a file is via the NSSavePanel, which automagically grants the app the necessary priviliges to the location, as indicated by the user.
Now, here's the... not-so-uncommon scenario :
User creates a new file, in my app
Saves is for the first time (so, there's a good reason for the NSSavePanel to show up)
Then edits the contents of the document (please, note that my app is not a typical NSDocument-compliant one)
And finally he want to re-save it. (not "Save (it) as.." but just... "Save (it)" - since he's already specified a location, right?)
How is this doable? What's the "approved" way of achieving that? I've read about bookmarks but a) I'm not sure whether it is what I need, b) I haven't managed to find any real code example.
So, any ideas?
Please, note : no-matter-what, the solution must be fully-functional for 10.6 as well.
UPDATE : Hmm... That's just weird (or at least unexpected). Just tried re-saving at a previous location already selected via NSSavePanel and it seems to be working (without doing anything). Is that possible? (And yep, just re-checked it twice : the app is sandboxed)
You provided your own answer - “which automagically grants the app the necessary priviliges to the location, as indicated by the user” - when the user selects the file in the file panel the sandbox is extended to include the selected location and for the rest of the current execution your app my access it.

Mac Sandboxed App Loses File Permissions to Other Apps

I'm developing an app that is currently sandboxed. It acts as a basic text editor. Recently, I wanted to test what happens when I open a file in my app and another app at the same time, make an update in one app, then then see the updated in the other. I'm using Coda or BBEdit as my alternative editors. If I turn off sandboxing -- then this issue does not exist. However, since apps are required to be sandboxed as of March 1, I would rather implement a solution rather than wait and see.
When I open both files and make an edit in my app and then switch to the other app, the changes are reflected so that those editors have the version just saved from my app. However, if I perform the converse of saving from their app and then moving to mine -- no joy. Without performing any action, the console reports two specific errors: deny file-issue-extension and deny file-write-data. The app appears to be losing privileges to edit the document since it was changed by an external editor after the document was opened in my app. If I try to save the file in my app, it asks to duplicate the document because it has lost access to the original document. This doesn't happen the other way around because those apps have not been sandboxed and therefor have permissions that my app does not. It also doesn't appear that you can prevent the other app from making the changes if you don't want this behavior.
The documentation on developer.apple.com mentions nothing of this type of situation. I am not sure if this is intended behavior. If it is, then I can just tell my user that the document permissions have been lost and they should either save a new version or re-open the file. If it is NOT intended behavior, then what method in the NSDocument API would grant permission to the file once it has been lost? I'm assuming the answer is the former, that this is intended, but can anyone confirm and is there documentation?
Without performing any action, the console reports two specific errors: deny file-issue-extension and deny file-write-data. The app appears to be losing privileges to edit the document since it was changed by an external editor after the document was opened in my app. If I try to save the file in my app, it asks to duplicate the document because it has lost access to the original document
The correct behavior in a situation like this is to not overwrite the file, but to prompt the user if they want to reload the document, if so reload it and then write it.
The OS is doing the right thing by not allowing a blind write over a file that has changed.
See NSFilePresenter - (void)presentedItemDidChange to see if it changed. Reread the file and then see if you can save it. You dont say you have been denied a read on the file.
Also, since you havent posted any code it might be helpful to show what code you are using to access the file and to save it. NSDocument has built in handling for some types of file changes in the sandbox.
Lets call your App ScottEdit and your competitor as StackEdit
There could be several things going on. NSDocument has a lockDocument method. StackEdit may have locked the document and did NOT unlock it after save. If you quit the app, the file should be unlocked and available for your app. If this is the case, you will need to create a notification for when the file attributes change using kqueue or another.
If the other app is "blocking" access to your app. You can send an email to that developer and ask him to update his app so it unlocks the document after save. This last step is in addition to setting up notifications because another developer may come along and do the same thing (breaking your app).

Dragging Files on the Dock Icon

I know how handle dragging of files on the dock icon, and it has been asked before.
However, I'm wondering, can I somehow get more control?
For example, can I make the dock icon reject files that are not in the user's folder and allow only files that are in the user's folder?
I'd rather do that instead of the app appearing as if it handles files outside the user's folder, and then within the app delegate afterwards reject the files by detecting the file paths. That doesn't seem good from a user's perspective.
I realized that my question is kind of meaningless, as Option-dropping files on the dock icons forces the operation to be allowed, in any case. So there is simply no getting around handling the thing after the drop operation has been allowed. Thus, ignore this question :)