Re: AppleScript
Re: AppleScript
- Subject: Re: AppleScript
- From: Matt Deatherage <email@hidden>
- Date: Fri, 28 May 2010 12:35:14 -0500
On 5/28/10 at 12:28 PM, Charlie Dickman <email@hidden> wrote:
The Time Machine customizers all seem to disable Time Machine's
automatic capability by establishing their own daemons to
initiate immediate Time Machine backups on "schedule". IMO,
altering Time Machine's backup interval is better accomplished
by changing its plist file.
Someone should take the hit for saying this, so it might as well
be me:
While preferences stored in property list files are easy to
discover and manipulate, there is generally NO guarantee that
the indicated behavior will continue to depend upon such
undocumented preferences. It's as if some third party loaded
your scripting bundle/application and started changing the value
of one of your internal properties -- you're under no obligation
to keep using that property for any reason. If you find a
better way to implement your code, third-party utilities that
changed your internal property will "break" when you no longer
use the value they're spying/changing.
I'm not sure it's more reliable to use an undocumented call to
tell Time Machine to "back up now," but given the choice between
that and changing one of its internal preference values, I'd
take the "start now" approach. Unless Apple documented
somewhere that you can change a PList entry to change Time
Machine's behavior, don't count on it working that way in the
future -- and that means you have to rewrite your code.
Undocumented preferences are the same as undocumented APIs --
don't depend on them in production code.
--Matt
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
"If you're going to do something wrong, do it big, because the
punishment is the same either way." -- Jayne Mansfield
_______________________________________________
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