Performing a Find/Replace for an entire Folder of html files

Hello,
I have been working away on adding an include to my html pages and getting the code all set up for a header and footer. With lots of help from kind people on this forum I finally have it working!
Now I want to add this to an entire folder of 500 or so HTML pages.
Can someone walk me through how to do this?
I also want to eliminate some stupid code that I put in years ago to prevent right clicking.
Perhaps this is a multi step job? First get rid of old code. Then add new header. Then add new footer???
Here is the fully functioning page with the new code:
http://www.glennbartley.com/naturephotography/birds/ACORN%20WOODPECKER.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ACORN WOODPECKER</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#999999">
<div align="center">
<?php $filepath = $_SERVER['DOCUMENT_ROOT'] . '/naturephotography/Header-Test.html'; include($filepath); ?>
</div>
<h1 align="center"><strong><font color="#999999" size="5" face="Arial Narrow">ACORN WOODPECKER</font></strong></h1>
<p align="center"><font color="#009900" face="Arial, Helvetica, sans-serif"><strong>NORTH AMERICA</strong></font></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 01.jpg" alt="Acorn Woodpecker" width="530" height="775"> </p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 02.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 03.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 04.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 05.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 06.jpg" alt="Acorn Woodpecker" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 07.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/Acorn Woodpecker - 08.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
<div align="center"><?php $filepath = $_SERVER['DOCUMENT_ROOT'] . '/naturephotography/Footer-Test.html'; include($filepath); ?>
</div>
</body>
</html>
And an example of one of the existing pages:
http://www.glennbartley.com/naturephotography/birds/COMMON%20LOON.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- prevent right-click -->
<SCRIPT LANGUAGE='JavaScript' type='text/javascript' >
<!--
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
else {
document.onmousedown = function(){return false}
//-->
</SCRIPT>
<title>COMMON LOON</title>
<meta name="description" content="Photographs of Common Loon in Ontario. Nature Wildlife and Landscape Photography. Bird Photography">
<meta name="keywords" content="Loon, Common Loon, bird photography, birds of Ontario, nature photography">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
//-->
</script>
</head>
<body bgcolor="#000000" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#999999">
<h1 align="center"><font color="#999999" size="5" face="Arial Narrow"><strong>COMMON
  LOON</strong></font></h1>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 19.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 20.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 21.jpg" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 22.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 23.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 24.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 53.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 54.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 55.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 56.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 57.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 58.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 25.jpg" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 26.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 27.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 28.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 29.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 30.jpg" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 31.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 32.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 33.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 34.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 35.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 36.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 37.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 38.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 39.jpg" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 40.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 41.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 42.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 43.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 44.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 45.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 46.jpg" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 47.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 48.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 49.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 50.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 51.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 52.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 01.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 14.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 11.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 02.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 03.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 04.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 05.jpg" width="1010" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 06.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 07.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 08.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 09.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 10.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 12.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 13.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/Common Loon - 15.jpg" width="775" height="530"></p>
</body>
</html>

Hello,
Thank you for the info. I did as you described and it worked like a charm.
I have removed the old code and added in teh header.
I'm kind of stumped as to how to put in the footer though as there isnt really anything to "find"?
How can I replace something at the very end of the document??
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AMERICAN AVOCET</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#999999">
<div align="center">
<?php $filepath = $_SERVER['DOCUMENT_ROOT'] . '/naturephotography/Header-Test.html'; include($filepath); ?>
</div>
<h1 align="center"><font color="#999999" size="5" face="Arial Narrow"><strong>AMERICAN
  AVOCET</strong></font></h1>
<p align="center"><img src="../GB Collection/American Avocet - 21.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet - 22.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet - 23.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet - 18.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet - 19.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet - 20.jpg" alt="American Avocet Image" width="530" height="775"></p>
<p align="center"><img src="../GB Collection/American Avocet-11.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-12.jpg" alt="American Avocet Image" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-09.jpg" alt="AMERICAN AVOCET" name="Avocet" width="775" height="530" id="Avocet"></p>
<p align="center"><img src="../GB Collection/American Avocet-17.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-16.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB%20Collection/Avocet%20-%20CRW_5390-02.jpg" width="775" height="530">
</p>
<p align="center"><img src="../GB Collection/American Avocet-15.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-14.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-13.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-10.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-08.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-07.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-06.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-05.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-04.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-03.jpg" width="775" height="530"></p>
<p align="center"><img src="../GB Collection/American Avocet-02.jpg" width="775" height="530"></p>
<p align="center">  </p>
<p align="center">  </p>
</body>
</html>

Similar Messages

  • How do I export bookmarks from Firefox for Mobile (android) to an html file?

    I have bookmarks on my Firefox for Mobile v 33.1 that I would like to copy/back up to an html file. Even if I access the desktop version on my tablet I don't see the Show all Bookmarks - Import/Export option. This Android profile used to be linked through the old Firefox Sync to my PC but the issue is that I can't access it from my PC anymore as I just had to replace the hard disk. I have now installed the new Firefox on my PC but it won't sync with the old Android version as the new Firefox Sync is not compatible with the old one. Also when I go under Sync on the Android, it says the email account is deprecated.
    Going forward I understand I need to remove account on the Android, update to the new Firefox Sync and newly link PC and Android device. However I have read that If I remove the account on my Android Firefox and set up the new Firefox Sync on it, I will lose my old bookmarks and it will only start saving and syncing bookmarks from then on even if I use the same email address to set it up. If this is the case and before taking this step, is there a way I can copy my old Android bookmarks to an html file?
    All suggestions very much appreciated! I'm completely lost.
    Thanks

    Tangram that is an answer for desktop Firefox. It does not apply to Firefox for Android.
    There is no way to export bookmarks/history in Firefox for Android.
    However your Firefox sync account is unrelated to the Firefox for Android profile. You can safely remove the account without loss of data. Then set up a new Sync Account.

  • Standards for storing the Javadoc generated html files?

    I'm new to using Javadoc have the following questions:
    1) Does anyone know of any standards as to what directory structure should be used to store the Javadoc generated html files?
    2) When working with a development and production environment, where should they be stored? Only on the development server or on both?
    3) When setting up a html page to link to all of the various Javadoc generated files for all of our applications, should we just manually create an html page that links to them or is there a tool that will take care of this?
    Any information that can be provided will be a big help!

    1) All you do is specify a directory with the -d option and Javadoc creates the directory structure below that. We often use either "-d docs" or "-d html" to create a directory named "docs" or "html" in the current directory.
    2) Preferably they should be stored on a server that has a web server running so people can access them. We build the docs nightly on the development server where people can access the latest version using a file: URL (not with a web server). Then before each release we stage them on our intranet before we push them out to the intranet. We also run the DocCheck doclet and a link checker nightly so developers and writers can find errors in their documentation.
    3) If you want a top-level page that links to separate javadoc documents, you need to do this manually. However, keep in mind that you can also inter-link all those separate documents by using the -link or -linkoffline option.
    Let us know if you have more questions or comments.
    -Doug Kramer
    Javadoc team

  • How to make ads/banners published for an Adserver (only an HTML file with all js files and images linked)

    Hi everyone!
    I'm hoping someone can solve this.
    I have made some ads in Edge Animate CC and need to put them on an Adserver....
    but the adserver company only accept the HTML code... only extra files or images.
    This means linking the images and the .js files to URLs. I have done it with the images but are hitting a wall with the _edge.js
    I added the script in the HTML to load the _edge.js. (<script src="http://www.christianlaursen.net/ADS/WL_AD_160x600_edge.js"></script>)
    But I get certain errors in the console which I believe relates to how Edge tries to load _edge.js locally (even if i load it separately)
    Uncaught ReferenceError: AdobeEdge is not defined                    WL_AD_160x600_edge.js:3
    Failed to load resource: net::ERR_FILE_NOT_FOUND                 file:///C:/Users/claursen/Desktop/WL_AD_160x600_edge.js
    Uncaught TypeError: Cannot read property 'stage' of undefined    edge.5.0.1.min.js:133
    Uncaught TypeError: Cannot read property 'stage' of undefined    edge.5.0.1.min.js:126
    This is as far as I got. I am not sure 100% the script is being loaded correctly, but as the console is complaining about the local file, I have
    a feeling it's with Edge's attempt to load it locally that causing it to stop.
    Anyone doing Ads with Edge? It seems it should be such a simple thing and also important thing
    Thanks in advance for reading and any given help!

    I have verified that an Edge published banner can be booked into DFP (Doubleclick for Publishers) as a third party tag by creating an iFrame of the link to your edge published HTML file. You save that file as a *.txt.There is still the issue of click URL macros, and cachebusters. For DFP the click URL macro is %%CLICK_URL_ESC%%
    So you would probably use in Edge
    window.open('cta', %%CLICK_URL_ESC%%'http://somedomain.com/');
    then for the cachebuster, DFP's is random=%%CACHEBUSTER%%
    This is what an Edge published banner tag would look like.
    <style type="text/css">
    body{
    margin: 0;
    padding: 0;
    </style>
    <iframe src="http://www.somedomain.com/yourfilename.html"
    marginwidth="0" marginheight="0" scrolling="no" width="160" align="top"
    frameborder="0" height="600"></iframe>
    IMO it is worth pursuing using Google Analytics for the reporting, as you can put your Google Analytics code in your Edge published HTML file.Hopefully someine with GA experience will chime in.
    Event Tracking in Google Analytics Universal through Google Tag Manager - YouTube

  • I am trying to export "bookmarks.html" for another browser but No HTML file is created! How can I fix this?

    Bookmarks> Organize bookmarks> ★ Export HTML > "export bookmarks file" window appears. Save as "Bookmarks.HTML" Desktop> NO FILE IS PRODUCED!

    Does Firefox create an HTML file (bookmarks.html in the profile folder) on exit if you set the pref [http://kb.mozillazine.org/browser.bookmarks.autoExportHTML browser.bookmarks.autoExportHTML] to true on the about:config page ?
    See also http://kb.mozillazine.org/Export_bookmarks

  • How to copy a files spotlight comments for an entire folder and place them in a different file with that same name

    I have the same question in a different discussion but I already marked it as solved because one of the questions was answered. Here's the linke to the other discussion if your interested https://discussions.apple.com/thread/5970421 
    I have movie covers saved as a jpeg for every movie my family and I own. There is about 700 and they each have a comment of the main actors, release dates, and descriptions. This makes it easy to find what to watch.Is there an applescript, automator, program I can download,  or program code supported in xcode that will do the following set of inscructions?
    Take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments to a file with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste
    and do this for all 700 files

    Clendenen02 wrote:
    where should I run the code? in the terminal, or an applescript, or should put it in xcode and run it from there or the terminal.
    What MrHoffman said.
    But if it's easier, you can wrap it in Automator and have Automator ask for the Folders: (Test on a sample of your files before running on all 700 files)
    (do you really own 700 movies??)
    The Workflow is:
    Put this in the Run Shell Script Action (and pass input as arguments":
    PicDir=$1
    MovDir=$2
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" = "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [[ -e "$MovDir"/$movname ]]; then
    osascript <<-EOF
    tell application "Finder"
    set comment of file (POSIX file "$MovDir/$movname") to  "$comment"
    end tell
    EOF
                   fi
              fi
         fi
    done
    (BTW, I know that this is a bit of sloppy scripting (wraping an osascript in a Bash Script wrapped in Automator, but it does what you need)

  • How to copy a files name and spotlight comments to a text file for an entire folder

    I have movie covers saved as a jpeg for every movie my family and I own. There is about 700 and they each have a comment of the main actors, release dates, and descriptions. This makes it easy to find what to watch. I want my parents to have all of this info but they have a windows laptop so the comments don't transfer with the file and can't be searched like you can on a mac. Is there an applescript, automator, program I can download,  or program code supported in xcode that will do at least one of the following things?
    1)Take the name of the picture file and spotlight comment, copy and paste it into a text document like word that looks like this...
    File Name1- Spotlight Comment for file 1
    File Name 2- Spotlight Comment for file 2
    . for all 700 files in a folder
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    3) Is there a free photo program that works on mac and windows that I can put all my movie pictures in and have a description like I did with the comments? It would also need a place that to search the description for keywords. So Basically an itunes for pictures that works on both mac and windows. If so I still need a way to get the spotlight comments to the description.
    4) I feel like this would make things more difficult, but if not I can put all of the .m4v files in itunes so instead of pasting all the comments back into a file in finder paste them in a description in itunes
    5) At the very least a code that I can run one by one for every file that will paste the comments into the same document
    Note: When I say spotlight comments I mean the comment box that is available when you click on get info of a file. The pictures are in the pictures section of finder in a folder called Movie Pictures. The movie files are on an external hard-drive in a file called Movies. Also I am slightly familiar with applescript and automater in that I have used both to create keyboard shortcuts and simple voice commands. I have programmed in c++ and C too. So If you give me a code for applescript I do know what to do with it.
    Thanks to anyone who takes the time to read all of this and extra thanks to anyone who tries to help.

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • Need to find replacement for USB cord

    Hello!
    (I'm sorry if I posted this in the wrong area, but it seems the Toshiba website is a bit of a hassle to navigate through so I gave up, and hoped that the forums could offer me assistance.)
    Ok, so a couple of years ago I recieved a Toshiba External Hard Drive (model: HDDR160E03X). It worked great, stored all the files that needed stored etc. But the cord that came with it broke, and was repaired a couple of times. Now the cord is to the point where it cannot be repaired anymore (without a serious amount of work at least).
    So I am looking for a USB cord that will work for it. I've tried multiple cords already, but they don't power the external hard drive (it is USB powered) so it doesn't work properly. I haven't been able to find a replacement, which brings me here! Does anybody know where I could find one?
    Any help is appreciated.
    Solved!
    Go to Solution.

    I am looking for a USB cord that will work for it. I've tried multiple cords already, but they don't power the external hard drive (it is USB powered) so it doesn't work properly.
    You don't say so, but I infer it's one of those cables that draws power from two USB ports (aka "Y Cable"). If so, here's one.
       StarTech 1 ft. USB Y Cable for External Hard Drive
    -Jerry

  • Save XMP file for an entire folder?

    I have my automatic XMP saving turned off. Now I want to selectively be able to save my XMP files as needed. I thought that I used to be able to save the XMP files for all the photos in a folder at once. however, now it seems that I can only save the XMP file for only the actively viewed photo (regardless of how many in the folder are actually selected). Does anyone know how to do this?
    (Aslo, what happens when there are mixed JPG and RAW files selected when I want to save the XMP data?)
    Thanks,
    Nick

    Nick,
    CRTL+A will select all photos in a folder. The CRTL+S will do the xmp writing for all photos that need it. It goes pretty quickly. You can watch the progress bar in the upper left.
    Mel

  • Replacement for the Leopard Folder Blahs

    I love Leopard but must agree with others that the generic Folders are especially blah. I spiced them up by downloading some new sets. I placed the chosen icon in my Dock folders with a "*" before the name so they appear first when you sort by name. Here's the result.
    !http://idisk.mac.com/elvisapso/iSticker Toolbat icons.tiff!

    Embarrassing and frustrating! I've designed hundreds of websites yet there's no simple way to display a link to a file on .mac account? Great going Apple! That's why I use a real web host. Anyhow, for anyone still interested, you can DL the screen capture at the following lame link. I was trying to help but .mac sure put a damper (and hamper) on my effort.
    http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=elvisapso&tem platefn=FileSharing1.html&xmlfn=TKDocument.1.xml&sitefn=RootSite.xml&aff=consume r&cty=US&lang=en

  • Find/Replace for Superscripts

    Howdy!
    The copy I'm working with is being imported as plain text. Therefore my TM symbols are wholesale text. Is there a way to single those out to have superscript applied to them?
    Thanks!
    ~TPS

    One caveat:
    Are the letters TM inserted at the end of words as simple capital T capital M? Is there a space before the capital T?
    If there is a space it will be easy to find space TM. But if not, and the letters are not capitals, there could be problems.
    You don't want the letters tm that might be inside a real word to be converted into the TM sysmbol.

  • Lion, Finder quits when copying a folder with idlk files (indesign cs4)

    I have a network volume on solaris which I backup folders to the local desktop. if I drag the folder to the desktop in lion, it gives permission issues once it gets to the idlk file, the finder resets, disconnects the network drive and does not copy. If i use snow leopard, the finder works fine and skips the the .idlk from all these guys having open files on the server. This is disruptive for my backups because often users have files open. How do i skip or ignore the .idlk files when I am backing up entire directories?

    This sounds like a Lion bug...File it with Apple...
    Can you use a tool other than the Finder to do the backup? Perhaps you could use an Applescript Droplet or something.
    Then you could try some other tool (perhaps 'ditto') to do the copy. Worst case you can copy the folder to a temporary location on the hard drive and then copy that copy to the Solaris server...

  • Help! Where I could find API for Java to uncompress ZIP format File?

    Please!
    How can i find it?
    Is there anyone have the source?

    If you want to unzip ZIP Files in java code, use java.util.ZipFile classes. Goto www.yahoo.com and type java.util.ZipFile in the search box and hit go and it will come up with all the methods and stuff for the class as the first hit.

  • Trying to find answers for the question "Why is this file type blocked from being uploaded into SharePoint"

    At least once a month - sometimes much more frequently - I get calls from users asking why the file extension they "need" to upload to SharePoint is blocked.
    Most recently, it was a Microsoft Access database that the user was attempting to upload to a document library. Before that, it was a shortcut link (*.url). And so on.
    Is there a reference document which goes over the reasons why specific file types are blocked?
    Thanks!

    Each blocked file format has it's own reasons for not being allowed to be stored on a SharePoint library.
    Some of them are blocked because they would be processed by SharePoint Servers during the upload/download sequences, thus, possibly corrupting the system ( like dll files ). Others would cause Crawl to break ( url files ).
    The Access database files are blocked for two valid reasons. First, because saving "live" to those files using Windows explorer window ( WebDAV ) doesn't work. Second because SharePoint product managers want us to use SharePoint lists instead.
    And it does makes sense.
    If you're in the middle of a migration from file servers to a SharePoint solution, your people could use these situations to stop and think about it for a little:
    Really ? Now that we have SharePoint, couldn't we do things a little bit differently ?

  • When client open folder with html files to preview web site, some pictures are missing when previewed.

    However all images are in "images"folder. Same images are missing when previewed in Firefox and Explorer.
    Any idea why?
    Thanks.

    Are you sending this other person all of the image files in
    the same relative location as they are on your local computer?
    For instance, if you are sending them index.html and your
    images are in a folder called images, you should be sending them a
    Zip file with the following enclosed:
    index.html
    images (folder)
    image1.gif
    image2.jpeg
    If you are sending this type of structure to your other
    party, check the links in code view. Make sure they are relative.
    If they are, on the index.html page they would look like
    images/image1.gif. If it says anything like C:/ or something that
    points to a local drive they you will need to make sure the image
    are within the site definition and then save the files
    again.

Maybe you are looking for