mergDocCanOpen

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mergDocCanOpen(<pFilePath>)
Associationsmergdoc
Summary

Returns true if there is an app that can open the document type

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pFilePath

the full path of the document.

Example
set the enabled of btn "open in" to mergDocCanOpen( specialFolderPath("engine")&"/pdfs/help.pdf")
Values
NameTypeDescription
return

boolean

Description

Important: There is a known issue with this command on iPad where it will cause the app to crash if it is called before the stack is open.

Tagsexternals