Following is a script that will move a button named "btnMainOne" on window "Main" in application "Test" to position 30, 10. If you are coding directly in the application, you will not need to use the Tell block.
You can also find out all of the properties of the button by adding "properties of x" to the script. They will display in the properties window of script editor.
Matt Neuberg's book "Applescript: The Definitive Guide" is an invaluable resource for AS information.
-------------------------------------
tell application "Test"
set x to button "btnMainOne" of window "Main"
set position of x to {30, 10}
end tell



LinkBack URL
About LinkBacks

Reply With Quote


Bookmarks