Can someone help me to automate please

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.

:white_check_mark: 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”

:white_check_mark: 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.

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 :(.

Looks like an AI-generated script actually :wink: 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?

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

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
-- 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
1 Like

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.