Applescript: to open a file, add a line of text at the top, and then close the file.
What I need is a small simple Applescript that will:
(1) Open a textfile called 22 in a folder on the desktop of my Mac called "OUTPUTDESKTOP"
(2) Add a line of text above the existing first line of the file saying "This is file 22" followed by a "Return"
(3) Close the file
I have "TextWrangler" (v3.1) inn the Applications folder of my Mac, and that would be my preferred application to use for this (assuming that an application is required)
Can some kind person please help me with this.
Thanks you
iMac Intel, Mac OS X (10.4.1)