Questions tagged [system-preferences]
59 questions
3
votes
0 answers
read NSUserNotification display style
I am implementing an application that displays notifications using NSUserNotificationCenter. Everything works fine by now.
I have added NSUserNotificationAlertStyle key with alert in the plist so I get the default selection to alert style.
However…

ciprian
- 175
- 7
2
votes
1 answer
Changing scrollbar visibility with Applescript (in Lion)
I am trying to write an applescript that would change the visibility of Lions scrollbar (System Preferences > General). Normally I like to keep setting at "Automatically based on input device", but at home I use Wacom tablet, so I need to switch to…

nxtwrld
- 1,942
- 14
- 15
2
votes
2 answers
Unlock System Preferences using GUI Applescript
I am trying to unlock the System Preferences using applescript.
I have managed to get my script to click the "Click the lock to make changes" part, and I was trying to get the applescript to enter the user name, but I keep getting the error
error…

user754905
- 1,799
- 3
- 21
- 29
2
votes
2 answers
OSX System Integrity Protection (SIP) remove app
I am on OSX 10.14, XCode 10, objective-c
I am currently developing a workflow for explaining the user why he needs to accept automation for my app, explaining how to manually activate it and so on.
For testing reasons it would be great to remove my…

Pat_Morita
- 3,355
- 3
- 25
- 36
2
votes
2 answers
change screen resolution with AppleScript
I am trying to click at radio buttons in Displays panel of System Prefernces, namely to change Screen resolution. This is the code I use to identify radio buttons:
tell application "System Preferences"
activate
reveal anchor…

sanjihan
- 5,592
- 11
- 54
- 119
2
votes
2 answers
Defining an anchor name within my preference pane
I would like enable AppleScript to reveal a particular tab within a custom preference pane I am developing, so that this works:
tell application "System Preferences"
reveal anchor "Foo" of pane id "com.example.preferences.Bar"
end tell
I cannot…

abg
- 2,002
- 7
- 39
- 63
2
votes
2 answers
How to grant Applescript permissions through Applescript?
If I give my Applescript to another person, they would have to manually allow Applescript control of their computer by going into System Preferences, clicking Security & Privacy, then clicking Privacy and then Accessibility, then finally add…

James
- 213
- 1
- 3
- 13
2
votes
2 answers
AppleScript - determine the network service to which the current IP address is bound
The following AppleScript code will return all the network services in the Network Setup.
tell application "System Events"
tell current location of network preferences
set names to get name of every service
end tell
end…

Codename K
- 890
- 4
- 23
- 52
2
votes
1 answer
Read trackpad system preferences programmatically Mac Os X Mavericks
for one of my program, I need to be able to read (not write) the user's trackpad system preferences programmatically.
I've read that CFPreferences should be able to help me, but I failed in finding any sample code that would show me how to simply be…

user1191552
- 21
- 2
2
votes
1 answer
NSToolbar in the NSPreferencePane
I'm trying to implement my app's settings. So I implement Preference Pane but I need to insert Toolbar to it. That is how looks my IB:
And this is how looks my pane from System Preferences:
You see, my window new height = old height - toolbar…

Luft-on
- 179
- 1
- 13
2
votes
1 answer
Edit system preferences from cocoa
Is there any way to edit system preferences programmatically using cocoa? Is there some framework required? I need to do this to change the global proxy settings. Also, my app is sandboxed. Is there any sample code on how to do this? Thanks for your…

user1414031
- 73
- 1
- 6
1
vote
1 answer
AppleScript (+ Alfred workflow) to launch System Settings in Ventura
I wanted to create an AppleScript to navigate to the 'Login Items' preference pane in System Settings but all the answers that I can find result in AppleScript errors because the pane ids have changed in newer versions of Mac OS.
I did find the…

Joshua Wagner
- 41
- 3
1
vote
1 answer
Change the value of a Checkbox with no Title using Applescript
I tried to make an Applescript to enable the "Web Proxy" and "Secure Web Proxy" option in the "advanced.." menu of the "Network" settings in System Preferences.
Here's my applescript so far..
tell application "System Preferences"
activate
set…

meh
- 43
- 1
- 5
1
vote
5 answers
unlocking the system preferences is not working
System Preferences is trying to unlock users & Groups preferences
Unable to open System preferences for the my MacOs High Sierra.
sudo commands helps to provided the access to unlock the usergroups?

kiran
- 4,285
- 7
- 53
- 98
1
vote
0 answers
Zsh macOS System Preferences Changes Do Not Take Affect Until User Interaction
I am currently playing around with using defaults to change certain settings on my Mac (MacBook Pro 13-inch, 2019). I was trying to change the setting System Preferences > Dock > Prefer tabs when opening documents. After a bit of digging I found out…

Noah Wilder
- 1,656
- 20
- 38