How do I pass UI element names from a script through a function using AppleScript?
For example:
click button "Save" of sheet 1 of window "Untitled"
In the example above, I need to pass the values "Save"(i.e. button name) and "1"(i.e. sheet name) through a function.It does not seem to work. Is there any way of making it work?