I'm using an AppleScript to search and replace in an HTML BBEdit file. Is there syntax available for including line returns in the replace string? In the following fragment I'd like to insert a real line return between </script> and </head>.
Yes, the HTML code works just fine without a return, but returns in the correct place definitely makes HTML code easier to read. I've tried adding \\r in between but AppleScript just adds the characters /r to the file, not an actual line return. Haven't been able to find anything in the AppleScript Dictionary for BBEdit. [applescript] replace "</head>" using "<script src=\"../media/js/mmenu.js\"type=\"text/javascript\"></script></head>" [/applescript] Kind regards, Morley Chalmers -- Do not worry if you have built your castles in the air. They are where they should be. Now put the foundations under them. -- Henry David Thoreau -- ------------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml> List archives: <http://www.listsearch.com/bbeditscripting.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
