Questions tagged [system-preferences]
59 questions
1
vote
1 answer
How to read mac system preferences programmatically?
I'm trying to tell if a user has specific system preferences set. I.e. the app needs to know if they've given Full Disk Access, if they've selected our app under Accessibility, etc. like in the picture below.
I know we can do something like
defaults…

Alex Cory
- 10,635
- 10
- 52
- 62
1
vote
0 answers
Debug prefPane in legacyLoader with SIP and 10.15
In the past (10.11 to 10.14), to debug a System Pref Pane, you could make a copy of System Preferences and self-sign it, then use this copy as the debug target. This method bypassed the System Integrity Protection restrictions.
With Catalina, all…

Trygve
- 1,317
- 10
- 27
1
vote
1 answer
Is it possible/safe to change the OSX mouse system preferences settings such as Tracking Speed programmatically?
I did some research and it looks like this is stored in the IORegistry
under ":/IOResources/HIDSystem" as "HIDMouseAcceleration".
Can these be set from a user program using the IORegistry API?
Any other ways to programmatically change the mouse…

Hari Mahadevan
- 920
- 7
- 14
1
vote
2 answers
How to script to turn off mac window mirroring,
So I have 150+ users who are using a mac mini, El Capitan.
I use deploy studio to make an image so I can clean out the junk every so often, on this image I have settings and such that I can regulate, I am not sure how to make it so the first time…

lwaskie
- 77
- 1
- 1
- 12
1
vote
1 answer
Where are Android screen lock classes and preferences stored?
I want to write a simple convenience app that allows me to have two locking modes on my phone. By default the phone would just go to the slide lock after a minute or two, but after a longer time or if I activate my app, it should engage a more…

nsandersen
- 896
- 2
- 16
- 41
1
vote
1 answer
How can I change a users profile picture in OS X using AppleScript
I have written an AppleScript to grab a users Facebook profile picture (using Curl) store it on their machine and set it as their User Picture in OS X. This picture:
I am having trouble setting the picture, I've tried
tell application "System…

Jacob Wood
- 209
- 3
- 13
1
vote
1 answer
Mac 10.9 Accessibility
The Mac OS X 10.9 has Accessibility settings moved to different pane, now its been moved into security and privacy and it is per app based kindly look at the following screenshot ,
If we want our app to have enabled Accessibility feature then we can…

sandy Surname or Initialc
- 353
- 3
- 15
1
vote
2 answers
get preference of language in System Preferences-> language & text
I'd like to get the preference of language in System Preferences-> language & text. I try to use "get system info" to get the language preference.
set language_prefer to (user locale of (get system info))
if (language_prefer is "zh-Hans") then
…

pinchwang
- 353
- 1
- 2
- 13
1
vote
0 answers
How to programmatically enable a Service?
I have an application that provides a service to modify text that is currently selected. However, it has to be first enabled by the user through the Keyboard Shortcuts section of System Preferences.
Is there a way for me to enable it for the user?

hollow7
- 1,506
- 1
- 12
- 20
1
vote
1 answer
strange property result for picture path of the current user in applescript
When I run:
tell application "System Events"
get the properties of the current user
end tell
in applescript, everything looks fine except for the picture path. The path referenced is not what I see as my user picture.
I am probably missing…

dejay
- 758
- 2
- 6
- 18
1
vote
2 answers
Programmatically changing screen lock timeout
In my Cocoa application I would like to access and change the computer's screen lock timeout setting. Changing it in System Preferences does not require the user to enter the admin password.
Unfortunately I couldn't find any information in the…

antalkerekes
- 2,128
- 1
- 20
- 36
0
votes
4 answers
System Preferences NSImage not resolving
I can't seem to get my NSImages to resolve in my System Preferences project?
The image is a user.png that resides in my main folder of my xcode project.
EDIT: I have included a link to the Source Code. Hopefully someone is able to spot the…

Coderama
- 11,050
- 12
- 44
- 58
0
votes
1 answer
Where the Date Time preferences data is saved on mac
I need to check whether "set Date and Time automatically" is checked or not on mac system preferences programmatically .
I didn't find any preferences plist file that it contains about this information,Can anybody suggest me from where can I fetch…

Akbar
- 1,509
- 1
- 16
- 32
0
votes
2 answers
How to click a button on System Preferences using applescript?
I am trying to write an applescript to change hot corners settings in System Preferences.
Here is what I have got until now.
tell application "System Preferences"
activate
set current pane to pane…

Arman
- 126
- 3
- 14
0
votes
2 answers
Apple script to bring System Preferences pane to front
I am trying to navigate to security pane in system preferences using below script, if pane is already opened and minimised, script is not able to bring it front. Is there a way along with activation , I can bring it to front
tell application…

MacDeveloper
- 1,334
- 3
- 16
- 49