• 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: formatting AS source for web
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: formatting AS source for web


  • Subject: Re: formatting AS source for web
  • From: John W Baxter <email@hidden>
  • Date: Wed, 1 Aug 2001 19:51:26 -0700

At 15:52 -0400 8/1/2001, Bill Cheeseman wrote:
>> Does anybody know of a good way to format AppleScript source code for the
>> web (including retaining syntax hilighting)? The only way I've found so far
>> is to copy and paste from Script Editor into MS Word, then save as HTML.
>> Unfortunately Word creates excessively bloated HTML documents. I'm hoping
>> there's a better way.
>
>For years I have been using an AppleScript I wrote, which takes advantage of
>the superlative scripting capabilities of the Style scriptable text editor.
>Basically, you copy a formatted AppleScript from Script Editor or whatever
>to the clipboard, then you run my script. It pastes the formatted script
>into Style, then adds appropriate html tags to preserve the formatting, then
>places the html text back on the clipboard. From there, you paste into your
>html editor. It's very fast.
>
>You'll find my script, 'Script2HTML', in the "Scripts" chapter of The
>AppleScript Sourcebook.
>
>You'll find examples of its output throughout the "Scripts" chapter.

I know of a way, but I can't talk about it. Except that I was authorized
to use it in public, as in
<http://homepage.mac.com/jwbaxter/ASsample.html>
which has been posted to this list before during the great list server
character mangling outrage.

<http://homepage.mac.com/jwbaxter/ASsample2.html>
shows the work of Bill's Script2HTML on the same script.

--John
--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Re: formatting AS source for web (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Classic Finder v OS X Finder
  • Next by Date: Re: Scripting VSS
  • Previous by thread: Re: formatting AS source for web
  • Next by thread: Re: formatting AS source for web
  • Index(es):
    • Date
    • Thread