Re: add file extension share for iOS app

2019-03-20 Thread Matthias Rebbe via use-livecode
I´ve created a more detailed lesson about the needed steps here:

http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app

Regards,

Matthias

> Am 20.03.2019 um 01:02 schrieb Matthias Rebbe via use-livecode 
> :
> 
> I´ve managed to get it now working.
> 
> So i am now able to open an email attachment on my iOS device in my Livecode 
> App.
> 
> I´ve created a little tool, which makes it a bit easier to create/modify the 
> additional needed lines for the plist file.
> 
> I´ve uploaded it to Livecode Share and it´s called IOS-Plist-AdditionalData.
> 
> You just have to enter the needed information and the tool creates the 
> additional lines which then have to be added to the "original" info.plist.
> 
> Maybe this is of some use for the one or the other. 
> 
> 
> Regards,
> 
> Matthias
> 
> Matthias Rebbe
> 
>> Am 18.03.2019 um 21:37 schrieb Matthias Rebbe via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Tried now yesterday and today eving, but without success.
>> 
>> I´ve created the ios standalone. copied the info.plist to the desktop and 
>> inserted this
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-03-20 Thread Bob Sneidar via use-livecode
Good job Matthias! It always amazes me the resourcefulness of the LC community. 

Bob S


> On Mar 19, 2019, at 17:02 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> I´ve managed to get it now working.
> 
> So i am now able to open an email attachment on my iOS device in my Livecode 
> App.
> 
> I´ve created a little tool, which makes it a bit easier to create/modify the 
> additional needed lines for the plist file.
> 
> I´ve uploaded it to Livecode Share and it´s called IOS-Plist-AdditionalData.
> 
> You just have to enter the needed information and the tool creates the 
> additional lines which then have to be added to the "original" info.plist.
> 
> Maybe this is of some use for the one or the other. 
> 
> 
> Regards,
> 
> Matthias
> 
> Matthias Rebbe

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-03-19 Thread Matthias Rebbe via use-livecode
I´ve managed to get it now working.

So i am now able to open an email attachment on my iOS device in my Livecode 
App.

I´ve created a little tool, which makes it a bit easier to create/modify the 
additional needed lines for the plist file.

I´ve uploaded it to Livecode Share and it´s called IOS-Plist-AdditionalData.

You just have to enter the needed information and the tool creates the 
additional lines which then have to be added to the "original" info.plist.

Maybe this is of some use for the one or the other. 


Regards,

Matthias

Matthias Rebbe

> Am 18.03.2019 um 21:37 schrieb Matthias Rebbe via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Tried now yesterday and today eving, but without success.
> 
> I´ve created the ios standalone. copied the info.plist to the desktop and 
> inserted this
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-03-18 Thread Matthias Rebbe via use-livecode
Tried now yesterday and today eving, but without success.

I´ve created the ios standalone. copied the info.plist to the desktop and 
inserted this

CFBundleDocumentTypes
  
   
CFBundleTypeName
mrtest   
CFBundleTypeRole
Viewer
LSHandlerRank
Owner
LSItemContentTypes

tk.rebbe.mrtest.txt

   

UTExportedTypeDeclarations
   
   
UTTypeConformsTo

public.plain-text
public.text

UTTypeDescription
mrtest
UTTypeIdentifier
tk.rebbe.mrtest
UTTypeTagSpecification

public.filename-extension
txt

   


after line 20 of the info.plist file.

I´ve added the info.plist file in the copy section of the standalone settings 
and run a test on my iPhone.

I´ve opened an email on my iPhone  with an .txt attachment, but when opening 
the "dialog" in which one selects in which app the .txt shall be opened, my app 
is not listed.

What am i missing? 

Regards,

Matthias

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-02-22 Thread Ludovic THEBAULT via use-livecode

> Le 22 févr. 2019 à 12:05, Matthias Rebbe via use-livecode 
>  a écrit :
> 
> 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?
> 

You need to use urlwakeup.
See  http://forums.livecode.com/viewtopic.php?f=75=18775



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-02-22 Thread Matthias Rebbe via use-livecode
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 
> :
> 
> 
>> Le 22 févr. 2019 à 10:06, Matthias Rebbe via use-livecode 
>>  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 :
> ...
> CFBundlePackageType
>   APPL
> # add these lines 
>   CFBundleDocumentTypes
>   
>
> CFBundleTypeName
> XXX   // name of your choice
> CFBundleTypeRole
> Viewer
> LSHandlerRank
> Owner
> LSItemContentTypes
> 
> com.owner.nameoftheapp.xxx // exampe: 
> com.microsoft.word.docx
> 
>
> 
> UTExportedTypeDeclarations
>
>
> UTTypeConformsTo
> 
> public.plain-text
> public.text
> 
> UTTypeDescription
>  XXX // name of your choice
> UTTypeIdentifier
> com.owner.nameoftheapp  // exampe: 
> com.microsoft.word
> UTTypeTagSpecification
> 
> public.filename-extension
> xxx // extension you want to handle
> 
>
>   
> ## end #
>   CFBundleSignature
>   
> 
> 
> 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@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: add file extension share for iOS app

2019-02-22 Thread Ludovic THEBAULT via use-livecode

> Le 22 févr. 2019 à 10:06, Matthias Rebbe via use-livecode 
>  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 :
...
CFBundlePackageType
APPL
# add these lines 
CFBundleDocumentTypes
   

 CFBundleTypeName
 XXX   // name of your choice
 CFBundleTypeRole
 Viewer
 LSHandlerRank
 Owner
 LSItemContentTypes
 
 com.owner.nameoftheapp.xxx // exampe: 
com.microsoft.word.docx
 

 
 UTExportedTypeDeclarations


 UTTypeConformsTo
 
 public.plain-text
 public.text
 
 UTTypeDescription
  XXX // name of your choice
 UTTypeIdentifier
 com.owner.nameoftheapp  // exampe: 
com.microsoft.word
 UTTypeTagSpecification
 
 public.filename-extension
 xxx // extension you want to handle
 


## end #
CFBundleSignature



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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

add file extension share for iOS app

2019-02-22 Thread Matthias Rebbe via use-livecode
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


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode