# URL or Applescript to search DA Pro?

**URL:** https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743
**Category:** Automation
**Created:** [October 18, 2012, 10:08pm UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743 "2012-10-18T22:08:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nall](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/nall/32/6504_2.png) [@nall](https://discourse.devontechnologies.com/u/nall)
#### Post date: [October 18, 2012, 10:08pm UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/1 "2012-10-18T22:08:10Z")

</div>

I use [http://www.alfredapp.com](http://www.alfredapp.com) and would like to have it be able to open a query in DEVONagent Pro (search and show the results in the search window). If that’s not possible, I’m open to other options as well. I’m mostly just concerned with starting the search via the Alfred text entry box.

I’ve looked through the AppleScript dictionary and couldn’t find anything there. The ‘search’ action looked promising, but I couldn’t figure out how to actually start the search and get results.

I could also use a URL scheme to search if that sort of thing is available (e.g., x-devonagent://search)

Thanks for any insight,

nall.

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [October 19, 2012, 1:40am UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/2 "2012-10-19T01:40:56Z")

</div>

nall:

Check out the DEVONagent manual. (Because these guys are genuises) they have included some awesome examples right in the documentation you may find helpful. For example, on p.10 there is a link that says: Click here to make DEVONagent run this search for you. Hover over it and check out the link in the tooltip. Hope that helps. 8^)

---

<div class="post-metadata">

### Author: ![nall](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/nall/32/6504_2.png) [@nall](https://discourse.devontechnologies.com/u/nall)
#### Post date: [October 19, 2012, 5:32pm UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/3 "2012-10-19T17:32:37Z")

</div>

Thanks! Is there an actual PDF manual? I ended up digging through the application help, but found the link you mentioned.

For reference, it’s:

```auto

x-devonagent://runPlugin?identifier=com.devon-technologies.internet.plugin&query=SEARCH%20TERM

```

It mostly works. Specifically, it works as expected if DA is already open.

If DA is not already open, DA launches and populates the search field, but doesn’t actually start the search. Is this a bug?

---

<div class="post-metadata">

### Author: ![nall](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/nall/32/6504_2.png) [@nall](https://discourse.devontechnologies.com/u/nall)
#### Post date: [October 19, 2012, 5:38pm UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/4 "2012-10-19T17:38:13Z")

</div>

I’ve worked around this with a bit of AppleScript:

```auto
tell application "DEVONagent"
	activate
	get URL "x-devonagent://runPlugin?identifier=com.devon-technologies.internet.plugin&query=" & theQuery
end tell

```

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [October 19, 2012, 6:19pm UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/5 "2012-10-19T18:19:57Z")

</div>

No, I don’t believe it’s supposed to actually “push the button” so to speak. Glad you’re getting somewhere. 8^)

---

<div class="post-metadata">

### Author: ![jsturtridge](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/j/f05b48/32.png) [@jsturtridge](https://discourse.devontechnologies.com/u/jsturtridge)
#### Post date: [August 26, 2014, 1:08pm UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/6 "2014-08-26T13:08:47Z")

</div>

For completeness, here’s the URL scheme for starting a search with a Search Set:

```auto

x-devonagent://runSearchSet?name=Marketing&query=Steve%20Jobs

```

Hope that helps everybody.

J.

---

<div class="post-metadata">

### Author: ![system](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4e6ff70c96be2eb307a274d890bba8d71ba671b3.png) [@system](https://discourse.devontechnologies.com/u/system)
#### Post date: [January 21, 2022, 11:17am UTC](https://discourse.devontechnologies.com/t/url-or-applescript-to-search-da-pro/14743/7 "2022-01-21T11:17:04Z")

</div>


