Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am working on a project using MetaIO SDK (AREL).

It works fine with all the files in the package (ipa),

but I'm trying to download an animation automatically using a web service.

It will be stored in the document directory.

Since AREL uses a javascript file, I need to give the javascript file the address for the document directory, but I don't have any access to the iOS (because Metaio does not give me direct access to the webview as there isn't any other http request so cant use delegate).

All i need is

window.MyImagePath = "/Users/mac/Library/Application Support/iPhone Simulator/6.0/Applications/E02C5AE0-DFF0-4803-8C7F-134023077BD0/Documents/placeholder.png"

In my JS file which is not in the document directory.

I tried sending this information through the clipboard (safari allows clip board access only when paste event occurs) and through a web service which is not helpful either.

Can any suggest a better solution please?

share|improve this question
this post is rather hard to read (wall of text). Would you mind editing it into a better shape? –  gnat May 21 '13 at 18:21
Thank you @gnat i hope its better understood now. –  Azmat Ullah May 21 '13 at 23:43
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.