Combining Text in Automator for Excel import.
• New Text File
Creates file temp.txt
• Run AppleScript
Opens file temp.txt
• Get Specified Text (specified text below)
Read Today
Read Tomorrow
Read This Week
Read This Month
• Filter Paragraphs (needed so the text is not treated as one big line of text and is displayed in the next step correctly)
Return Paragraphs that are not empty
• Choose from List (all 4 items displayed correctly, all selected by default)
Select one item
• Set Contents of TextEdit Document (temp.txt) (append)
• Get Specified Text (specified text below (a semi-colon))
;
• Set Contents of TextEdit Document (temp.txt) (append)
• Get Specified Text (specified text below)
keywords go here
• Set Contents of TextEdit Document (temp.txt) (append)
• Get Contents of TextEdit Document (results below)
"
Read Today
;
keywords go here"
(Once I get this part working, I will add a URL onto it also).
So, all my content has arrived here, but on three different lines. But because it is on three different lines, it does not import into Excel correctly. I can't concatenate this using the usual AppleScript method because I would have to declare these items as variables. I've tried various ideas, but I cannot get the three above to append to one line, like this…
Read Today;keywords go here
without manual intervention, which sort of defeats the reason for trying to automate this.
I hope I've explained this well enough that it makes sense.
Any help or ideas are appreciated.
MacBook Pro, Mac OS X (10.6.2)