On Jun 24, 2010, at 10:52 AM, Peter Weil wrote:
> Are others able to successfully run the Gruber PHP Syntax Check AppleScript
> under v9.5?
>
> Mine keeps saying:
>
> Can't make "message" into type integer.
I don't think I've seen that message, but I see this one from time to time:
"Can't make missing value into type alias"
Seems to only happen when I check files opened from a remote server and have
saved them. If I get the error if I hit space/delete to set the "dirty flag"
(for lack of a better phrase) the check runs w/o error.
After thinking a bit I may have just fixed my issue. I'll know more after
further testing. (Maybe one of the AppleScript gurus out there can tell me.)
Since my errors were happening on clean files from remote servers I made these
changes. I added this line
set on_disk to on disk of (document of w)
after the line that starts "set is_dirty to modified ..." and changed this line
if (is_dirty) or (linebreaks is not equal to Unix) then
to this
if (is_dirty) or (on_disk) or (linebreaks is not equal to Unix) then
It has passed a couple of tests so far.
--
Rod Buchanan
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" rather than posting to the group.