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

Xcode applescript execute a button by pressing return or enter

I am using Xcode 5 with applescript. I have a button that will execute some code. I am ok when I click on the button. everything works. How would one execute the same code if I press Enter/Return instead of pressing the button. thanks

Posted on Jul 12, 2014 11:15 AM

Reply
Question marked as Best reply

Posted on Jul 12, 2014 7:39 PM

In the Attributes Inspector set the Key Equivalent field to the key you want to activate the button.


If you want to use the return key, with the Key Equivalent field selected press the return key. You should see


User uploaded file

after you press it

2 replies

Xcode applescript execute a button by pressing return or enter

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