Re: Plan E from Outer Space
Re: Plan E from Outer Space
- Subject: Re: Plan E from Outer Space
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 17 Jun 2009 16:51:40 -0400
On Wed, Jun 17, 2009 at 11:54 AM, Luther Fuller<email@hidden> wrote:
> On Jun 17, 2009, at 10:25 AM, Matt Neuburg wrote:
>> The correct approach is to communicate directly with the
>> defaults system using the shell "defaults" command. m.
>
> I considered using 'defaults', but after reading its man page, it seemed
> that it did exactly what I was doing in System Events (reading & writing the
> preference file), but was harder to write the code.
>
I have to agree with Luther. It says on the defaults man page that
you shouldn't modify the defaults of a running application, since it
may not see the change and may even overwrite the default. Sure
sounds like defaults is just editing the file on disk, with no magic
in-memory modifications.
--
Mark J. Reed <email@hidden>
_______________________________________________
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