Bernard Harte

Q: 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

Close

Q: Get Slider value in AppleScript variable

  • All replies
  • Helpful answers

  • by red_menace,Helpful

    red_menace red_menace Jul 9, 2016 1:02 AM in response to Bernard Harte
    Level 6 (15,526 points)
    Desktops
    Jul 9, 2016 1:02 AM in response to Bernard Harte

    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.

  • by Bernard Harte,

    Bernard Harte Bernard Harte Jul 9, 2016 1:05 AM in response to red_menace
    Level 4 (3,309 points)
    iPhone
    Jul 9, 2016 1:05 AM in response to red_menace

    Thank you.  Yes, I am familiar with AppleScript and programming, but not with Cocoa.  I'll have a look at the tutorials and ask some more specific questions if necessary.