Re: Need to remove Dock icon
Re: Need to remove Dock icon
- Subject: Re: Need to remove Dock icon
- From: Shane Stanley <email@hidden>
- Date: Wed, 14 Sep 2016 09:57:48 +1000
On 14 Sep 2016, at 7:16 AM, Brian Christmas <email@hidden> wrote:
>
> Obviously Sierra does not like the code.
>
> Any thoughts on how I can do this, or what’s wrong with this code, please? I’ve tried everything I can think of.
The problem is that your code is based on a misunderstanding of how the defaults process works. The property list files are read by a daemon the first time an app runs, and the app talks to that daemon. The daemon periodically writes updated values to the file, but it doesn't need to read from it again until either a restart, or it decides to clear out old values after an app has quit. So fiddling with the files is unreliable at best, and useless at worst.
Use defaults via do shell script or NSUserDefaults. They are the only way to talk to the defaults daemon.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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