• 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: applescript SAY command help needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript SAY command help needed


  • Subject: Re: applescript SAY command help needed
  • From: James Yanchak <email@hidden>
  • Date: Sun, 29 Jul 2012 09:53:30 -0400

Slight modification to what I first sent. 

set x to (count of words of thisstuff) / 2

set y to 1
repeat while y is less than (count of words of thisstuff)
set AppleScript's text item delimiters to {" "} -- < added delimiters so the words are separated by spaces in the next line
set thisParaSay to words y through (y + x - 1) of thisstuff as Unicode text
say thisParaSay
set y to y + x
set AppleScript's text item delimiters to {""} -- < reset the delimiter to the default for applescript (nothing)
display dialog "Continue?" giving up after 1 -- < this is the dialog box which will appear and allow you to continue.
        -- The "giving up after 1" pauses it for 1 second, then continues. You can remove this clause if you like.  To abort, just choose cancel in the dialog.
end repeat

On Jul 28, 2012, at 10:07 PM, dealTek wrote:


THANKS SO MUCH JAMES for you help!


set y to 1
repeat while y is less than (count of words of thisstuff)
set thisParaSay to words y through (y + x - 1) of thisstuff as Unicode text
say thisParaSay

----> now right about here I'll need something to check for abort key pressed like :  like CMD-period… (so it says a bit then checks for abort key...)

Q: Can you enlighten me as to how to accomplish this part?


set y to y + x -- < put a dialog box in after this if you want a visual stop.
end repeat

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >applescript SAY command help needed (From: Dave <email@hidden>)
 >Re: applescript SAY command help needed (From: James Yanchak <email@hidden>)
 >Re: applescript SAY command help needed (From: dealTek <email@hidden>)

  • Prev by Date: Re: applescript SAY command help needed
  • Next by Date: Re: Using New High Quality Voices in Lion with Applescript control
  • Previous by thread: Re: applescript SAY command help needed
  • Next by thread: You Control substitute
  • Index(es):
    • Date
    • Thread