rrBUSS9EE wrote:Maybe we can just agree it is broken and hopefully a fix is forthcoming.
Actually, I think this would fall under the category of "design decision" rather than a bug.
While revCopyFile may be enhanced to avoid using AppleScript on sandboxed Mac systems, your clarification describes a very different problem: the load sequence for the Rev libraries.
The sequence of engine boot messages is:
startup
preOpenStack
preOpenBackground
preOpenCard
openStack
openBackground
openCard
If you look at the script for the group that gets included in standalones ("revLibraries" in the stack "revLibrary.rev") you'll find it calls revLoadLibraries from the preOpenStack, preOpenBackground, and preOpenCard messages (presumably this redundancy is for fault tolerance among a wide variety of user scripting setups).
You can verify this sequence by making a stack, putting some arbitrary controls in a group, and then putting this in the stack script:
on preOpenStack
Report the params && the name of me
pass preOpenStack
end preOpenStack
on preOpenCard
Report the params && the name of me
pass preOpenCard
end preOpenCard
on preOpenBackground pBgID
Report the params && the name of me
pass preOpenBackground
end preOpenBackground
on openCard
Report the params && the name of me
pass openCard
end openCard
on openBackground pBgID
Report the params && the name of me
pass openBackground
end openBackground
on openStack
Report the params && the name of me
DumpReport
pass openStack
end openStack
on Report s
global gReportData
put s& cr & the backscripts &cr&cr after gReportData
end Report
on DumpReport
global gReportData
put gReportData into url ("file:"& specialFolderPath("desktop") & "/messagelog.txt")
end DumpReport
In the card script you'll put the same message handlers, omitting the call to "DumpReport" in the openCard handler since we only want that called at the end of the boot sequence.
Before building, be sure to set the option to manually include libraries rather than rely on the standalone builder looking to see if your app needs them, since of course our app has so little code that it won't actually need them.
Running the resulting standalone here gives me a log file that shows the backscripts empty for only the card script's handling of the preOpenStack message, with all others showing the RevLibrary backscripts in place.
The docs are probably just being a bit conservative in their description of affected messages, given the wide range of unpredictable things people do with LC.

But as the sample script above shows, it seems that the handlers in the revLibrary scripts should be available to your stack script using any of the messages listed above, and even to your card script before it using any but preOpenCard.