• 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
Storing preferences?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Storing preferences?


  • Subject: Storing preferences?
  • From: James Burns <email@hidden>
  • Date: Wed, 5 Feb 2003 15:31:10 -0500

Hello:

First of all, a quick thanks to everyone who has helped me in the past couple of days with my newbie questions. This list has been invaluable in my learning process.

Now that I've buttered you all up, I've got a few more questions. I have the feeling that these are common questions, but I'm only resorting to bugging y'all after fruitlessly searching for answers on the World-Wide Web.

Here's what I'm trying to do -- Write a preference file.

My questions?

1/ What's the best way to implement this? I looked at the sample application in the examples/applescript studio folder of the December 2002 developer's release, but can't quite wrap my head around what's involved. Is there a simple scheme for doing this just with Applescript i/o commands, and not calling obscure Cocoa routines?

2/ In that vein, is there a way to overwrite files automatically (without user intervention) if they exist? That way I could write a simple text file with the info I want to retain between sessions without bugging the user at quitting time.

3/ Any suggestions for the structure of the preference file? Text? Records? Delineated how?

Thanks for your suggestions.

-----
James Burns
http://www.jamesburnsdesign.com
_______________________________________________
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: Storing preferences?
      • From: Andrew Oliver <email@hidden>
    • Re: Storing preferences?
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Scripting Address Book
  • Next by Date: Re: Checking if a Volume is Mounted
  • Previous by thread: Re: AppleScript 1.8.3 for Mac OS 9
  • Next by thread: Re: Storing preferences?
  • Index(es):
    • Date
    • Thread