# Can someone help me to automate please

**URL:** https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313
**Category:** Automation
**Tags:** automation
**Created:** [April 29, 2025, 4:51pm UTC](https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313 "2025-04-29T16:51:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![opalaoglu](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/o/977dab/32.png) [@opalaoglu](https://discourse.devontechnologies.com/u/opalaoglu)
#### Post date: [April 29, 2025, 4:51pm UTC](https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313/1 "2025-04-29T16:51:33Z")

</div>

Hello, my name is Ongun. I am a new user. I just purchased devonAgent pro and DEVONthink4. I am very happy. I need help with automation of articles online.

✅ **GENERAL STEM CELL MODELING**

1. “stem cell” AND “mathematical modeling”

2. “stem cell” AND “agent-based modeling”

3. “stem cell communication” AND simulation"

4. “stem cell” AND “computational model”

5. “cell-cell interaction” AND “multi-agent system”

✅ **CHAOS THEORY & COMPLEXITY**

1. “stem cell” AND “chaos theory”

2. “self-organization” AND “stem cells”

3. “emergent behavior” AND “cell modeling”

those are my keywords and I want to automate the deeper article search with these keywords. when one keyword finished other one should append.

```auto
tell application "DEVONagent"
	activate
	-- Open a new search window using your Google Scholar (Articles) set
	search using set "Google Scholar (Articles)"
	
end tell

```

I could only go this far :(.

---

<div class="post-metadata">

### Author: ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)
#### Post date: [April 29, 2025, 6:02pm UTC](https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313/2 "2025-04-29T18:02:51Z")

</div>

> [@opalaoglu](#):
>
> I could only go this far :(.

Looks like an AI-generated script actually 😉 However, it’s unclear what this automation is exactly supposed to do. E.g. is this search frequently performed? How will the results be processed? How should results already found by former searches be handled?

---

<div class="post-metadata">

### Author: ![troejgaard](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@troejgaard](https://discourse.devontechnologies.com/u/troejgaard)
#### Post date: [April 29, 2025, 7:52pm UTC](https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313/3 "2025-04-29T19:52:07Z")

</div>

Yes, it’s not clear what you actually want. Or why scripting is necessary.

Did you look in the manual? See for example _Common Tasks \> How To Run A Search Automatically_ and the chapter _Search Sets_

---

<div class="post-metadata">

### Author: ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)
#### Post date: [April 30, 2025, 6:06am UTC](https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313/4 "2025-04-30T06:06:20Z")

</div>

Here’s a simple action script that should exactly do this:

1. Create a new search set
2. Set the default query to `"Edwin Hubble"`
3. Save the following script in `~/Library/Application Support/DEVONagent/Action Scripts`
4. Enable the option _Execute Script_ in the _Actions_ tab of the _Search Sets_ panel and select the just saved script

```auto
-- Append searches

property pQueries : {"\"Edwin Hubble\"", "\"Albert Einstein\"", "\"Loop Quantum Gravity\""}

on results(theResults, theSet, theQuery)
	set i to 1
	set n to count of pQueries
	repeat with aQuery in pQueries
		set i to i + 1
		if (aQuery as string) is equal to (theQuery as string) then
			if i ≤ n then tell application "DEVONagent"
				set nextQuery to item i of pQueries
				append search nextQuery to (search window 1) using set theSet
			end tell
			exit repeat
		end if
	end repeat
end results

```

---

<div class="post-metadata">

### Author: ![opalaoglu](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/o/977dab/32.png) [@opalaoglu](https://discourse.devontechnologies.com/u/opalaoglu)
#### Post date: [April 30, 2025, 8:25am UTC](https://discourse.devontechnologies.com/t/can-someone-help-me-to-automate-please/83313/5 "2025-04-30T08:25:00Z")

</div>

thank you very much. I had huge set of main queries. I did not think of any other way to handle other than search wait append so on.
