Codea and Dropbox

Alright, I’m feeling a little dumb here, but I can’t for the life of me figure out how to import images from Dropbox. Is there a certain folder in my dropbox that I need to put the images in? Any help here would be greatly appreciated.

Once you get Dropbox linked, Codea will create a directory called /Apps/Codea. From what I saw, it looks like you just dump all your images into that directory and then hit sync.

Thanks @Deamos, I just saw that and came back to post an update and saw your reply. Splendid!

On a slightly different usage, is there a way to load/save text to DropBox? or could there be? I am experimenting with a graphical editor for state machines and want a nice way to get their JSON representation out for use elsewhere. Currently considering http:get() with the POST method, but there’s a lot of server side setup for that.

@dwarman yes there is a way to save text to a dropbox file…

local directory = os.getenv(“HOME”)…“/Documents/Dropbox.spritepack/”
local fileName = “test.txt”

There is also a trick that i have found… since you are saving it to the spritepack… and you can get a listing of the image files (.jpg) save the text file as fileName.txt.jpg
Then the file would show up inside the listing of spriteList(“Dropbox”)… if you wanted you could loop over the list of all the text files in there… that would give you the name… other wise you could just put it in dicrectly

What is a “graphical editor for state machines” ?

@Ruttyj, this post is about a year and a half old…

How do you guys find these old posts!