Re: plist files instead of properties
Re: plist files instead of properties
- Subject: Re: plist files instead of properties
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 10 Jun 2017 19:33:44 +0200
> Le 10 juin 2017 à 19:07, Stockly, Ed <email@hidden> a écrit :
>
> OK, I'm ready to take the plunge and stop using properties to store data in
> my scripts and use plist files instead.
>
> I've been looking for definitive information about how to do this, but I'm
> not sure I've found it.
>
> The scripts will be running on Yosemite and El Capitan.
>
> I will want to share some the data in some of the plists between multiple
> scripts on the same mac and on different macs. (The plists could be synced or
> shared on a network volume; icloud; dropbox, etc.)
>
> I'm thinking I'll save the plist read/write handlers as a library on each of
> the macs, store the plist files in the same location on each mac, and then
> sync the plist files to the shared folder.
>
> My questions are:
>
> Is it better to use AppleScriptObjC to read and write the plists or just use
> System Events?
>
> Is there a standard location where plists are generally stored or is it to
> each his own?
>
> Any drawbacks to doing this?
Shane STANLEY wrote some chapters about this way to store datas in Everyday
AppleScriptObjC 3ed.pdf.
For my own use, I store such files in the Preferences folder but I know that
some other scripters dislike this location.
I received scripts storing such files in the Documents folder. Other store them
in the folder Library:Application Support.
Honestly I never understood what's the problem with using the Preferences
folder.
Maybe this thread will bring some explanations about that.
Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) samedi 10 juin
2017 19:33:12
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden