Monday, December 27, 2010

iPad app file extensions

MacOSX,iPad

2010/05/18

I have been using Dropbox to transfer files to my iPad. There are plenty of other options for that task, but I already use Dropbox anyway, which means that sometimes the file I want is sitting there even before I knew that I wanted it on the iPad.

(By the way, you can put iPad files into your Dropbox, but only photos and video. That's not a Dropbox fault; it's Apple that limits this.)

Once you have something in Dropbox, you can pass it to another app. That function is also somewhat limited - to get a file into another app, that app has to be "Dropbox enabled". As Dropbox has lousy text selection capabilities, you really need such an app even for simple text files.

GoodReader can handle text files but unless your file has the proper extension, Dropbox won't know that and will tell you that there is no app available for your file. I guessed the right extension, but what would you do if your guess was wrong and the developer's documentation lacked this particular piece of information?

There is an app that lets you look up the apps that belong to particular extensions, but you don't need to buy anything to find the extensions that an app you own recognizes. Your iTunes computer has what you need. On my Mac, the desired directory is under my home directory in "Music/iTunes/Mobile Applications/". There are .ipa files for all your apps; I copied the GoodReader file to a temporary directory, renamed it to end in .zip and then unzipped that.

The unzipping produces a Payload directory; within that I found GoodReader and in there I found Info.plist. That's where we'll find what we are after:

 <key>CFBundleDocumentTypes</key>         <array>                 <dict>                         <key>CFBundleTypeName</key>                         <string>PDF</string>                         <key>LSHandlerRank</key>                         <string>Alternate</string>                         <key>LSItemContentTypes</key>                         <array>                                 <string>com.adobe.pdf</string>                         </array>                 </dict>                 <dict>                         <key>CFBundleTypeName</key>                         <string>TEXT</string>                         <key>LSHandlerRank</key>                         <string>Alternate</string> .. 

Not all apps have a CFBundleDocumentTypes key - not even apps that obviously store files, like SimpleNote (which is the app I prefer for general text creation). Even though that plainly stores files somewhere, its Info.plist has no such key. It isn't Dropbox enabled anyway, so I tap the text key in GoodReader to put it in a text editing mode, which then lets me select text to copy to SimpleNote. As I mentioned, that two step process is actually easier than selecting text directly from Dropbox (or so I have found, anyway).

Much of this may change when the iPad 4.0 OS releases later this year; who knows, I might even remember to come back to update this!

Comments: Click Here.

Want to showcase your product to our audience? Check our advertising options.



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them.

I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. If you have any question, please do feel free to contact me.


Source: http://aplawrence.com/MacOSX/ipad_extensions.html

cell phone eva longoria ipad iphone Lindsay Lohan

No comments:

Post a Comment