OK, I like a challenge and I am avoiding auditing a course for accessibility. 
The apple script in that OCR is:
        
begin script
on run {input, parameters}
 
set thedate to (current date) as string
tell application "System Events"
keystroke thedate
end tell
end run
end script

I am fairly confident from the “shell” version I posted earlier that the 
contents within the Tell… end tell 
can be replaced with return theDate and the script should run.

the Date in the above is an AppleScript array, so you should be able to extract 
first, second , third elements from it or also convert it to a date object.

Also, if you do want to send the keystroke command-Q  to an application the 
keystroke command would be the way to do that and that is why you have to 
specifically grant permission to the script as it was originally written. But 
if you are just working with text within the document, the accessibility 
options are not required. Another thing to note, is that you can also create 
dictation commands by changing the quick action to dictation commands. 
Oh, what fun!
Jonathan

-- 
The following information is important for all members of the Mac Visionaries 
list.

If you have any questions or concerns about the running of this list, or if you 
feel that a member's post is inappropriate, please contact the owners or 
moderators directly rather than posting on the list itself.

Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark at:  
[email protected] and your owner is Cara Quinn - you can reach Cara at 
[email protected]

The archives for this list can be searched at:
http://www.mail-archive.com/[email protected]/
--- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/macvisionaries/5A1D2126-D539-4F7A-8289-053D456D5D5A%40gmail.com.

Reply via email to