Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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:

User uploaded file

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:

User uploaded file

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.

User uploaded file

MacBook Pro (13-inch Late 2011), OS X Mavericks (10.9.1)

Posted on Feb 2, 2014 1:43 PM

Reply
1 reply

Feb 3, 2014 11:28 AM in response to kkarlavaleria

You sure this is semi valid aplescript? Where did you get the idea for the set f1 f2 ... etc?


Keyboard remapping software is usually relied on for this kind of stuff.


---------------



Keyboard Maestro is a powerful macro program for Mac OS X (including Tiger and Leopard) which has received glowing reviews. Keyboard Maestro will take your Macintosh experience to a new level in “Ease of Use”. With Keyboard Maestro you can design a custom action sequence with your own shortcuts and use them at any time, you can navigate through running applications and open windows with Program Switcher, and you can work with an unlimited number of clipboards - all by pressing simple keystrokes.
http://www.keyboardmaestro.com/main/



---------------

"Spark is a powerful, and easy Shortcuts manager. With Spark you can create Hot Keys to launch applications and documents, execute AppleScript, command iTunes, and more... You can also export and import your Hot Keys library, or save it in HTML format to print it. Spark is free, so use it without moderation"
http://www.versiontracker.com/dyn/moreinfo/macosx/22675

Glad you like it!


>

----------------------

Here is my other most favored application. Of course, I haven't checked these out in newer OS's. I'm a Tiger man myself.

iKey is a front end program that simulates typing and mouse movements. I use iKey to remap the Function keys.
"iKey is an automation utility, a program that creates shortcuts to accomplish repetitive tasks. In essence, an iKey shortcut is a little program in its own right, but you don't need to know the first thing about programming to create an iKey shortcut. All you have to do is put together three necessary parts of a shortcut: One or more commands that give the shortcut its functionality, a context in which it runs, and a launcher that defines how the shortcut is activated."
http://www.scriptsoftware.com/ikey/
iKey has a little more function then the previous free version called youpi key. For many years, I used youpi key before switching to iKey. It works fairly well for me in MAC OS 10.4 although not officially supported. The youpi key download is hard to find & no longer here.
http://www.versiontracker.com/dyn/moreinfo/macosx/11485&vid=75326
( Send me a message for a copy of youpi key. )
*Examples:*

  1. I have the common programs that I use assigned to function keys. I have F4 assigned to Firefox. When I want to start FireFox, I press F4. When I want to switch to firefox, I press F4! Starting & switching to an application in Mac OS are the same thing in Mac OS.
  2. Here is an example of to assign volumn control to a function key.
    http://discussions.apple.com/message.jspa?messageID=10361085#10361085
  3. Here is my script for listing my application folder. I have it assigned to function-key 6.
    !User uploaded file
    tell application "Finder"
    open folder "Applications" of startup disk
    select Finder window 1
    set bounds of Finder window 1 to {-3, 44, 691, 545}

    --set position of Finder window 1 to {33, 44}
    set position of Finder window 1 to {60, 45}
    activate
    end tell

    The second portion of this script was generated in the script editor record mode. After I recorded the script and did some editing, I copy the script to ikey/youpi key.



Full Key Codes
http://download.cnet.com/Full-Key-Codes/3000-2094_4-44175.html

Help with Minecraft and AppleScript/Automator?!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.