Search the web
Sign In
New User? Sign Up
powerpro-beginners · Windows PowerPro For Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
Come and InDesign   Topic List   < Prev Topic  |  Next Topic >
Reply  | 
Re: Come and InDesign

--- In powerpro-beginners@yahoogroups.com, Brother Gabriel-Marie <brgabriel@...>
wrote:
>
> I am trying to figure this "RunScript" function: (watch for wordwrap)

[...]
>
> Function RunScript(whatscript);;<--THIS ONE!
> .@ComLoad()
> appRef.DoScript myJavaScript, idScriptLanguage.idJavascript, arguments[0])
> .@ComUnload()
> quit
> ----------------------------------
>
> .InDesign@RunScript(?"C:\Saint Cuthbert\Programming\Adobe
> Scripting\Adobe InDesign CS3\BGMscripts\testscript.jsx")

That should run it. If you put some messageboxes or debugs into the function you
should see them and be assured it is running.

This line is wrong:

> appRef.DoScript myJavaScript, idScriptLanguage.idJavascript, arguments[0])

Some of the problems:
1. no open parenthesis
2. you need the value not the name for idnames used in vbscripts and powerpro
3. There is no variable named arguments[0]

This works for me:
local idScriptLanguage=1246973031 ;;idJavascript
appRef.DoScript(myJavaScript, idScriptLanguage)

You could also use the value directly in the call, e.g.,
appRef.DoScript(myJavaScript, 1246973031)

Regards,
Sheri




Fri Nov 27, 2009 2:05 am

silvermoonwo...
Offline Offline
Send Email Send Email

 | 
Expand Messages Author Sort by Date

Hello y'all! What am I doing wrong here? I don't know com nor extendscript well enough to get it. ;I am trying to discover the script equivalent of setting...
Brother Gabriel-Marie
brother.gabriel
Offline Send Email
Nov 21, 2009
7:20 pm

... This works for me. Uncomment the version line if it doesn't work in your CS3. Regards, Sheri Function NextIdWindow() local...
Sheri
silvermoonwo...
Offline Send Email
Nov 22, 2009
12:09 am

Dear Sheri, Well, I tried that and it didn't work on either CS2 or CS3 with the version line commented or uncommented. This is tricky stuff, I think! I saw...
Brother Gabriel-Marie
brother.gabriel
Offline Send Email
Nov 24, 2009
2:42 pm

... You know InDesign has keyboard shortcuts for Next/Prev Window, right? Ctrl+F6 or Ctrl+~ [tilde] Shift+Ctrl+F6 or Ctrl+Shift+~ [tilde] ... When you get a...
Sheri
silvermoonwo...
Offline Send Email
Nov 24, 2009
7:09 pm

Wow! I never knew about TLviewer! I found CS3 with version 5 and it loaded up just fine. I have been struggling with the Extendscript toolkit, but it...
Brother Gabriel-Marie
brother.gabriel
Offline Send Email
Nov 26, 2009
9:08 pm

... [...] ... That should run it. If you put some messageboxes or debugs into the function you should see them and be assured it is running. ... Some of the...
Sheri
silvermoonwo...
Offline Send Email
Nov 27, 2009
2:09 am

... My function btw was Function RunScript(myJavaScript) not Function RunScript(whatscript) You should enable the Powerpro configuration option on the "Other"...
Sheri
silvermoonwo...
Offline Send Email
Nov 27, 2009
6:26 am

Alright! Thanks again! In order not to have to remember the script language over and over, I put the scriptlanguage part into a function that I can reuse....
Brother Gabriel-Marie
brother.gabriel
Offline Send Email
Nov 28, 2009
2:04 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help