add file extension share for iOS app

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Fri Feb 22 06:05:40 EST 2019


Ludovic,

thank you very much. I will try today evening. But how will i handle the file in the App.
Can i use the $1 variable for this like in the desktop apps? Or is there a special message that takes care of it?

Matthias
> Am 22.02.2019 um 11:01 schrieb Ludovic THEBAULT via use-livecode <use-livecode at lists.runrev.com>:
> 
> 
>> Le 22 févr. 2019 à 10:06, Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com> a écrit :
>> 
>> Hi,
>> 
>> i don´t know if it is the correct expression in the topic.
>> 
>> I need the possibility to share an email attachment on iOS with my iOS app.
>> I want to be able to open a .txt file received by email on iOS with my installed app.
>> Is there a way to do this with LC. Do i have to edit the plist file manually after creating the iOS app? 
>> And how does the app then takes notice of the file when the app is opened?
>> 
>> Matthias
> 
> 
> Hello, you need to create an iOS standalone, open the package (right clic on the icon) and copy the « info.plist » file to the desktop.
> Then add these lines in this files :
> ...
> <key>CFBundlePackageType</key>
> 	<string>APPL</string>
> ##### add these lines ####
> 	<key>CFBundleDocumentTypes</key>
>       <array>
>            <dict>
>             <key>CFBundleTypeName</key>
>             <string>XXXXXXX</string>   // name of your choice
>             <key>CFBundleTypeRole</key>
>             <string>Viewer</string>
>             <key>LSHandlerRank</key>
>             <string>Owner</string>
>             <key>LSItemContentTypes</key>
>             <array>
>                 <string>com.owner.nameoftheapp.xxx</string> // exampe: com.microsoft.word.docx
>             </array>
>            </dict>
>     </array>
>     <key>UTExportedTypeDeclarations</key>
>        <array>
>            <dict>
>             <key>UTTypeConformsTo</key>
>             <array>
>                 <string>public.plain-text</string>
>                 <string>public.text</string>
>             </array>
>             <key>UTTypeDescription</key>
>             <string> XXXXXXX </string>    // name of your choice
>             <key>UTTypeIdentifier</key>
>                         <string>com.owner.nameoftheapp</string>  // exampe: com.microsoft.word
>             <key>UTTypeTagSpecification</key>
>             <dict>
>                 <key>public.filename-extension</key>
>                 <string>xxx</string> // extension you want to handle
>             </dict>
>            </dict>
>     </array>	
> ###### end #####
> 	<key>CFBundleSignature</key>
> 	<string>????</string>
> 
> 
> Then, you need to add the info.plist to your app with the « Copy file » section of the Standalone builder.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list