• 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
Need help calling a script from within a script based on text entry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help calling a script from within a script based on text entry


  • Subject: Need help calling a script from within a script based on text entry
  • From: Porter Slice <email@hidden>
  • Date: Thu, 29 Nov 2012 18:23:58 -0800

I have limited experience with applescript, and am trying to get the following applescript to work based on the conditions below.

tell application "MacSpeech Dictate International"

set microphone to dictation

say "yes sir" using "Alex"

end tell

repeat

display dialog "Speech Text" default answer ""

set myCommand to text returned of result

set myReturn to library's process_command(myCommand, "Speech", "Jarvis")

library's speak({true, myReturn})

if myReturn does not start with "I'm sorry" then exit repeat

end repeat

tell application "MacSpeech Dictate International"

set microphone to command operation

end tell



I got this script from http://www.projectjarvis.com, I don't have access to the library file in question used in the above script and am trying to get it to process commands without it. What I would like to do is when I tell macspeech dictate "get mail" and have it to run the following script. 


repeat

tell application "Mail"

set unreadMessages to (get every message of mailbox "INBOX" of account "Slicecomputerservices" whose read status is false)

repeat with eachMessage in unreadMessages

say "Subject." using "Alex"

say (get subject of eachMessage) using "Alex"

say "Message" using "Alex"

say (get content of eachMessage) using "Alex"

set read status of eachMessage to true

end repeat

end tell

end repeat


is there any way I can do this, again I have basically no experience with applescript, and this is my first program I have worked on based in the language.


Thanks, Porter 



 _______________________________________________
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

  • Prev by Date: How do I save an array in plist?
  • Next by Date: Re: How do I save an array in plist?
  • Previous by thread: Re: How do I save an array in plist?
  • Next by thread: Script for Uploading iOS Apps
  • Index(es):
    • Date
    • Thread