Get Slider value in AppleScript variable

I am looking for a pointer on where to start with this project please.


I want to create an app with a simple slider control - say, 10% divisions on a scale 0-100% - and then to feed this input to a script variable.


I am guessing this is going to be something with AppleScriptObjC. If that's right, can anyone recommend a good getting started resource please?

MacBook Pro, OS X El Capitan (10.11.5), 16GB RAM

Posted on Jul 8, 2016 9:51 AM

Reply
2 replies

Jul 9, 2016 1:02 AM in response to Arkouda

Yes, you can use AppleScriptObjC, but there are also several other languages and tools that can be used. Are you familiar with AppleScript and Cocoa, or programming in general? I am asking because AppleScriptOBjC is a framework that lets you access Cocoa classes and methods from AppleScript, so you would need to know a bit about both of them. Also, the Interface Builder in Xcode is what is used to build the user interface for your typical Cocoa application, so you would need to know a little bit about that as well.


Apple doesn't have much documentation specific to AppleScriptObjC other than their Release Notes, since they expect you to be able to use the existing Objective-C stuff. However, an early AppleScriptObjC tutorial can be found at MacScripter.net, and something more up to date can be found at MacOSXAutomation.com.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Get Slider value in AppleScript variable

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