Re: plist files instead of properties
Re: plist files instead of properties
- Subject: Re: plist files instead of properties
- From: Robert Poland <email@hidden>
- Date: Sat, 10 Jun 2017 14:14:15 -0600
- Z-usanet-msgid: XID295VFJuoq2512X34
> On Jun 10, 2017, at 11:07:AM, Stockly, Ed <email@hidden> wrote:
>
> 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?
I have a script that I have been using since Jan 2004. It sets sound volume
based to keystrokes and time of day.
I put times into a script document, saved in the Universal Scripts folder.
Never occurred to me to use a plist file.
Robert Poland
Fort Collins, CO
_______________________________________________
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