Applescript-Textedit-Automator
Posted: Mon Jan 30, 2012 9:26 am
Hi,
I try to build a flow with automator, but it does not work:
A first automator step works: automtator takes a PDF and extracts the text. Within automator it is defined to save the text on the desktop. Switch pick up the resulting text and places it as expected on the defined internal switch-folder.
A second automator action fails:
Automator opens the text with text edit and AppleScript searches and replaces text in the document. Now the modified text does not find the way back to switch. I've tried different things: leave the text open, save the text (with Applescript), close the text (with Applescript), save and close (with Applescript). But switch does not recognize the modified text.
Any ideas?
Kind regards,
Jörg
I try to build a flow with automator, but it does not work:
A first automator step works: automtator takes a PDF and extracts the text. Within automator it is defined to save the text on the desktop. Switch pick up the resulting text and places it as expected on the defined internal switch-folder.
A second automator action fails:
Automator opens the text with text edit and AppleScript searches and replaces text in the document. Now the modified text does not find the way back to switch. I've tried different things: leave the text open, save the text (with Applescript), close the text (with Applescript), save and close (with Applescript). But switch does not recognize the modified text.
Any ideas?
Kind regards,
Jörg