print script on specific node id
a hacky solution in html.tpl.php could be like this:

$node = node_load(arg(1));
echo $node-&gt;nid;


You'll want to check for the existence of $node and such to avoid errors.

You could also create your own node template: node--123.tpl.php

You could also use the HOOK_preprocess_page() function to check for the node ID.