Re: String to list conversion
Re: String to list conversion
- Subject: Re: String to list conversion
- From: Gnarlodious <email@hidden>
- Date: Tue, 14 Sep 2004 01:27:36 -0600
Title: Re: String to list conversion
Entity Paul Berkowitz spoke thus:
> It looks like you need some handling of empty properties.
like this?
Other {"Courier","p",12 ,{32896,0, 32896}}
Operator {"Verdana","p",12 ,{0,0, 0}}
Language {"Verdana", "b", 12 ,{0,0,65535}}
Application {"Verdana", "p", 12, {0,0,65535}}
Comments {"Verdana", "i", 12, {19532,19789,19789}}
Values {"Verdana", "p", 12, {0, 0, 0}}
Variables{"Verdana","p", 12, {16448,32896,0}}
Reference{"Verdana","p", 12, {32896,0,32896}}
> I'd guess
> that this is another of those things where not departing from the defaults
> mean that I have no user prefs here at all and am using local or system
> defaults. Here's the contents of my com.apple.applescript.plist in its
> entirety:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> <key>ChooseAppBounds</key>
> <string>181 710 712 1262</string>
> </dict>
> </plist>
Yes, in fact no preference file is created until a setting is changed from default. Yours was written when
you changed ChooseAppBounds
> I don't know where the defaults are stored, do you?
No, I determined them empirically.
> set referenceList to {1, 2, 3, 4, 5, 6, 7, 8}
>
> You can still set item i of referenceList to your various values.
>
> But the best thing would be to populate the referenceList with the default
> values for applescript formats, whatever and wherever they may be, and only
> set item i to your user prefs' paragraph if appleScriptPrefs "", and
> paragraph i exists (use a try block), and paragraph i "".
I’ll do those things, thanks.
-- Gnarlie, hating this HTML
_______________________________________________
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