私のスクリプトは、この日付AppleScriptのカウントテキスト保証
set myDate to date string of (current date)
set myTime to time string of (current date)
set myDateTime to "--------------------------------------------------------------
" & myDate & " - " & myTime & "
を追加したテキスト
set dataBackupFile to (path to desktop folder as text) & "Note_Backup.txt"
それは私がスクリプトを実行する時間ですが、保存された結果:
水曜日2016年11月9日 -
どのように私はAppleScriptのはこの日付がテキストファイルに記載されていますどのように多くの時間をカウントするために取得することができますので、私はタイトル
例:に追加することができます 水曜日2016年11月9日 - (2)
マイスクリプト:
set myDate to date string of (current date)
set filetocheck to (path to desktop folder as text) & "Note_Backup.txt"
set counter to (count text items of myDate) of filetocheck
しかし、ファイルの実際の結果がカウントする38
テキストは、この形式になっている間に結果は、25である(水曜日2016年11月9日):
水曜日2016年11月9日 - 10時十分54秒 - 1(-41)
0000他のデータここ
申し訳ありませんが、あなたのテキストファイルの使用をチェックします。 txt " –
私は答えを更新しました。 – vadian