applescript: buttons variables and properties -


i use 2 simple button clicks generate variables "department" , "suite". 1 button click should create set of button options based on returned value "department" why not working?

--set departments , suites property departments : {"audio", "video", "digital"} property suites_audio : {"a1","a2", "a3", "txfr"} property suites_video : {"vfx1", "vfx2", "fcp1", "fcp2", "flame1", "flame2"} property suites_digital : {"mcr", "encoding", "store"}   --get suite location display dialog "enter department" buttons departments set department button returned of result set suites "suites_" & department display dialog "enter suite" buttons {suites} set suite button returned of result 

i have feeling in syntax of these 2 lines:

set suites "suites_" & department     display dialog "enter suite" buttons {suites} 

so clicking right department should generate new set of buttons burrow down right suite, properties of suites @ top.

can please?

you resetting value of suites with:

set suites "suites_" & department 

try:

--set departments , suites property departments : {"audio", "video", "digital"} property suites : {{"a1", "a2", "a3", "txfr"}, {"vfx1", "vfx2", "fcp1", "fcp2", "flame1", "flame2"}, {"mcr", "encoding", "store"}}  --get suite location display dialog "enter department" buttons departments set department button returned of result  set suite first item of (choose list item (my findoffset(department)) of suites prompt "enter suite")  on findoffset(finditem)     repeat 1 (count departments)         if item of departments = finditem return     end repeat end findoffset 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -