Option-click in UI scripting

I’ve searched the forums but not been able to find an answer to this.

I’m using UI scripting to access ‘MPEG Streamclip’ and I need to delete a folder. To do this in the app you need to hold down the option key whilst clicking the delete button

Having highlighted the folder in question I’ve tried to do this with

		option key down
		button "×" of window 1 click -- this is the delete button

but this prompts me with the message “If you want to delete a folder please hold down the Alt key and click the delete button again”. So obviously the ‘option key down’ line is no longer active when the button is clicked.

So I tried

(keystroke “option” using button “×” of window 1) click but this doesn’t work either.

There’s probably a simple solution but I’m stuck!!

For this task you may use

Extra Suites.app

which offers:

ES click mouse‚v : press the mouse
ES click mouse
[double click boolean] : double click the mouse
[command boolean] : hold down the command key
[option boolean] : hold down the option key
[shift boolean] : hold down the shift key
[control boolean] : hold down the control key

Yvan KOENIG (from FRANCE vendredi 3 juillet 2009 16:04:39)