Re: Creating a text workflow
Re: Creating a text workflow
- Subject: Re: Creating a text workflow
- From: Kevin Wolfe <email@hidden>
- Date: Tue, 20 Nov 2007 08:02:37 -0500
These can also be done with an Applescript action. Here is a similar thing I did for a diary program. This inserted the time and date and a line of hyphens each time it opened a TextEdit document. The secret is to use keystroke followed by your info quotes. Hope that helps. I think you also need to activate Preference/Universal Access/ and check "Enable Access for assistive devices" to make it work.
on run {input, parameters} tell application "System Events" tell application "TextEdit" to activate tell process "TextEdit" keystroke (ASCII character 31) using command down keystroke return keystroke return repeat 40 times keystroke ";" using option down end repeat keystroke return set the date_stamp to ((the current date) as string) keystroke date_stamp keystroke return keystroke return end tell end tell return input end run
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden