Inconsistent operations with URLs

Within apple script if I try to access a URL that requires authentication

“open tab for URL theURL”
Initially opens the URL sends me to the authentication page before sending me the target page. Subsequent “open tab for URL” just go direct to the target page. Even if I run the script multiple times. i.e. Devonthink has cached the session cookies and using them each time.

“create PDF document from theURL in newFolder”
However “create PDF document from” doesn’t appear to use the session cookies and always records the login page as the PDF.

I can appreciate Devonthink is not intended for browsing and thus may only have minimum functionality, but from a user perspective the reasoning behind this inconsistent operation is unclear.

Is there a better way to achieve the required outcome or could the Devonthink be enhanced to resolve this issue ? Or could the documentation be improved to allow users to understand the limitations.

Thanks

Frank

Some of the inconsistency may be due to the target web page. On some pages – notably many scientific journals – viewing and downloading are authenticated differently.

Clipping is performed by a background task, therefore DEVONthink’s browsing history & cookies don’t matter currently. One workaround is to open a tab, wait til it’s loaded (see loading property) and finally retrieve the PDF or paginated PDF property and use it to create a new record.

Thanks!
This approached worked.