Re: AppleScript Syntax File?
Re: AppleScript Syntax File?
- Subject: Re: AppleScript Syntax File?
- From: Christopher Nebel <email@hidden>
- Date: Sun, 20 Apr 2003 15:50:57 -0700
On Sunday, April 20, 2003, at 01:44 PM, Rob Jorgensen wrote:
At 4:21 PM -0400 4/20/03, Stephen Swift wrote:
I've been looking at Hydra <http://hydra.globalse.org/> and thought
it would be cool if it did AppleScript syntax coloring. I'm thinking
that there must be a .plist file for AppleScript formatting... How
else would Project Builder get the formatting? But I can't locate
it. Does anyone know where the formatting data is stored (even if
its not a plist file). Thanks
It appears to be stored in
~/Library/Preferences/com.apple.applescript.plist
Sort of. That will tell you what the user-specified colors are for the
various language elements, but doesn't tell you anything about what
text is what language element.
For that, see
/System/Library/PrivateFrameworks/PBXCore.framework/Resources/Built-in
languages.pblangspec.
Of course, even that isn't the whole story. Because
application-supplied terms are a separate coloring group, it's not
possible to write a static file that covers them all. Project Builder
therefore does the same thing that Script Editor does -- it asks
AppleScript to color the source for it. Depending on the hooks Hydra
has, this might or might not be possible, but I'm betting not -- the
interface would have to be code-driven, not data-driven.
--Chris Nebel
Apple Development Tools
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.