So I went through the article about preferences that is stickied. I’m still a little confused however. So in my preferences window there is a radio group with 2 options. I binded the radio group like it says in the article. Now for the applescript. Now assuming my code looks something like this:
on will finish launching theObject
try
tell user defaults
make new default entry at end of default entries with properties {name:"launchMode", content:???}
end tell
end try
end will finish launching
I don’t know what to put for content for a radio group (hence the “???” in my code :P) What I want to do is save whatever is selected in the prefs window and upon relaunch open a certain window depending on what radio button is selected. So I guess my read would be something like this?
tell user defaults
set launch_mode to content of default entry "launchMode"
end tell
and then would i just do an if statement to check the value of launch_mode? Defaults confuse me ![]()