# Apple’s Trailers hand-out — Liran Tal

A useful PHP and Perl script to grab Apple trailers

Canonical: https://lirantal.com/blog/2006-07-08

![Cover artwork for Apple’s Trailers hand-out](/_astro/photo-1468956398224-6d6f66e22c35.BePqp3CW_Zj88Tk.jpg)

A great link I’ve found provides access to an updated list of Apple’s trailers/poster images. Useful for a php/perl script to grab it.

[http://wdirect.apple.com/trailers/home/externalA.js](http://wdirect.apple.com/trailers/home/externalA.js)

Or even better, a php: [http://www.zerohex.org/AppleTrailers.txt](http://www.zerohex.org/AppleTrailers.txt)
Well, now that you have this file, how do you get the best out of it? Quite easy, the code is already written, on javascript though, so you’d need a console javascript engine for that. luckily Rhino which does the job is available simply by `apt-get install rhino`

Next up, you’d have to edit the file and change all the `document.write()` functions with `print()`, then add to the end of the file a function from all the provided ones like `loadRandomE();` just run it with ‘rhino -f externalA.js‘

## More writing

[All writing](/blog)

*   Sep 5, 2026

    ### [Self-Hosting Hermes Agent with Matrix E2EE on Proxmox](/blog/self-host-hermes-agent-matrix-e2ee-proxmox)

*   Aug 2, 2026

    ### [The Practical Second Brain: Building an LLM-Operated Markdown Knowledge Graph](/blog/practical-second-brain-llm-markdown-knowledge-graph)

*   Aug 1, 2026

    ### [Building a Second Brain with LLMs and AI Agents](/blog/building-second-brain-llms-ai-agents)


* * *

Liran Tal is the author of the book [Node.js Secure Coding: Defending Against Command Injection Vulnerabilities](https://www.nodejs-security.com/)

[Start Building Secure Node.js Applications](https://www.nodejs-security.com/)

 [![](/_astro/nodejs-secure-coding-book-3d-style.DiTWpzFs_Z3c7s1.png)](https://www.nodejs-security.com/)
