Please see the attachment file. I use AS to grab the position of the UI element.
tell row 3
set pRow to position
end tell
set xposn to (item 1 of pRow)
set yposn to (item 2 of pRow)
This works in SE and SD7, but doesn't work in KM macro.
If I run
return pRow
the output is something like:
{1024
640}
I don't know why it's not like {1024, 640} or {1024\r640}
I use these code
set oriP to oriP astext set AppleScript's text item delimiters to "
" set neworiP toeverytext itemof oriP set AppleScript's text item delimiters to "" set oriX to ( item 1 of neworiP) set oriY to ( item 2 of neworiP)
tell application "System Events"
tell application process "Finder"
tell outline 1 of scroll area 1 of splitter group 1 of front window
tell row 3 to set pRow to position
end tell
end tell
end tell
return pRow
…I get the following results:
AppleScript (run in SE or SD): the list {1145, 532}
Thanks for reply. Please the attachment file. In my original KMM, I use mousetools and python to move the cursor and click. I think the trouble is related to them. Now I use KMM to move the cursor and click. It works OK. But now I have another question