Levure File_System
Posted: Thu Nov 08, 2018 4:20 am
I have the File System helper added to my app. My only need here is to associate the documents the app creates with the app so that they can be opened. I have confirmed that the helper is being added to the standalone and I have the app.yml file configured with a file extension:
file extensions:
CBP Files: cbp3
Then I added this to "OpenApplication" in the app.livecodescript stack:
if fileSystemFilesToProcessOnOpen() is not empty then
ProcessMyFiles fileSystemFilesToProcessOnOpen()
end if
and added to "ProcessFiles" in the app.livecodescript stack:
ProcessMyFiles pFiles
The instructions seemed to indicate the above should be added to the app.yml file but that didn't seem right to me and I assumed they belonged in app.livecodescript
With the app complied a double click on a document will launch the app but then I get a list of errors as follows:
573,52,1,ProcessMyFiles
253,52,1
241,51,1,OpenApplication
353,0,0,stack (then the path to app.livecodescript in the app)
675,567,1,levureFinishLoadingApplication
353,0,0,stack (then the path to levure.livecodescript in the app)
If the app is already launched and I double-click a document, it just brings the app to the front but the document does not open. I have obviously missed something here.
file extensions:
CBP Files: cbp3
Then I added this to "OpenApplication" in the app.livecodescript stack:
if fileSystemFilesToProcessOnOpen() is not empty then
ProcessMyFiles fileSystemFilesToProcessOnOpen()
end if
and added to "ProcessFiles" in the app.livecodescript stack:
ProcessMyFiles pFiles
The instructions seemed to indicate the above should be added to the app.yml file but that didn't seem right to me and I assumed they belonged in app.livecodescript
With the app complied a double click on a document will launch the app but then I get a list of errors as follows:
573,52,1,ProcessMyFiles
253,52,1
241,51,1,OpenApplication
353,0,0,stack (then the path to app.livecodescript in the app)
675,567,1,levureFinishLoadingApplication
353,0,0,stack (then the path to levure.livecodescript in the app)
If the app is already launched and I double-click a document, it just brings the app to the front but the document does not open. I have obviously missed something here.