蛙の井戸見聞記 Pretty frog in a well who knows nothing of the great web ocean!

~~ 好奇心は猫をも殺す Curiosity Kills the Cat ~~ ♪欲しいモノ・食べたいモノ・ネットで集めた情報と日々の記録の倉庫♪ Logging my life... Since 2003.12  

applescript studio

複数のTableViewを配置して、それぞれのコピーアンドペーストを実現するには、位置の取得とクリップボードの制御が必要。

Copy 
set the clipboard to tmpdata
Paste
set tmpdata to the clipboard
  • 位置の取得
set prow to selected row of table view "table1" of scroll view "scroll1" of window "main"

prow に行番号が入る。
複数のTableが配置されているときに、どっちのTableViewを選んだかの取得方法が分からない。が、運用で解決。片方の(選ばない方の)Tableではcolumnを選んでおくと、selected rowは特定される。両方でrowを選んでおくと、プログラム次第。複数のrowを選んだときの値の戻り方が未解決。っていうか、こんな面倒な事AppleScriptでやろうって方が間違いだな。Objective-Cの方が、楽っぽい。