1

取引はこれです:

http://www.clipmenu.com/ ClipMenuを使用して、クリップボードの 20 の状態を取得します。これは、いくつかの txt ファイルの各行を分離してコピーする必要があるためです。だから私はtxtファイルを開き、私はヒットするすべての行を調べますcommand+ shift+→</kbd> then command+c then ↑</kbd> and so on until i reach the top and i have all the lines copied and stored in the history of ClipMenu.

私の質問は、自動化された方法ですべての行をコピーするサービスまたはスクリプトを作成する方法はありますか? txt ファイルの先頭に達するまでこれらのキーストロークを繰り返すスクリプトを作成できると思いますが、そのようにする方法がわかりません。

どうもありがとう。

4

3 に答える 3

0

試す:

set fileText to read (choose file) as «class utf8»

set filePara to paragraphs of fileText
repeat with aPara in filePara
    set aPara to contents of aPara
    if aPara ≠ "" then set the clipboard to aPara
    end repeat
于 2013-04-12T16:05:27.290 に答える