• 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: Write a prefs file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write a prefs file


  • Subject: Re: Write a prefs file
  • From: JJ <email@hidden>
  • Date: Tue, 28 May 2002 13:43:30 +0200

> G'day all,
>
> I'd like display a dialog and the write the result a prefs file. I've done
> this many times before but have always used plain text files.
>
> I'd like to write a 'true' prefs file rather than a plain text file - can
> this be done using the write commands of vanilla AS?
>
> Thanks
>
> kim

A plain text file is a "true" prefs file, though "write" command will only
write to the data fork (the one you can see opening a file in a text
editor). But if you're talking about store some values within a resource
fork, you can't do it conventionally using vanilla AS. The only way can be
"store" a script object (which is stored in the "scpt" resource) using
"store script" command from Standard Additions (in fact, this is not _pure_
vanilla).

Also, you can use some third-party scripting additions to create a "true"
prefs file (file type "pref"), as "Akua Sweets" (command "save preference"),
"XCMD" (command "Text To Resource", perhaps more complex) or Steve LoBasso's
"Preferencel0" (talking from a pre-X context).

Bye!

JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Write a prefs file
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: inconsistencies in getting a non-existent object
  • Next by Date: Re: "info for"
  • Previous by thread: Choose Paper source
  • Next by thread: Re: Write a prefs file
  • Index(es):
    • Date
    • Thread