• 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: "Stockly, Ed" <email@hidden>
  • Date: Wed, 26 Mar 2008 12:51:50 -0700
  • Thread-topic: 3 random typefaces intermixed

> I want to randomly pepper three typefaces throughout a document in a
scriptable app.

Very easy to do via appleScript, depending on the app.

>Repeat loops work, but they're agonizingly slow.

Only if you have a very low threshold for agony, or an incredibly large
document, or are not using repeat loops efficiently.

> 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.


>>> 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


>
>      set{1}=font(1),
>      set{2}=font(2), and
>      set{3}=font(3)

That's not appleScript.

  Set typeFace of character x of textToRuin to y

is closer to what an appleScript solution would look like.


>>Mark>> Solving this is highly dependent on what particular scriptable app
you're using, I'm afraid.
>> Always better to give too much detail than not enough.

>>Ahh...live 'n' learn.

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

>>>Sometimes big blocks, sometimes alternating by character, depending on the
random number generator.

>>>  The goal is to have an AS to randomly intermix the three so that the result
is more true-to-life typewriter copy than just using a single typewriter font.

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

>>>Would this be more of a widget than an AS?

Most likely AppleScript, depending on the app.

Of course, if you don't care what app, then TextEdit would be a good pick.

ES

 _______________________________________________
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

  • Prev by Date: Re: iTunes multiple changes without repeat? Speeding up things.
  • Next by Date: order of files in Finder vs. file index number
  • Previous by thread: Re: 3 random typefaces intermixed
  • Next by thread: Re: 3 random typefaces intermixed
  • Index(es):
    • Date
    • Thread