A script to run MacSpeech Dictate without touching your computer!

Hello everyone! I am new to this forum, this is my first AppleScript I have written, it's a real easy one, but I am proud of it! It may be totally useless, but I am still going to post it!
The script is designed to be put in the main folder of the directory "Username>Library>Speech" and used with the built in "Speech" function of all new macs, to initiate the program "MacSpeech Dictate" application, then shut off the built in "Speech" and open a new dictation note pad.
I use this when it is late at night and I have an idea for my novel's, or just a weird dream I want to remember. I leave my mac running by my bed and when I wake up with my idea I say, "Begin Dictate" then wait about 5 seconds, then start to talk and the computer records everything I say, then I go back to sleep. I never have to move from my very comfy, very WARM bed!
Anyway, I hope this might help someone, somewhere.
tell application "MacSpeech Dictate.app"
activate
end tell
tell application "System Events"
if UI elements enabled then
tell process "MacSpeech Dictate"
set frontmost to true
tell menu bar 1
tell menu "File"
click menu item "New Note Pad"
end tell
tell menu "Speech"
click menu item "Microphone On"
end tell
end tell
end tell
tell process "Finder"
key down {command, shift}
keystroke "z"
key up {command, shift}
end tell
tell process "MacSpeech Dictate"
set frontmost to true
end tell
end if
end tell
PS: The dashes aren't part of the script. Just saying, in case someone might not know!

Try ...
tell application "MacSpeech Dictate.app" to activate
tell application "System Events"
if (UI elements enabled) then
tell process "MacSpeech Dictate"
set frontmost to true
click menu item "New Note Pad" of menu "File" of menu bar 1
click menu item "Microphone On" of menu "Speech" of menu bar 1
end tell
tell process "Finder" to keystroke "z" using command down & shift down
tell process "MacSpeech Dictate" to set frontmost to true
end if
end tell

Similar Messages

  • Is there a way to use home sharing without leaving your computer on?

    I'm getting annoyed when I have to leave my laptop on and waste batteries, so I can play music on my iPad around the house. Can someone tell me a way to play music with your computer off?

    Chris CA wrote:
    What was the exact message and when did you see it?
    i plug my USB wire and on iTunes clicked on my iPad and go to Music. sync music click "seleted playlist,
    artist, albums, and genres", i choose the playlist what i want my ipad to have <---(thought it moves the playlist
    to my ipad) and it said
    "Do you want to erase this ipad and sync with this iTunes library? An ipad can be synced with one iTunes
    at a time. Erasing and syncing replaces the contents of this ipad with the contents of this iTunes library."
                                                                    ^^^^^^^^^^^^^^^^^^^
    this is what i saw, and "contents of this ipad"---> will that delete my songs in my ipad?
    plus can u sent me a link from youtube for the best "how to transfer your music from computer to ipad"
    without installing any app on ipad.
    ----->nevermind i know how to transfer music from my computer to my ipad.
    thanks for your support and ill give you points.

  • "Firefox is already running, close it or restart your computer." I restarted cpt and still get msg..why?

    I have Firefox 3.6 on one user site on my cpt. I'm trying to use it on my Admin site but msg as noted keeps repeating even after I restart cpt.

    when you restart your pc don`t click on force restart. For a better solution when you get this error just to a ctrl+alt+del go to your task manager/processes/firefox.exe /end process. that should fix your problem.
    ''<unrelated link removed - c>''

  • My Chart needs Java Scripts to run.  Where do I find this?

    This is it.  My program for health reasons is My Chart and says it needs Java Script to run.  Is this for another computer?

    Safari 8?
    Make sure that JavaScript is enabled.
    Safari > Preferences > Security > Web content:
    Enable JavaScript.

  • Repeatable Safari Crash on FaceBook text box If MacSpeech Dictate running

    If MacSpeech Dictate is running (which works quite well, and dictates into almost any window except Adobe AIR based apps like TweetDeck in my experience), even if Dictate recognition is OFF, if text is pasted into a FaceBook text/status page it is 100% going to crash Safari. If typing text in the same situation the crash likelihood is 80%.
    Just sharing here in case someone saw the same situation.
    Imran

    MacSpeech worked around and resolved this bug in an update.

  • AppleScripts for Macspeech Dictate

    OK I’m a major rookie ... But I have MacSpeech dictate and it is lacking any real commands (compared to Dragon 10, it just *****) but I hate using a pc ... So there are no commands available for MS word but in Dictate I can create them using applescript ... Now I managed to create a voice command to open the print window and even one to “press cancel” but I had found a script for that function in another app ... And it had a key code.
    tell application "MacSpeech Dictate Medical"
    tell process _currentAppName
    try
    key code 53
    end try
    end tell
    end tell
    This actually worked .... I said “press cancel” and it canceled the print window!!! I’m getting somewhere! I would assume that the script would be similar but with a different key code to press the print button ... But I have not found anything that I could copy or even a list of key codes ...
    Is there documentation that lists all of the key codes?
    Hope you can help
    Thanks, Rick

    Before you build everything with custom commands, make sure you've looked at what's built into MacSpeech Dictate. The "Global" commands in MacSpeech Dictate will work with any application, including Microsoft Word. These won't do everything you want, but many of them are useful. For example, when you speak "Save This Document" it does the equivalent of Cmd-S on a keyboard. At the very least, many of the pre-configured commands are useful examples (which it looks like you're already using).
    Here are some other things to try:
    You can also say "Press OK" for the default button (highlighted in blue, for examples "Print") and "Press Cancel" for a "Cancel" button.
    For keyboard entry you can say something like "Press The Key Delete" (presses the 'delete' key) or "Press The Key Combo Command Shift Option V" (presses keyboard combo Cmd-Shift-Opt-V, which is 'Paste and Match Style' in some apps). You get the idea from these examples.
    Finally, just as you are already doing, you can build and customize your own Voice commands fairly easily. Open up the "Commands" Editor (Tools > Commands). Look through the commands that are pre-configured in MacSpeech Dictate. You'll see examples of commands built with the different methods that Dictate supports. The main ones are:
    *Menu Item* - no coding necessary--just pick from a pull-down menu that shows the application's menus and menu items.
    AppleScript - duplicate existing AppleScript-based commands and change them for you needs. (If you really get into AppleScript, you can use the Script Editor to open applications and look at their AppleScript dictionaries.)
    *Text Macro* - inserts a block of pre-configured text, such as an email signature, or form letter.
    You can also make Commands that run Automator workflows, open Applications by name, open Bookmarks by name, open Files or Folders.
    Give your spoken commands names that are 3 to 5 words long. Best practice is probably 3 or 4 words long, a combo of simple/unique/memorable words. For example, "Print This Document" or "Print Window Open" or "Print For Me Baby". If you want to call the spoken command "Beam Up My Print Job" and launch an AppleScript that plays a teleporter sound, be my guest...but at that point you probably don't need much help anymore.
    The end result is that you can control Mac applications, with custom spoken commands.
    twitter.com/macspeech

  • Excel - Modify rows without touching other data (have gone thru LV report generation 4 designs)

    File attached....
    Have gone thru FAQs and examples. (And also 4 parts of 'Creating a Report in Microsoft Excel Using the LabVIEW Report Generation Toolkit'. Unfortunately this document is not clear enough for me.)
    Have task of modifying rows of the same excel sheet, number of times without touching data  already present (numbers and strings)
    I have an excel file. (attached)
    A test will be run N number of times.  (N<=17)
    SubTask 1 --> Each time it runs, string data needs to be placed in 'n'th row. (...there are going to be notes in Row 18 and row 19)
    SubTask 2  --> Each time it runs, a 1D array data also will be placed in the same row (but in different cells)
    SubTask 3 --> The number 'n' of the row (where to place the current iteration's data) needs to be determined on fly (by looking at "n-1"st non blank row)
    The same file needs to be used.
    How can above be achieved ?
    thnks
    Sandeep
    Attachments:
    sample excel file.xls ‏14 KB

    See if this board will help.
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391

  • Unable to Configure a PowerShell Script to Run as a Scheduled Task

    Hi ,
    I have a powershell script from Dieters blog http://scug.be/dieter/2011/07/06/scom-2007-how-to-backup-your-unsealed-management-packs/#comment-1058 which backups the unsealed management packs in SCOM. I am able to run the script successfully in the powershell
    prompt but when i schedule it as a task it fails with an error code 1.
    "Task Scheduler successfully completed task "\Backup Unsealed Management Pack" , instance "{xxxxxxxxxxxxxxxxxxxxxxxxxxxx}" , action "Powershell.exe" with return
    code 1."
    I am running the task using the highest privilages and have tried bypassing the script using and have configured the script as per http://www.metalogix.com/help/Content%20Matrix%20Console/SharePoint%20Edition/002_HowTo/004_SharePointActions/012_SchedulingPowerShell.htm
    -ExecutionPolicy Bypass c:\scripts\myscript.ps1
    Still i am unable to run the task without errors. Kindly assist.
    Jesty

    Hi Jesty,
    Please make sure you have followed these steps to schedule a powershell script task:
    1.  Save the powershell script as .ps1 in local computer.
    2.  Right click the .ps1 file and run with powershell and check if the script can run successfully.
    3.  schedule task->action:Start a program->Program/script:powershell.exe->Add argument:-ExecutionPolicy Bypass c:\scripts\myscript.ps1
    Best Regards,
    Anna

  • Is there any possibility to format an Imac without backing up all datas (re-install the OS without touching to Itunes-Iphoto-Safari Bookmarks etc.)?

    Hi everyone,
    I guess the question pretty much speaks for itself. My Imac is running very slow these past few months and I would like to reinstall the whole OS.
    However, I would like to avoid loosing any data by formating the Imac without touching the user desk. Is that possible? And if so, what are te steps to proceed?
    Thanks in advance for you help!

    Formatting a drive is a destructive process, so you cannot format a drive without losing everything on the drive. But it is possible to reinstall OS X without reformatting the drive.
    But you need to tell us what version of OS X is installed. I would recommend you backup your drive before such an action.

  • In InDesign, my script timers are not activated while the script is running

    Hello I have a utilioty plugin in InDesign which is done in ActionScript. This script is launched from inside the plugin dialogbox and does a long export operation. I'm trying to have a feedback of progression in the dialog box, while doing the export operation in the script.
    The problem I have is : if I create a flash.utils Timer to refresh the display, it is not triggered while the script is running ! Only when the script gives back control to InDesign, the timer is triggered and refreshes the display. Therefore, my progressbar displays blind during work, and flashes to 100% at the end. Quite useless.
    Does anybody know a way to get this working, apart from cutting the export operation in a few sub-operations which would be chained via successive timer events ?

    I ask again though: are you really sure the system won't wake from sleep to run maintenance scripts? The time in all of the logs from Onyx, from Maintidget and from the command prompt all say that the scripts are running at 3am(ish) for the daily and weekly scripts, and 5am(ish) for the monthly script - all times that my system is in sleep mode.
    Well, that is the information from Apple - I am not about to stay up all night to check it . FWIW, if those scripts are missed, the computer will not implode - I usually prefer to shut mine down and in that case, the scripts have to be run manually. I do that about once a month (or when I remember to do it)  and have been doing that for many years without any ill effects. Mac OS does not need the maintenance other systems do.
    http://support.apple.com/kb/HT2319

  • Slow script when run as an application

    I have created a script for processing images with Photoshop. When I run the script from Script Editor it completes its task literally twice as fast as when I run it as an application. Does any one have an explanation as to why this would be the case?
    The script in summary asks the user for 2 folders, it then pairs up images from the folders, opens them both in Photoshop, copies the paths from one image to the other, crops the image and saves a copy in the appropriate place, then moves on to the next pair of images.
    I don't understand why it woud run twice as sluggishly as an application?
    Any suggestions much appreciated.

    Rien,
    I have also consistently seen the same problem, and asked a similar question a couple of years ago without a satisfactory response. If you write an AppleScript studio application your script will run at about the same speed as when running the script from script editor.
    To observe the problem you just need an application script that is communicating information back and forth betweent the script and the application it is driving, and then check out the performance difference between running it as an application or not. If you run Activity Monitor you can see that the cpu spends plenty of its time idle when running the script as an application.
    If you grab a copy of iMagine Photo from:
    http://www.yvs.eu.com/downloads/iMaginePhoto.dmg
    and get PhotoScript1 from about 1/2 down the following page:
    http://www.yvs.eu.com/documentation/readingandwritin.html
    Run the script from both within script editor and as the application droplet.
    It demonstrates the problem. But I have seen worse, this was just the first script on my website that I found that demonstrates the problem.
    Kevin

  • Script to Run a Process Chain

    Hi,
    Is there any way to run a Process Chain using Script logic or BADI?
    Regards,
    G.Vijaya Kumar

    Yes ,it has to call a process chain ,without which your logic would not get executed.
    Itz the case, even with BPC provided FX trans logic. There will be a back end process chain to execute FX trans.
    Basically ,process chain just acts a facilitator to run your logic in the BI space
    Almost all PCs  are similar with a structutre as shown below
    start -> run logic -> end.
    Now what logic is run on the second step depends on which .lgf file you are running at the front end.
    Check out in txn RSPC > BPC : system for more understanding
    Thanks
    -sridhar

  • Checking if script is running

    I need to find out if a script is not running. When I do the "ps -afe | grep nameOfScript" it gives me no output if the "nameOfScript" is not running. How can I get an output or get a message to say "nameOfScript" is not running. Is there some sort of grep or something I can use to get this to work

    The fact that nothing comes back means the script isn't running - usually. Your script logic is what takes care of saying "Thar ain't nuttin' here honey".
    But using your ps -afe example you need to make sure you only get back instances of the running script. With your example, if I run "vi nameOfScript", your ps -afe command will show my vi command in the list and your script logic may incorrect assumely the script is running when it really isn't.
    You need to make your logic that looks for the script running a bit more specific. The way you run the script will dictate how it shows up in a ps listing. Like this:
    cd /path/to/script
    ./nameOfScript &
    In a "ps -afe", this will show up as the string:
    /bin/ksh ./nameOfScript
    But if you execute it with the full path:
    /path/to/script/nameOfScript &
    It will show up as:
    /bin/ksh /path/to/script/nameOfScript
    So you can see, your logic has to handle all fo these cases. From practical experience, its usually better to have the script create a temporary PID file somewhere. When the script dies, it automagically deletes this file or something. When you check to see if the script is running, you read contents of PID file (assuming it exists), and check a ps listing to see if PID 1234 (or whatever the PID is) is really your script. Kinda a pain in the arse I know but this is usually the best way to handle this.
    Probably more then you asked for ;>

  • HT1414 i think my iphone 4s has a damaged software because it locks the phone always and powers it off without touching the power button. how can i rectify this problem?? i already tried erasing all the settings and content of the phone. thanks..!

    i think my iphone 4s has a damaged software because it locks the phone always and powers it off without touching the power button. how can i rectify this problem?? i already tried erasing all the settings and content of the phone. thanks..!

    This is a user to user help forum only. You are not addressing Apple here.
    My iPhone 4S, iPhone 5, and iPad 2 are running 6.1.3 with no such problem and the same with the overwhelming majority of iOS devices running 6.1.3.

  • My Ipad2 jumps around from app to app without touching the screen? What is causing this?

    My Ipad2 jumps around from app to app without touching the screen? What is causing this?

    What iOS are you running - iOS 7.1.1? Some of the latest iOS fixes addressed this.
     Cheers, Tom

Maybe you are looking for

  • Z87 Mpower SP : BIOS A is dead or can be saved??

    Hi guys, I accidentally did a failed flashing and caused my board doesn't wanna boot to post but all LEDs, fans on CPU and card are working only blackscreen on monitor and there is no LED show up on Debug LED. I use MSI Z87 Mpower SP with BIOS A (dam

  • How can I be reimbursed and cancel my old account?

    I wanted to cancel my old membership this afternoon, but I quickly realized that money was automatically taken out of my account in the morning. Shortly after I had paid for a membership, my school, Parsons The New School of Design, allowed students

  • Preload swf in web pages

    Hi,   I am trying to load a flash object in html using javascript. I have a requirement that i want to load the swf prior to loading html content. because in the html code i have a meta tag to refresh the page and redirect to other url. what i am doi

  • Understanding Time Zone support in iCal

    I'm travelling overseas soon and I want to enter my various appointments so they're correctly displayed in the locations where they'll take place. How do I do this? At the moment the appointments I've entered are displayed as if they're taking place

  • Where is the "Ratings" Info Stored?

    I moved my music from an external 400GB drive to a new 750GB external drive. My first issue was 30% of the links to my 66,000 songs were severed. I had to re-build the song library by dropping my music back in to a blank iTunes Library. I then import