Add folder to finder favorites programmatically - sidebar

I'm trying to find a way to add a folder to the favourites sidebar in finder.
Was hoping there was a way to do it via terminal or automator somehow so I can replicate it across several machines.

Related

Can I provide a HTML form for users to upload directly to S3 and can I create new sub folders for users?

I need to be able to provide an HTML form that allows users to upload a file to a particular bucket. I also need to be be to create a sub folder within the Bucket which relates to the users email (passed from the form). If the sub folder exists then upload the file otherwise create a new folder etc.
You can use php to do that. I wrote a phone script sometimes ago that can upload any image, resize it and even move it from one folder to another, If I happen to come back online, I could upload the script but you might need a little php experience to use it. So I suggest you try to learn php, most importantly OOP

chrome.fileSystem on files/folders inside the app/extension

I am working on a Chrome App where I need the users to open files in a directory. For his own files, I can offer them a dialog through
chrome.fileSystem.chooseEntry
which works well. However that seems to limit me to the "Downloads" directory and Google Drive on my Chromebook. I would also like to ship some files with the application itself, so the files/folders would be located inside the app package. Is it possible to access these files through the fileSystem API?
I would not need the user to choose the files from a dialogue, it would be enough if I could get a handle to these files and offer to display them on the click of a button through my app.
Thanks in advance
You can read included files using chrome.runtime.getPackageDirectoryEntry(function(directoryEntry) {})

Trying to convert a web site to an executable file

I am trying to create a portfolio disc to sell my photos and to protect my work. I want to put my web site that i created into one exe so that my photos can't be stolen as an extra precaution. I know to use the webBrowser.navigate command with the internet controls but how do I add the web site directory to the exe to make it run in one file? I don't want to install it on the user's computer. Just operate the site's directory from the home page all through 1 exe file. I know its possible to do. I have seen apps like HTMLexe that will convert them for you but the free apps i have found won't allow the javascript and css files to run. Some won't even do it without buying the full premimum version of the software. How can I code this myself?

How to Browse Server files using Flex4

I need to show the server uploaded files in flex 4.5 for a web application to manage the uploaded files like upload, delete and open for preview.
Can anyone help me How to list the sever side files in Flex action script3.0?
You can't just let Flash player browse your server files. But you could create a workaround.
Make a script on the server which will give you the list of files located at the path you're looking for. Through basic POST you can ask for a list of files for a directory. Then you can display it in your flash side. But remember every actual action that happens to your files MUST happen on the serverside. Also BEWARE such things, because it's really easy to look up network requests that are made in browser, so you may end up with all of your files deleted one day. So make sure you implement some security stuff.

What directory do I put my Spotify apps in on Vista?

I'm trying to develop apps for Spotify using their API. I started using this guide of theirs but got stuck quickly when it said to put my files in "My Documents/Spotify". Vista uses the folder Documents instead of My Documents (and if you try to create My Documents inside your user folder, it merges the contents into Documents), so I'm having trouble getting Spotify to find my apps.
I created folder "hurrdurrdurr" inside C:\Users\myusername\Documents\Spotify\, and put the HTML and JSON files described here inside of C:\Users\myusername\Documents\Spotify\hurrdurrdurr\, but "spotify:app:hurrdurrdurr" gave me a "metadataFailed" message with "Error:appNotFound". Any ideas where I should be putting my app files?
And yes, all of the following things have happened:
I have made my account a developer account
The "Develop" tab has appeared in Spotify
I have tried restarting Spotify after putting the app in the directory
Also, I'm using Spotify version 0.8.3.222.{build ID that I'm too lazy to copy}. I can't find a download link for any preview build, but this is the latest version as far as I can tell. Anyone
The directory should be correct, in my case it is C:\Users\buchetics\Documents\Spotify. Something is probably wrong with your app. Check out the example/tutorial here:
https://github.com/mager/spotify-apps-tutorial
I just cloned the repository and it works with the same Spotify version you are using.
After having a similar problem with getting the Spotify tutorial to load into Spotify on my Windows machine, I figured out what the issue was-- it's very simple. I'm not going to claim this will resolve every issue but a lot of people who are using Windows based machines seem to be running into this issue.
1.Once you download the Spotify tutorial from github, extract it to the folder you've created-- as stated on the github site the folder should be "Spotify".
You can place the "Spotify" folder where ever you please as long as it's on the C: drive (Desktop, My Documents, etc).
Open the "Spotify" folder; then open the "apps-tutorial-master" folder-- within this folder is a folder with a similar name "apps-tutorial-master", cut all the files from within this folder and move them up to the parent of this folder and paste them.
"Spotify"->"apps-tutorial-master"->"apps-tutorial-master"->"THE FILES WE NEED TO MOVE UP ONE DIRECTORY";
The new directory structure should look like:
"Spotfy"->"apps-tutorial-master"->"THE FILES WE MOVED UP ONE DIRECTORY;
Once you've cut and paste the files up one directory you should then be able to get Spotify to load the tutorials. The redundancy in the folder structure comes from the extraction/unzipping by the windows utility.
I hope this helps those who are using a Windows machine.