Open document with other app...

Ask questions and share your skills here

Open document with other app...

Postby offlinebouncer » Thu Jul 22, 2010 8:18 pm

How can I open another app and give it arguments to open a certain document?
Is it possible to execute another app via NK or javascript? If not, how can I implement
this in objective-c?

I would appreciate any suggestions about this issue!

greetings, Mike
offlinebouncer
 
Posts: 9
Joined: Thu Jun 10, 2010 8:16 pm

Re: Open document with other app...

Postby sluggish » Thu Jul 22, 2010 8:37 pm

hi,

this was posted other times...

if you want to open other App from your NK App you need to use NKOpenURLInSafari(url),

something like this:
Code: Select all
    <a  href="#" onClick="NKOpenURLInSafari('http://phobos.apple.com/WebOjects/MZStore.woa/wa/viewSoftware?id=XXXX&mt=8');">Open AppStore</a>


but only a little number of Apps have custom url shortcuts, you can find some of them here:

http://applookup.com/

for example, you can open FaceBook App with: fb//: like this:
Code: Select all
    <a  href="#" onClick="NKOpenURLInSafari('fb//:SomeUserURL');">Open FaceBook</a>


(i don't try it and i don't know if it works)
sluggish
NimbleKit Expert
 
Posts: 74
Joined: Fri Jan 08, 2010 4:18 am
Location: Madrid / Spain

Re: Open document with other app...

Postby sunny » Sat Jul 24, 2010 10:45 pm

yes, NKOpenURLInSafari can open other apps too
User avatar
sunny
Staff
 
Posts: 1786
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine


Return to How To...

Who is online

Users browsing this forum: Google [Bot] and 1 guest