• 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: "John W. Baxter" <email@hidden>
  • Date: Tue, 14 Sep 2004 11:45:40 -0700

On 9/14/2004 9:54, "Paul Berkowitz" <email@hidden> wrote:

> On 9/14/04 8:57 AM, "Emmanuel" <email@hidden> wrote:
>
>> At 7:58 AM -0700 14/09/04, Paul Berkowitz wrote:
>>>
>>> Do you know where the default values for AS formats are stored?
>>
>> Sorry, no.
>>
>> Why would you want to know that?
>
> So that Gnarlie (who asked the question in the first place) will know how to
> populate her default list for when the user's .plist is empty of AppleScript
> formatting entries. It may not be the only way of doing things - I guess she
> can just figure it out from the UI for AS Format prefs - but it would have
> been quicker to just fetch them from somewhere, if available. I had wondered
> whether maybe you knew where this was in order to write your own "AS format"
> commands in Smile. Since I asked you, Chris N. has replied that "Hopefully,
> Smile is using the API to get the styles, so it doesn't have to know where
> they're stored." If that's correct, what API is he referring to? Chris's
> other statement that the defaults are currently "hardcoded" (presumably in
> the AppleScript.component somewhere) would mean they'd be inaccessible to
> ordinary users and scripters. These APIs would be Carbon routines to get
> inside the component?

1.  It is *likely* possible if one is dealing with one's own machine to make
a non-change change to the formattting preferences (that is, change
something and change it back).  [A possible implementation would notice that
the change just made to the preferences returned them to the default state
and discard the plist file.  I would not expect the programmers to have
bothered, particularly since the default state varies by localization of the
machine.  That's why the *likely*.]

2.  Item 1 isn't helpful if Gnarlie is trying to write a script which will
work on any machine.

3.  The right way for code to learn the formatting preferences is to ask the
scripting component for them.  It's been years since I cared...I once knew
what the API call and result looked like, but what I knew is likely stale
anyhow.

4.  It would certainly be possible to write a scripting addition which
obtains the information using the API.  I don't plan to.

Since there's already an active bug whose outcome will be that there is
always a plist file, there's not much point in expressing fresh wishes for
that.

  --John


 _______________________________________________
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

  • Follow-Ups:
    • Re: String to list conversion
      • From: Christopher Nebel <email@hidden>
    • Re: String to list conversion
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: String to list conversion (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: String to list conversion
  • Next by Date: Re: world's largest AppleScript dictionary (was Re: Digital Sigs)
  • Previous by thread: Re: String to list conversion
  • Next by thread: Re: String to list conversion
  • Index(es):
    • Date
    • Thread