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