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 following pane IDs using this script.
applescript
tell application "System Settings"
tell every pane
its id
end tell
end tell
The following code worked:
I put all the pane IDs together into Alfred App workflow that can open each pane. You can find it here: https://github.com/joshuawagner/alfred-system-settings