How does one open a specific file in the background?

I created a macro to append highlighted text (in any app) into a specific Scrivener file, and as a preliminary step, I must open that file in the background
I understand how to open an app in the background with apple script:

tell application “Scrivener” to run

which works fine.
How would I modify the script to open a specific Scrivener file in the background.****?
thanks very much for your time and help

Hey @ronald,

Something like this will work.

set docAlias to alias ((path to documents folder as text) & "Scrivener Documents:Test Document ⇢ S3.scriv:")

tell application "Scrivener"
   if not running then
      delay 0.25
   end if
   open docAlias
end tell


1 Like

works perfectly. thanks very much

are you familiar with Scrivener ?

Hey Ronald,

Somewhat. I do own a copy.