Storing USer prefs for AppleSCript USe

I’m giving away various scripts to friends for their use and finding that they need to be customized in some form for use on their Mac rather than mine, typically to specify a directory path or a user name or something similar. Is ghere an acceted, standard lace to store away this type of data? I would provide a script to maintain it and then the main script would read these prefernces from wherever they are stored instead of having them hard coded in the script.

Thanks

Hi,

take a look at this article

Thanks, looks interesting but not very understandable to me unfortunately. Can I just use the routines in that link without any changes? Do I have to create an empty plist file with TextEdit or something before I use these routines? I think this will do what I need, just don;t understand enough about AppleScript and unix commands to know the answers to the above!
Pete

defaults write creates a plist file automatically, if there is none.
With no further specification the used class is string.
If you want to save number or boolean values, you have to use this syntax

defaults write [domain] [key] -bool yes defaults write [domain] [key] -int 2 defaults write [domain] [key] -float 1.4567