There is more to this story…
I have a external folder indexed.
It shows previews on applescript, scpt and scptd files.
DT allows changing the text of any of these files and then saves it.
I changed a scptd file, just a comment to see what happened.
It saved with the same file extension and the date changed.
When I opened the file with ScriptDebugger it said the file extension was wrong.
The file SD was opening still had the .scptd extension.
I saved the file as a .applescript file from SD to the same directory.
It did not show in the DT indexed files.
I deleted both files from DT, then resaved to the same directory.
DT would not show the files again even after “update index files”
I did not expect to be able to edit the scpt or scptd files but maybe the applescript files since its just text.
Now I know to NOT change anything other than .applescript files.
I am glad DT3 shows a preview of all script files, even script.app files which makes it great for searching code. Especially being able to copy the text directly from them.
I have a suspicion what may be happening here but @cgrunenberg would have to confirm or deny my theory.
Perhaps .applescript files like you’ve constructed here are being treated as Markdown and the first line is parsed as MultiMarkdown metadata.
I have done that… and rebuilt my own db in FileMaker.
The file ASObj-C Database.fmpur should be able to be opened with Filemaker 14+, and maybe its a problem with the current version 19 but I know it works in FM18.
You wont be able to change the database structure or modify the security etc, that was stripped out with the making of a runtime.
BUT you can “Export Records” data from each layout. If you use Filemaker as the type it will have all the field names just as the original was. You will have to export the other 3 or 4 layouts as well. If you have the Filemaker demo you can then rebuild the relations from file to file.
But if you are not familiar with FileMaker it could take you awhile to figure it all out. I have thousands of hours over 25 years of experience with FM so its simple to me.
You should however be able to get at the raw data fairly quickly.
Basically you will create a new calc field and concatenate many fields together in one text field then export that single field as a file.
You can also simply go record by record choose Send Sample to “Script Debugger” from the menu.
But that is not ALL of the data that is there.
I’ve done that, even filtered for each class. Took some time but worked out well via UI scripting the export dialog.
Unfortunately it doesn’t seem to be possible to send samples to Script Debugger with the FileMaker demo. When I try I get an error window saying “Either the front window is not a samples window or the script failed to recognize the window was a samples window.”
So it would be really great if you post them on the Script Debugger forum
Forgot to ask: Is there other ASObjC documentation you would recommend? I have Xcode and Dash, but is there more?