I am trying to set particular javascript files for a specific node page by getting the path alias. like this:
$path=drupal_get_path_alias();
if($path == 'about-us')
drupal_add_js(drupal_get_path('theme', 'mytheme') . "/page-download.js");
which it doesnt work. But when i add the particular javascript file to my .info file it works. Also in other pages i will have to unset some of the javascript files if the above does not work but still unsetting javascripts does not work.
unset($vars['js']['all']['page-download.js']);