Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Activating Browser window from within an InDesign Javascript

$
0
0

Hi All

A part of a Javascript I have inherited, relies on Applescript to call to open the active Safari/Chrome window, and extract some information, then use this in the JS with InDesign.

What I would like to do is eliminate AS altogether, as this restricts me to using Macs, and would like to open this up to PC users too.

I know I can do a platform query, and may be an option to use VBScript to do the equivalent AS routine. I have absolutely no experience with VBScript, so would need some help if this is the option.

Ideally I would like to stay as native JS, but that may be wishful thinking on my part.

 

Here is a sample of the AS I am using within a doScript:

 

tell application "Safari"

activate

set imagePath to do JavaScript "frames[2].frames[1].document.links[0].href" in document 1

end tell

 

then...

 

tell application "InDesign"

activate

end tell

 

Does anyone know if this may be possible?

 

Cheers

 

Roy


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>