BE_FileOpen

BE_FileOpen ( path )

Opens the file or folder at path using the default application.

Version : 1.3
4.0 : return error 3, command not available on iOS and Linux
4.0.2 : Renamed from BE_OpenFile

Parameters :
path : the OS level path to locate the file at. Paths are not internal FileMaker paths. You can get a sample of an OS path by using the SelectFile function.

Retuns : True ( 1 ) for success False ( 0 ) for failure.

Notes: There are some quirks to the way this function works on Mac OS : it sends an open request to the file, which is either able to be sent or not, and the response/error only reflects whether or not the request was sent. So for example if the file doesn't exist, you can get an error or if you don't have permissions to open it, you get an error.  

But whether the file actually opens or not is another thing, the OS will check things like apps for security and that can take some time.  So whether or not the open is successful is different from whether or not the plugin tried to open the file.  The two can be different, and the plugin only handles the sending of the open request, it doesn't poll to figure out if the open was successful or not.

In technical terms, the two are asynchronous - meaning we get back the first "done and ok" response and would have to continuously query the OS to find out the final state.  The plugin doesn't as yet do that.

Still need help? Contact Us Contact Us