Good morning,

On 22/07/11 at 9:49 PM +0100, John Delacour <johndelac...@gmail.com> wrote:

using terms from application "BBEdit"
make window with properties {source language:"perl", text:"#!/usr/local/bin/perl" & return & "use strict;" & return & "use feature qw( say state switch);" & return}
end using terms from

now creates a plain languageless document when in BBE 9 the document coloured the syntax. Having noted Rich's recent warning, I changed 'window' to 'document' but still the syntax is not coloured and the doc type is 'none'.

Not sure it if it makes any difference, but try setting source language to "Perl" instead.

If that doesn't fix it then manually set a document to "Perl" and use AppleScript to get the Source Language; use the same returned value in your script.


Charlie

--
   Ꮚ Charlie Garrison ♊ <garri...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to