• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a text workflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Creating a text workflow (From: VaShaun Jones <email@hidden>)
 >Re: Creating a text workflow (From: David Reed <email@hidden>)

  • Prev by Date: Re: Creating a text workflow
  • Next by Date: automator
  • Previous by thread: Re: Creating a text workflow
  • Next by thread: automator
  • Index(es):
    • Date
    • Thread