Many are having issues with appending and prepending text in the
B56a7. Here are the applescripts.
Put them in ~/Library/Applications Support/Quicksilver/Actions folder.
Restart Quicksilver. If you get errors while saving the scripts, fix
the line breaks.

Append text:


on open theFile
        try
                tell me to activate
                set theText to text returned of (display dialog "Please enter 
some
text:" default answer "")
                set theText to quoted form of theText
                set qtheFile to quoted form of (POSIX path of theFile)
                set thecmd to "echo " & theText & " >> " & qtheFile
                do shell script thecmd
                return theFile
        on error e
                tell me to activate
                display dialog e
        end try
end open

Prepend text:



on open theFile
        try
                tell me to activate
                set theText to text returned of (display dialog "Please enter 
some
text:" default answer "")
                set theData to (read theFile)
                set eof theFile to 0
                write theText & return to theFile
                write theData to theFile starting at eof
        on error e
                tell me to activate
                display dialog e
        end try
end open

Reply via email to