Help with Minecraft and AppleScript/Automator?!!
So I need help. When I play Minecraft on my Mac, I check the box that says "Use all F1, F2, etc. keys as standard function keys so that I can use the function keys as intended in the game (F1 to hide the hunger and armor bars, etc. at the bottom of the screen, F2 to take a screenshot, F3 to show coordinates, etc.). However, when I am not playing, I don't like having to press the fn key to get the function keys to do what is printed on them (fn+F8 to play or pause music, fn+F10 to mute the sound, etc.). It's easy enough but I don't like it :b
Sooooo I was wondering if there was any way to make AppleScript or Automator toggle that option on and off for me. I am a beginner (huge emphasis on "beginner") when it comes to AppleScript and Automator. Today is the first time I ever try using them. I couldn't figure out a way to make Automator do it, and I've been browsing the internet trying to figure out if AppleScript could be used to do this.
I don't even know if this right, and I expect it won't be, but this is what I've been typing in AppleScript, trying to get it to work:
I honestly don't even know what any of this means, it's just me guessing based on the information I've gathered from various websites I've visited.
However, when I press "Compile" it gives me this:
I do not know how to fix this! I found somewhere that I had to "enable GUI scripting" (whatever the **** that means) so I went to System Preferences -> Security & Privacy -> Privacy -> Accessibility and checked "AppleScript Editor," but it still gives me the same message.
I don't know if I'm not typing the correct thing (I really really highly doubt it; I don't think this would work even if it didn't give me that "Syntax Error" message), or if I didn't enable the GUI thing correctly, but it's all very frustrating to someone who doesn't know what the **** they're doing.
So, yeah, any help would be appreciated!
If it can't be done, let me know!
Thanks!!
By the way, I have OS X Mavericks, if that matters at all, and I have a 13-inch, Late 2011 MacBook Pro.
MacBook Pro (13-inch Late 2011), OS X Mavericks (10.9.1)