Get doc_id from a google doc

Anyone know how to get the doc_id of a google doc file from google drive, without opening the file in a web browser?

Thanks
David

That’s interesting, I never saw that. Any chance you know how to write any apple script to select a file, based on its path, and then using the right click to select ‘copy link to keyboard’ option that google has? I can not seem to script this.

I am trying to load it into a FileMaker web viewer.

Not sure what either of those are. If I can click the copy link to clipboard with a right click on the file, shouldn’t there be a way hit that with an apple script?