tell application "TextEdit"날짜 시간 찍는 방법에 대해 보충:
activateend tell
make new document
set theDate to current date
set text of document 1 to theDate as text
save document 1 in "/Users/robbie/Desktop/LastUpdate.txt"
Or you could use the shell.
do shell script "date > $HOME/Desktop/LastUpdate.txt"If you want a running record of when the updates were ran do this (double >> )
do shell script "date >> $HOME/Desktop/LastUpdate.txt"레퍼런스 :
Simple Applescript: Create a .txt file
No comments:
Post a Comment