i’m embarrassed to tell you how long i’ve been trying to pull a value from a combo box.
i just can’t get the syntax right, and don’t know how to find out
the text entries work fine with x
but the combo entries fail with y…
on clicked theObject
tell window 1
set x to contents of text field "FreeText" as text
display dialog x
set y to content of combo box "GreyDownTarget" as number
display dialog y
end tell
(*Add your script here.*)
end clicked
I’m trying to pull a range of values from a user before running a batch resampling to optimize images for InDesign. (The Applescript is all ready to go).
Have a window laid out like this but need to now access the values in the applescript…
We’ve all been there. These days I always copy and paste the names of interface elements between IB and Xcode or capture references as described in the link I gave you earlier.
By the way, the new AppleScriptObjC doesn’t use this system of referencing interface elements anymore.