• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript Syntax File?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: AppleScript Syntax File? (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: Big numbers
  • Next by Date: Re: BUG: AppleScript compilation problems
  • Previous by thread: Re: AppleScript Syntax File?
  • Next by thread: Re: AppleScript Syntax File?
  • Index(es):
    • Date
    • Thread