Hello,
I am trying to automate a selection of all the items (images) in a group, then do a merge of those items to PDF with “Merge” command.
I wrote an Automator workflow with this action sequence:
-
Get selected records
-
Get Group Contents (don’t repeat for each group found, exclude input group records)
-
Run ActionScript
on run {input, parameters}
tell application id "com.devon-technologies.thinkpro2"
try
set RecordsToMerge to (the records of input)
merge records RecordsToMerge
on error error_message number error_number
if the error_number is not -128 then display alert "DEVONthink Pro" message error_message as warning
end try
end tell
end run
While the script runs without errors, I am not getting the result PDF.
Any help would be appreciated, since this is also my first attempt at writing a script, not only for DT, but in the Apple world