Hi,
I have this applescript code that I need to be able to add text to the end of a .txt file. My current code is:
It always gives me errors. Any Ideas?
I have this applescript code that I need to be able to add text to the end of a .txt file. My current code is:
Code:
set theFile to (POSIX file "/Library/Application Support/PWRSaver/exclude.txt")
open for access theFile
set fileContents to (read theFile)
close access theFile
tell application "TextEdit"
open "Library:Application Support:PWRSaver:exclude.txt"
set text of exclude to (fileContents & "hi")
end tell