At 07:43 -0500 18/2/08, Morley Chalmers wrote:

...Since posting my issue someone suggested adding just \r to the script. However, all that does is cause a line return to the script itself when the script is compiled. When the script is run on the BBEdit file a vertical rectangular box in inserted at that location, NOT an actual line return. Undoubtedly that's an unknown ASCII character. I had earlier found this to be the case by manually adding a line return into the AppleScript.

I can't reproduce your problem using either Script Editor or Smile, but it may be that your set-up creates an incompatibility. I guess you may have BBEdit set to use Mac line endings and are using Script Editor, which uses UNIX linefeeds.

I'd suggest you set your preferences (and existing documents) to use UNIX line feeds and encodeing utf-8.

Here's an example of a script that works fine from either Smile or Script Editor:

tell application "BBEdit"
  set w to make window with properties {text:"</script></head>"}
  tell w
    replace "</script></head>" using "</script>
</head>" options {starting at top:true}
  end tell
end tell

JD

--
------------------------------------------------------------------------
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]>

Reply via email to