Applescript to search for something.

I've been messing around with the idea and trying to code a little bit of it but I just can't figure it out.
I have a dictation program that listens to what I say and for instance when I say "search for david crowder band" I want it to do a google search for "david crowder band"
Is there a way to do that?
Or maybe a way so that when I say "do search" then it will beep or something at me and then I say what to search for (like "david crowder band").
Any ideas on what code to use or if I'm using the right langauge to do it?

As long as you have Google Chrome, this should work.
tell application "Google Chrome"
activate
          open location "http://www.google.com/"
end tell
say "What would you like to search?"
delay 1.5
tell application "System Events"
key code 47 using {command down, shift down}
end tell

Similar Messages

  • My iPads App Store won't load when I search for something, this has been going on for months now. I can't download anything

    If Iwant to download an app, I got to the App Store and when I search for something, it keeps loading forever. This makes it impossible for me to get any app! dpes anybody know how to fix this and why is it happening???

    Which app are you looking for? Are you from the states?

  • Why does the App Store crash every time I search for something on my iPod?

    Every time I open the App Store on my iPod touch and search for something, it crashes. I tried resetting my iPod, but the App Store still crashes. I used to love my iPod and was very happy to have supported Apple, but it just makes me angry more than anything now. Also, in the Tree World app, my hippo was deleted. I was moving my critters around on their branches when all of a sudden my hippo was carried off the screen never to be seen again. I can't buy it from the market. I am VERY upset over this.

    I have the same bug cuz of the new App Store application ,,, almost the next update they ll fix it ,,
    But really it isn't a big problem ,,, after AppStore crash open it again ,,, & install what u want ,,,
    That's all

  • HT201285 How do I start / run spotlight search to search for something???? :D

    that's the question:  How do I start / run spotlight search to search for something????
    Thanks! 

    I think I figured it out:  screen doesn't say "Spotlight", it's just the keyboard when you swipe left to right on home screen . . . . .
    oh well, I have other talents:  tap dancing.
    If you have more info or cool suggestions, please reply and thankyou.  What I'm trying to find is a deleted message and its attached photo . . . . . quasi urgent.
    ThanksThanksThanks!

  • Applescript Help: Search for text in Safari DOM tree

    Im trying to make a script really similar what was asked here: Re: Find text in webpage and email notification applescript/automator Except instead of searching the "source code" of the page, I want the script to search the "DOM tree" for the page.
    To summarize, I am trying to make a script that loads a safari page, searches for a particular text in the DOM Tree, and if found will send me an email.
    Here is the code from the other thread I referenced:
    on idle
              set pagURL to "http://page.url.com?whatever"
              if application "Safari" is not running then
                        quit
                        return
              end if
              tell application "Safari"
                        set URL of document 1 of window 1 to "http://your.web.address/"
                        delay 5
      -- delay to let page load.
                        if source of document 1 of window 1 contains "search text" then
                                  my sendAMail()
                        end if
                        return 900 --fifteen minutes
              end tell
    end idle
    on sendAMail()
              tell application "Mail"
                        set theMess to make new outgoing message at end with properties {sender:"your name", subject:"some subject line", content:"The message you want to send to yourself", visible:true}
                        tell theMess
                                   make new to recipient at end of to recipients with properties {address:"[email protected]"}
                        end tell
      -- send theMess
              end tell
    end sendAMail
    Any help would be appreciated!

    For the URL you quote as an example (http://www.sislands.com/coin70/week2/NestedLoops1.htm), using text instead of source worked for me:
    if text of document 1 of window 1 contains "1  2  3  4" then
    another example:
    if text of document 1 of window 1 contains "10 12 14 16" then
    Note a double space between single digits (1  2  3  4) and a single space between double digits (10 12 14 16) is required for a match as per the table format:
    Any full line:
    if text of document 1 of window 1 contains "for (i = 1; i <= 10; i++) { // when i = 10" then
    or partial line works:
    if text of document 1 of window 1 contains "; i++) { // when i = 10" then

  • HT204266 Why does the App Store crash whenever I try to search for something?

    Whenever I try to search for an app, the App Store just crashes. This is very annoying.

    For other problems try:
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>iTunes and App Stores and sign out and sign back in.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    iOS: How to back up your data and set up as a new device
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • If i search for something and later somone goes on the same computer how do you delete what you have search for so they cant see it

    how can i get rid of what i searched for so no one can see it if they use my computer

    See: [[Clear Recent History]]

  • The Help Tab (OSX ML) where you search for something does not work

    If I click "Help" and then search "expand" it will show me where expand is. But in CS6 when I clicked it the command would go through and pull up the page to expand pixels. Instead, I have to go find it. It works in every other Adobe app I use except Photoshop CC.
    I am on the latest version and on CC

    Hi Peter
    Thanks a lot for your help (and sorry for not having answered quicker, but my boss gave me a more urgent task last week...).
    Anyway, I did what you suggested (re-importing into a brand new project), and then the search for synonyms really worked! But, being a sceptical person, I did the same with another project, and with that one, it did not work. So, what I did next was compare all the settings of these two projects, and I found a difference.
    RH8 now contains a function that's called 'Teilzeichenfolgensuche' (I don't know the English expression, but have a look at the attached picture: this is a screen shot from the second page when I generate WebHelp). After having done several tests, I came to the following conclusions:
    Search for synonyms does not work in HTML-Help, but it does work in WebHelp (and maybe others, but they are not relevant for me, so I did not test them);
    Search for synonyms does only work, when the function 'Teilzeichenfolgensuche' is NOT activated.
    Could maybe somebody test this, too, and post here whether my conclusions are really correct?
    Btw: This fact is not mentioned in the RH-Manual; actually, this function 'Teilzeichenfolgensuche' is not even mentioned there (at least not in the German edition)!!!
    Can hardly wait to see your feedback; thanks again for everybody's support!
    Kurt

  • I accidentally found a .PDF file using Spotlight while I was searching for something else. However, I can't find the location of the file.

    While I was using Spotlight to search for an app. I came across a .PDF file related to my job. However, it's not in the finder nor in the documents folder. As matter of fact, it's not even listed in the PDF files section. I can open it using Spotlight.....but I can't find it. It it on my Inbox? Do I have files lurking around in my computer without me knowing about them? Also I don't remember downloading said file. It's not harmful it's just a simple 32-page .PDF file that contains information on my company policies. But where is it and how did get there?

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • How do you get the iPhone to take you to a direct message when you search for something in Spotlight Search?

    Everytime I search for  a message, the iPhone takes me to the bottom of the text screen. How do I find that exact message without having to search by myself? Are there any options to change this?

    You aren't crazy.
    Adding the photo to contacts on the computer gets you the smaller pix when people call.
    Assign the photo on the phone itself and you get full-size pix.
    Additionally I took a few test photos from the iphone and tried setting them to contacts. This didnt work either.
    So, that certainly should work. Try it again? Try it with a brand new contact, maybe it is not overwriting a previously existing picture.
    I suppose there is a small possibility that Apple thought this differing behavior was a bug instead of a feature and "fixed" it with a recent update, but I doubt it.

  • How to remove large number of "sent" but still keep them available in case I need to search for something?

    Over several years, I have accumulated some 1400 messages in the SENT folder.
    Lately my Thunderbird is taking a long time for some actions that used to be instant, like selecting another message to read or delet.
    I regularly remove incoming messages to keep the in-box under 300, and I have almost nothing in the other folders.
    I tried changing the "local folders" to a different directory, but when I do that, all the old "sent" messages become un-available for searching and potentially continuing a conversation.
    Is there a way to move the large number of "sent" messages from the "local folders" but still keep them available for access from within Thunderbird, in case I need something from past chains of replies?

    https://wiki.mozilla.org/Thunderbird:Testing:Antivirus_Related_Performance_Issues#McAfee

  • How do I stop the page from re-directing when I am searching for something? It re-directs to something that has nothing at all to do with what I was searching for

    I put something in the search bar such as "making centerpieces for baby shower" or I put it into google. Then a bunch of matches come up, I click on one that looks good, but immediately it goes to "re-direct" and a web site comes up that has nothing at all to do with the search like an auto shop or something.

    I would need more details for this, as you have mentioned rulers move ? Are you referring to rulers on page in design ?
    You can move a guide lower down the page , ruler marks will be displayed on ruler but that will not stop you moving the guides.
    What happens if you uncheck rulers from top view options ?
    Thanks,
    Sanjit

  • When searching for something on amazon or ebay the top row always goes to the far right of the screen.

    So when i look up something like "shoes" in the amazon search box the top row of items moves over to the far right. And most are no longer even on my screen
    I checked on I.E. and i had no issues with this so i assume its a firefox issue.

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • In the iTunes Store, when you search for something, on the left side of screen there is a pane under "iTunes Essentials" called "Playlists"

    Sometimes you will get a list of five or so matching playlists and a "MORE" option. When you clicked on this in the past it would show a list of other searched matches. But now it simply dumps you right back to the current page. Has this search capability been removed for some reason? It was working just a couple weeks ago and mysteriously stopped. I've tried on several different computers, in different locations.
    Does this have something to do with the whole PING deal, they want us to share playlists with only people we follow or know?

    Refer to this artile:
    iTunes for Windows: How to turn off Compatibility Mode
    http://support.apple.com/kb/TS1489
    For Windows 7, make sure all boxes in Compatibility tab are unchecked.

  • I CANNOT CLOSE THE FIRST TAB WHEN I SEARCH FOR SOMETHING AND CLOSE A SECOND TAB IT WILL NOT LET ME CLOSE THE FIRST TAB

    I CANNOT CLOSE THE FIRST TAB AFTER I TYPE IN A SEARCH
    == This happened ==
    Every time Firefox opened
    == I UPGRADED TO 3.6

    I have the same problem and tested it in Safe Mode, and did the disable the add-ons thing. Everything went OK, even up to the last add-on. There wasn't a hint of the problem anymore, so I went back to regular use of FF (3.6.12) again. WELL, THE SAME THING HAPPENED AGAIN!!! I agree with the person who said that your supposed troubleshooting is B.S. You blame the user instead of saying something useful like "OK, we heard you (and over two dozen others) and we know it's not your doing, and it's OUR PROBLEM, and we're going to look into it and figure out how to fix it, AND we'll get back to you when we do and tell you how to fix it too." THAT's the kind of answer we FF users want to hear, not some claptrap about how WE the users didn't try hard enough to fix it on our own!

Maybe you are looking for

  • Itunes does not install Error - Apple Mobile device failed to start?

    How to fix installing problem with itunes - Error message is Apple Mobile Device failed to start

  • Programming Web Item. Problem with URL creating

    Hi, I am trying to programm a own Web Item. I derived from the class CL_RSR_WWW_ITEM_VIEW. Everything is worken fine. I just have a problem with the creation of links. In the WAD there is the very nice way of using SAP BW URLs like: <SAP_BW_URL cmd="

  • IPad imovie?

    I don't have a mac, and wish to purchase one. I saw the new iPad and was interested in learning more about the product. I realized it does not have any iLife programs like iMovie and i am wondering if anyone knows if Apple is considering incorporatin

  • Zynq Linux issue with udev

    Hi, I am using "Linux zynq 3.10.0-xilinx". I did checkout of the tag Xilinx v14.7 I have cross compiled the kernel modules. I am using Zynq Z702 board, I have used the booting file for petalinux on Zynq from the below mentioned site. http://www.wiki.

  • How am I supposed to manage user attributes in ML?

    User management with Server.app is easy....if you don't want to set more user attibutes than a name and mail address. But with Workgroup Manager we cloud do more. How am I supposed to set additional attributes (surname, city, ...) without WGM? Kind r