• 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: String to list conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String to list conversion


  • Subject: Re: String to list conversion
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 14 Sep 2004 08:45:17 -0700

On Sep 14, 2004, at 7:58 AM, Paul Berkowitz wrote:

On 9/13/04 11:13 PM, "Emmanuel" <email@hidden> wrote:

In case you're interested, you can script the AS formats with Smile.
In Smile, ASFormat 9 returns the list of the styles' names {"New
text", etc.} then ASFormat 1 is the style for "New text"
{font:"Courier", text size:12, style:{}, color:{0, 0, 0}} etc.

Do you know where the default values for AS formats are stored?

As several people have already found, if you've customized the styles, they're stored in ~/Library/Preferences/com.apple.applescript.plist. If you haven't, the default default styles are actually hard-coded. (Sort of. The font actually gets selected at run-time based on the primary encoding, so folks have some hope of being able to type text in their native language.) There's a bug open to change it to use a resource, because some of the localizers aren't happy with the system's choice of fonts. Hopefully, Smile is using the API to get the styles, so it doesn't have to know where they're stored.



--Chris Nebel AppleScript Engineering _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: String to list conversion (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Selected text in Mail.app?
  • Next by Date: Re: OT [Was: Digital Sigs]
  • Previous by thread: Re: String to list conversion
  • Next by thread: Re: String to list conversion
  • Index(es):
    • Date
    • Thread