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
-
“stem cell” AND “mathematical modeling”
-
“stem cell” AND “agent-based modeling”
-
“stem cell communication” AND simulation"
-
“stem cell” AND “computational model”
-
“cell-cell interaction” AND “multi-agent system”
CHAOS THEORY & COMPLEXITY
-
“stem cell” AND “chaos theory”
-
“self-organization” AND “stem cells”
-
“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
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:
- Create a new search set
- Set the default query to
"Edwin Hubble"
- Save the following script in
~/Library/Application Support/DEVONagent/Action Scripts
- 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.