Hi,

Oops, the modified script I supplied does not say the year.  If you do indeed 
still want the year, I can fix that for you, or you can experiment some 
yourself to see if you can figure it out and where to place the argument.

Later...


Tim Kilburn
Jamf Certified Tech
Apple Teacher
(with Swift Playgrounds Recognition)
Fort McMurray, AB Canada

On Feb 3, 2020, at 09:49, 'Tim Kilburn' via MacVisionaries 
<[email protected]> wrote:

Hi,

You'll need to first make a copy of the Script Editor file and place it on your 
Desktop because you're not allowed to modify active scripts in this location.

• Open Macintosh HD, Library, Scripts, VoiceOver, Time of Day.applescript
• cmd-c to Copy.
• Bring focus to your Desktop, then press cmd-v to Paste.
• VO-shift-m on this new Desktop version and choose Open With.
• From the sub-menu, select ScriptEditor.
• Interact with the Script source area and read through it for fun.

Down closer to the bottom, you'll find a line that starts with "set currentTime 
to " blah blah blah

• highlight this entire command and remove it in order to replace it with the 
following:

set currentTime to ((currentDate's weekday) as text) & " " & ((currentDate's 
month) as text) & " " & ((currentDate's day) as text) & ", " & (currentHour as 
text) & ":" & ((currentMinutes) as text) & " " & amPM as text

Since we're having so much fun, you can read the contents of the above line and 
note that I only added one extra item before the currentMonth item.  The new 
item pertains to the weekday that is already part of the (current date) within 
Apple Script.

While in Apple Script, you can press cmd-r to run the script and see if what 
you've done returns the correct phrase for you.  If it's all good, you'll need 
to now save and move the modified script back into the proper location.

So,

• press cmd-s to Save the new modified script.
• Press cmd-q to Quit Script Editor.
• Navigate to the Time of Day script on your Desktop and press cmd-c to Copy.
• Navigate to, and open, Macintosh HD, Library, Scripts, VoiceOver.
• cmd-v to Paste the new, modified version of your script and replace it when 
asked.
• Close up all the Finder windows.

Now, pressing right-option-t should now say "Monday, February 3, 2020".

HTH.

Later...


Tim Kilburn
Jamf Certified Tech
Apple Teacher
(with Swift Playgrounds Recognition)
Fort McMurray, AB Canada

On Feb 2, 2020, at 21:12, Dave Carlson <[email protected] 
<mailto:[email protected]>> wrote:

When pressing Option+T an Apple script runs to announce the date and time. I 
would like the date to announce the day of week, in addition to the month, day, 
and year, followed by time. How do I edit the scripts to accomplish this?


Dave Carlson
Engineer, Pioneer, Farfar, Woodworker, Musician, and Oregonian






-- 
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] <mailto:[email protected]> and your owner is Cara Quinn - you can 
reach Cara at [email protected] <mailto:[email protected]>

The archives for this list can be searched at:
http://www.mail-archive.com/[email protected]/ 
<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/2B38B2CA-A353-48D5-BDC3-D27A901D13A6%40sbcglobal.net.


-- 
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]/ 
<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] 
<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/macvisionaries/7549D075-6A56-44AB-8819-1677DBA05720%40me.com
 
<https://groups.google.com/d/msgid/macvisionaries/7549D075-6A56-44AB-8819-1677DBA05720%40me.com?utm_medium=email&utm_source=footer>.

-- 
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/D9E6E4D1-4DC9-40D0-AE94-9940BFC89529%40me.com.

Reply via email to