Retrieving a saved file

I created an app on my Mac to calculate taxes due based on the number of soccer game tickets sold.
The result is saved as binarystream with its own extension (in my case .tax).
Everything works well, data is saved and opens corrctly from within the app.
When I double click the file created, thpugh, it launches the application but with blank fields, meaning it does not retrieve the data if launched outside the app (ok if opened from within).
Is there some passage or procedure I’m missing to open the file simply double clicking on it?
Thank you

Do you have an ‘OpenDocument’ event on the application?
Although you may have associated your app with the extension, without an OpenDocument event to ‘do the same as file/open does’, you will see this happening.

I put the opening code into a method called

Do_What_Open_Does (f as folderitem)

1 Like