I’m new to both applescript and Cocoa (but have a decade of software engineering under my belt) and I managed to leave my applescript book at work, so I have limited resources. I figure it never hurts to ask.
I’m building an automator action, and I’ve been basing it on the tutorial from apple, but they don’t give much of a hint about bindings on controls, since they only use radio buttons and a single text field. I have three pop up menus. Where I’m stuck is figuring out how to populate the varous bindings that are necessary to populate the pop up menu with the options I want, assigned to the index that I want. I think I can interpolate everything else about my action from the tutorial, but this one has stumped me. I couldn’t find anything obvious in the javascript studio documentation, either.
I’ve got the values of my interface controls mapped to the parameters of the action, but the content of the pop up menus is eluding me. I suppose it may be possible to put lists in the parameters, and then put the correct content for the lists in the default parameters, but something tells me there’s a better way. I don’t really know how I would bind the content to the parameters, anyway.
Help, please.
Thanks
–sam