• 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: 3 random typefaces intermixed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3 random typefaces intermixed


  • Subject: Re: 3 random typefaces intermixed
  • From: Doug <email@hidden>
  • Date: Thu, 27 Mar 2008 16:57:40 -0400

> > I'm also looking for suggestions on an
> > elegant way to program it so that the
> > computer does the work--not me.
>
> That's the only way to script.

*sigh*...:-)...I meant that in a few lines of code, the applescript is
(tersely?) written to randomly select and create three sets of
characters throughout the document in a way that the three sets of
characters don't overlap, and in a few lines of code change their
typefaces. As Emeril might say,

     "Bam, bam, bam!"

rather than

     "...okay...let's watch TextEdit plod
     through one character at a time...zzzzz..."

I can imagine what the code *might* look like, I just don't know if
applescript has the ability to do that.

> >>> Is it possible to use AS to create
> >>> three sets of pointers-to-characters, so
> >>> each pointer-to-character in the document
> >>> is only represented once, and then
> >>> have AS change
>
> Yes, sort of, but not as you might expect

This is what I'd like to know more about.

> >      set{1}=font(1),
> >      set{2}=font(2), and
> >      set{3}=font(3)
>
> That's not appleScript.

Nope! Pseudocode!

> Well, yea, but you still haven't let us know which app you want to use...

TextEdit is what I'm working with right now.

> Reminds me of that old ransom note font Macs used to have. They called it
> "San Francisco," an allusion to the "Dirty Harry" villain?

Similar approach. One might find three Ransom Note fonts and randomize
the body copy.

My other thought was to build a new type of postscript font with the
randomization built into the font description, but I never got that
far with it. That's a discussion for another list. Anyone? Bueler?

Doug Parker
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: 3 random typefaces intermixed
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: keep dialog open beyond time out
  • Next by Date: Re: 3 random typefaces intermixed
  • Previous by thread: Re: 3 random typefaces intermixed
  • Next by thread: Re: 3 random typefaces intermixed
  • Index(es):
    • Date
    • Thread