Triggering a video at startup like the "Welcome Video" on Mac OS X Snow Leopard

Do you remember the incredible​ Welcome Video​ on Mac OS X Snow Leopard? Does anyone know how all this is achieved? I mean the principle of how to get the video to play automatically the first time one tries to log in to a New Mac. Any suggestion would be appreciated. Thanks.


I don't know how Apple did it, but a common solution to 'one-time only' actions is to check for the presence of a special hidden file in the user's home directory before doing them.

So in this case, you'd have a login script that checks if the file is there. If it is, do nothing. If it's not, play the video, then create the file.