SCORM requires all of the course assets to be listed as a
<file> item in the
<resource> node. This is not evenly enforced — some LMSs don’t care of you do it or not — but is still a good practice.
If you’re anything like me, you find it to be a major pain and try to avoid it.
Today I decided to whip up an AppleScript that automates the generation of the
<file> nodes to make my life a little easier. If you’re on a Mac, you may find it useful, too. I’ve posted it on GitHub as gist.
Note that it doesn’t include the name of the root folder. Let’s say you have a root folder named
content. If needed, you can simply specify the root using the “xml:base” attribute of the resource node, like so:
Code language: HTML, XML (xml)
<resource identifier="reosurceID" adlcp:scormType="sco" href="index.html" type="webcontent" xml:base="content/"> <file href="index.html" /> <file href="Lesson01/index.html" /> </resource>