How to use applescript to open speech calibration window

I am having a problem with applescript.  I am trying to open the speech calibration window in System Prefrences using applescript.  I am really bad at GUI Scripting.  I don't know if there is some other way to open the window, but I would like to have it appear when the user clicks a button.  I am using Xcode ApplescriptObjC, but I don't think that matters.  Could someone show me a script that opens the accessibility (or universal access) pane, click speakable items, then the "calibrate" button.

Another way to do this in Captivate 3, to open new window
using javascript with multiple files:
Create button and choose Execute Javascript:
Click the "..." button and type command using the following
format:
JavaScript:mynameLaunch();
["myname" is the name of the javascript function in relation
to the file you want to open]
Publish the Cp file.
Copy the file to be opened over to the root of the htm file
folder (for this example "myname.pdf").
Place the below javascript in the head of the main htm file
after publishing.
<head>
<script src="standard.js"
type="text/javascript"></script>
<script type="text/javascript">
function mynameLaunch(){window.open("myname.pdf",
"","toolbar=no,location=1,top=50,left=50,status=no,menubar=no,scrollbars=yes,resizable=ye s,width=400,height=575");
</script>
</head>
Test on a web server.

Similar Messages

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • How to use Time Capsule via INTERNET WITH WINDOWS 7 SMB Cloud

    how to use Time Capsule via INTERNET WITH WINDOWS 7 SMB Cloud

    Get a vpn router.. I have no idea where you are in the world but you can find reasonable stuff for not too much money or even a general router that takes third party firmware like dd-wrt can run openvpn. 
    Set up the vpn router in place of the TC, as the main router in the network. Simply bridge the TC and place it behind the router. It will be accessible as part of the network via the vpn.
    This is the only safe way to do it via windows.
    http://www.dyncommunity.com/questions/18132/accessing-time-capsule-from-windows- 7-over-the-int.html
    If you google around I have seen posts about how to access TC by port forwarding SMB on the TC.. using a different port.. To me this is going to slow down the hackers by a day or two.. then they will discover the open port and access your network.. not just the TC.. they now have SMB access to everything. Don't do it. There is very little security on SMB.

  • How to turn off "re-open all application windows"

    How to turn off "re-open all application windows". Even though its unselected in preferences. my computer still tries to do this and causes startup problems and delays. its been a hangup since lion. when are they going to fix this???

    Try this. . .
    You have two choices. You can choose that your applications not resume their previous state when you shutdown or restart the Mac by deselecting the checkbox that appears prior to shutdown:
    Or you can navigate to the General pane in System Preferences and deselect the Restore windows when quitting and re-opening apps option. However, if you do this, applications will never resume their previous state, even when quit and restarted during a single boot session.

  • How to use find my iPhone app for windows pc

    How to use find my iPhone app for windows pc ... Is it possible to do..
    Or what is the closest app to do that.,,,,,

    iPhone User Guide (For iOS 5.0 Software)
    iCloud: Find My iPhone
    iCloud: Find My iPhone overview
    iCloud: Set up Find My iPhone

  • How to use Applescript to print out a certain calendar at 7am every morning?

    Hey guys,
    I am trying to use AppleScript to print out one of my calendars each day at 7am every morning.
    I have come up with this so far:
    tell application "Calendar"
           view calendar "My Appointments" at (my (current date))
           switch view to day view
           activate
                        tell application "System Events"
                     keystroke "p" using command down
                     delay 1 -- (seconds)
                     tell process "Calendar"
                                                      tell window "Print"
                                                                     if value of checkbox "Calendar Keys" is not 0 then
                                      click checkbox "Calendar Keys"
                               end if
                                                      end tell
                                       end tell
                        end tell
    end tell
    The problem with this is that it will print out whatever calendars are currently viewable. I can't figure out how to tell it to deselect other calendars and just select the one I want. I also want to tell it to print this out at 7am every morning.
    Any help would be very appreciated!

    If you wanted to do the printout over multiple days, you would be best to loop through each day's events in the way the current script does, but to put a new loop around it that gets each new day's data:
    --opens a temporary file
    set fileRef to open for access ((path to desktop) as string) & "meetings.txt" with write permission
    --effectively empties the file
    set eof fileRef to 0
    tell application "Calendar"
              set dayCount to 9 --this will be the number of days to look forward (not including today)
              repeat with currentDay from 0 to dayCount
                        set startList to {}
      --get's today's date
      --set startRange to ((current date) + 12 * days) -- I used this for testing, to point to a day that had many appointments.  I've left it so you can use it, too.
                        set startRange to ((current date) + (currentDay * days))
      --set the start of the range to previous midnight
                        set hours of startRange to 0
                        set minutes of startRange to 0
                        set seconds of startRange to 0
      --set end of the range to next midnight
                        set endRange to (startRange + 1 * days)
      --get today's events
                        set todaysEvents to get (events of calendar "My Appointments" whose (start date is greater than startRange) and (end date is less than endRange))
      --make a new list with start time of the event for sort purposes
                        repeat with theEvent in todaysEvents
                                  set end of startList to {startdate:start date of theEvent, eventID:theEvent}
                        end repeat
      --sort using a bubble sort (suitable for short lists)
                        repeat with i from 1 to (count of startList) - 1
                                  repeat with j from i + 1 to count of startList
                                            if startdate of item j of startList < startdate of item i of startList then
                                                      set temp to item i of startList
                                                      set item i of startList to item j of startList
                                                      set item j of startList to temp
                                            end if
                                  end repeat
                        end repeat
      --empty the original list
                        set todaysEvents to {}
      --repopulate the list in correct chronological order
                        repeat with theEvent in startList
                                  set end of todaysEvents to eventID of theEvent
                        end repeat
      --write today's date to the file
      write (date string of startRange & return & return) to fileRef
      --if there are no events, write this to the file as well
                        if length of todaysEvents is 0 then
                                  write "No events" & return & return to fileRef
                        else
      --process each event into format: hh:mm-hh:mm/new line/event summary
                                  repeat with theEvent in todaysEvents
                                            set startdate to start date of theEvent
                                            set enddate to end date of theEvent
                                            set startHours to hours of startdate as string
                                            if length of startHours is 1 then set startHours to "0" & startHours
                                            set startMins to minutes of startdate as string
                                            if length of startMins is 1 then set startMins to "0" & startMins
                                            set starttime to startHours & ":" & startMins
                                            set endHours to hours of enddate as string
                                            if length of endHours is 1 then set endHours to "0" & endHours
                                            set endMins to minutes of enddate as string
                                            if length of endMins is 1 then set endMins to "0" & endMins
                                            set endTime to endHours & ":" & endMins
      --write the event to the file
                                            set theSummary to (starttime & "-" & endTime & return & summary of theEvent & return & return) as string
      write theSummary to fileRef
                                  end repeat
                        end if
      write return to fileRef
              end repeat
    end tell
    --close the file
    close access fileRef
    --print the file
    set theFile to (((path to desktop) as text) & "meetings.txt") as alias
    tell application "TextEdit"
              print theFile without print dialog
    end tell

  • How to use ActiveX to open/write to Excel template but not to overwrite it

    Hi there again (it's me...if anyone recognised me...)
    I managed to use ActiveX to open Excel and make it visible onto the screen. But I would like to know how can I make Excel open an Excel template and let me write data to the cells without overwriting the original template. I did try to use another program source such as the EXCEL TOOLKIT but I can't still figure out how does it work for my case. Is there a simpler example for me to refer too? Please help.
    Thank you,
    juni

    Hi Mike..
    I have tried to use the examples provided LabView 6.0. I don't understand how to use the Range value to get the data from my global array and also how to open the template and write data to it.
    At the moment, I could only open a saved dialog box and a default string filename is used to save my data into a new Excel but not the formatted excel which I want.
    If possible, please help again. Vi attached.
    Attachments:
    savefile.vi ‏109 KB
    datarecords.vi ‏12 KB

  • How to use url to open report and refresh report's data,but the report's toolbar haven't "refresh data" button

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    HI,
    scenario is
    I hope use url to open the report,and refresh the report data,but I didn't the user use the "refresh data" button to refresh the report's data.How to do that?
    regards

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    Thank you for your attention, amr_foci .
    I created a Web Intelligence report,there will be more than 30 companies use.The company only allowed to see the Company Data. I want to use the url of the way, from my company in the development of the system to open report, and refresh reported Table data.but do not want users to use the toolbar of "data refresh" button to refresh the data .
    Now the question of identity authentication system, as well as statements by url open the question of Has been resolved, but it can not shield statements through the pages of "data refresh" button.
    In addition, I now used by the business object XI system is posted on the JAVA environment.
    Regards,

  • How to use applescript to enter a contact in Microsoft Word

    I am new to applescript, but I am trying to find a good way to use applescript in Microsoft Word along with Dragon Dictate for Mac to automate writing a letter. Dictate allows me to use applescript upon saying a command. What I would like to do is to be able to say "write a letter to ..." and it open my letter template and enter the persons contact info from the address book. There is a contacts menu item in Word that you can double click on the contact and it will paste it into the document, but it would be nice to be able to have it do it automatically without having to keep clicking.
    Any help is appreciated.
    Thanks!
    Ethan

    It's a sheet, not a "modal". This script should tell you if it's up or not:
    tell application "System Events"
      tell process "Safari"
      tell window 1
      if exists sheet 1 then
           display dialog "Sheet is Up"
      else
                display dialog "No sheet"
    end if
    end tell
    end tell
    end tell

  • Using applescript to open a folder with a keyboard shortcut

    hello -
    i have a rather simple question (probably). is there a way using applescript to create a keyboard command to open a folder? i.e. command shift a opens the applications folder and command shift u opens utilities. can i use applescript to designate a keyboard command to open a folder i have created? also, the script editor does not have to be open for me to utilize scripts, correct?
    thanks for your patience with a newbie.

    You can't make a keyboard shortcut to run a specific application from OSX, although there are third party applications such as Quicksilver that can do things like that. You can use an AppleScript to activate an existing menu item, for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder" to activate
    tell application "System Events" to tell application process "Finder"
    keystroke "A" using {shift down, command down}
    end tell</pre>
    Other alternatives to keyboard shortcuts are to use the Scripts Menu or add an application to the Finder's toolbar. The Script Editor does not need to be active to use scripts.

  • Using applescript to open "any" images in an specified application?

    I want to use applescript as part of a workflow in Automoator.
    Automator already takes care of the renaming and resizing of my pics.
    Then I want applescript to take each pic that I throw at it and apply it to an image optimizer application I have.
    I've looked all over gooel and I can' find anything.
    Everyscript I see has a specific file name or folder.
    I want applescipt to take a file with any name and launch "ImageOptim" and open the file with ImageOptim.
    This app is a drag and drop app, just drop your pictures on the window or on the icon and it'll optimize your pics on the spot. It doesn't create a new file, the file itself is changed.
    And that's it.
    I had this but it doens't work
    set this_file to choose file without invisibles
    try
              tell application "Finder"
      activate
                        open application file "ImageOptim.app" of folder "Applications" of startup disk
                        set this_image to open this_file
              end tell
    end try
    Thanks for the help.

    Red's already shown you one solution, but your script has multiple errors and it's worth clarifying them
    set this_file to choose file without invisibles
    OK, nothing wrong with this line
              tell application "Finder"
      activate
    There's no need to activate the Finder to perform this task. The Finder's quite happy to run in the background.
                        open application file "ImageOptim.app" of folder "Applications" of startup disk
    This opens the application.
                        set this_image to open this_file
    This would open this_file - except that this command is completely independent and disconnected from the previous command - in other words you're just telling the Finder to open the file, it doesn't care about what other commands you might have asked it to run previously.
    The solution is to tell the Finder to open the file using the specific application you want.
    Another option may be to eschew the Finder altogether, and just tell the app to open the file:
    set this_file to choose file without invisibles
    tell application "ImageOptim" to open this_file

  • Using applescript to open launchpad

    Hello all,
    I just bought a new iMac yesterday, and I love the multitouch features of my new magic mouse, but I had wanted to be able to add a few more so that I could use similar functions to those which I use on my iPad. I discovered the app Magicprefs, and it works great, but one thing I wanted to do was make it so that a two finger swipe up opens Launchpad, and a two finger swipe down closes it. From what I can tell, Magicprefs makes it so that a two finger swipe up will open and close Launchpad, and same with a two finger swipe down. I was trying to use applescript to make it so that a swipe up will only open it and a swipe down will only close it, not do both. The problem is that while I am familiar with basic programming I am not familiar with the exact language used in applescript and also it looks like launchpad is not simply opened and then quit so these basic commands are not working. Could anyone give me the basic code I can use to tell Magicprefs to open it with a swipe up and to close it with a swipe down? Or if this is even possible? Thanks for any help!

    You can't make a keyboard shortcut to run a specific application from OSX, although there are third party applications such as Quicksilver that can do things like that. You can use an AppleScript to activate an existing menu item, for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder" to activate
    tell application "System Events" to tell application process "Finder"
    keystroke "A" using {shift down, command down}
    end tell</pre>
    Other alternatives to keyboard shortcuts are to use the Scripts Menu or add an application to the Finder's toolbar. The Script Editor does not need to be active to use scripts.

  • How to Use Schannel for TLS Sockets on Windows?

    I need make a c++ TLS socket server running on Windows XP, and a c# TLS socket client on Windows 7.
    The reason of using Schannel TLS is that it is FIPS 140-2 validated.
    But it is not easy to find some sample code of Schannel.
    By search, I found two c++ TLS samples, but the samples use the secur32.dll, some APIs seem are FIPS non-approved.
    codeproject SSL/TLS client/server for .NET and SSL tunnelling
    http://www.coastrd.com/c-schannel-smtp C++ SSPI Schannel TLS example
    According to 140sp1000.pdf (Microsoft Windows Vista Kernel Mode Security Support Provider Interface (ksecdd.sys) Security Policy Document), following APIs are FIPS non-approved APIs.
    InitializeSecurityContextW
    ImpersonateSecurityContext
    EncryptMessage 
    DecryptMessage
    I am quite confused about two things:
    One is that the FIPS non-approved APIs of ksecdd.sys also are also non-approved in secur32.dll?
    Another question is what's the correct way of using Schannel. Are the samples using Schannel in the correct way, must the APIs InitializeSecurityContextW/EncryptMessage be used?
    I want some sample code about how to use Schannel in native c++ and managed c#.

    I'm not sure what information you are referring to that indicates InitializeSecurityContext() and EncryptMessage() are not FIPS compliant.  InitializeSecurityContext() is required API on the client side.  EncryptMessage() is the required API to
    encrypt data.  Both APIs are important APIs in SSPI.
    In .NET, you would use the SSLStream Class, https://msdn.microsoft.com/en-us/library/system.net.security.sslstream(v=vs.110).aspx .
     MSDN has sample code for both the client and server.
    There used to be an SSPI client + server sample (WebClient & WebServer) on the Windows SDK.   I don't know if it is still there.  If you can't find them, please let me know.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.
     

  • How to force safari to open a new window when dock icon is clicked

    If Safari is already running on my MacBook Yosemite, and I click on the Safari icon in the dock, the Safari window is brought forward.  The behavior  I want is whenever I click the safari icon on the dock, is that a new safari browser window is opened.  I don't see this option in preferences (or any keyboard  mouse combination) that would make the dock icon open a new browser window.    (an option is available for new windows if you click on a hyperlink, but not if you click on the dock icon) .
    p.s. And I don't want to first  have to place focus on the current running safari and then click File New...too many steps when all I want is a new browser window
    Thanks in advance

    Hi css,
    Welcome to the Apple Support Communities!
    I understand that you would like to click on Safari in your Dock and have it open a new Safari Window. As you said in your post, clicking on Safari in the Dock brings the Safari window forward. There are a couple of possibilities to help resolve this situation. You can control-click (right click if enabled) on Safari in your Dock which will give you the option to open a new window. You can also click and hold on Safari, otherwise known as Press, to display these same options.
    Mac OS X: Additional features of the Dock - Apple Support
    Mouse clicks and key combinations for the Dock
    Control-click
    Reveals contextual menu for item. Menu choices vary per application or file. When used on Dock separator, it reveals Dock preferences. There you can turn magnification and hiding on or off, change the position of the Dock on screen, and change the minimization effect. Choose Dock Preferences to see more options.
    Press
    Reveals contextual menu for item. Menu choices vary per application or file.
    Cheers,
    Joe

  • When I click on an email link it opens in the email window instead of opening a new window, how to get it to open a new window instead

    It's Comcast email, most links are to articles from the Wall Street Journal. Lately an email from Charles Schwab broker with a link to a pdf file has been doing the same. When I click on the link, it opens within the email frame, which is about 1/3 filled up with the toolbar, mailboxes, headings etc. If it opens with 2 bars on the right side to move down, I can see the whole article, but often it opens with only one bar on the right side which will not let me get all the way to the end of the page.
    It's been happening for several weeks. I got a new computer and it's still happening. Comcast sounds like they've never heard of it. Most recently happened today. I tried the same email link with IE and it opened a new window.

    Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.

Maybe you are looking for