Search the web
Sign In
New User? Sign Up
jsosa · JavaScript OSA-Talk
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Script Debugger 3.0.8 with JavaScript OSA: Scripting for InDesign CS   Message List  
Reply | Forward Message #457 of 529 |

Script Debugger is a fine tool to develop AppleScripts.
Now I have tried to develop JavaScripts with Script Debugger with JavaScript
OSA.

It took me some effort to find out the Signature of InDesign for the MacOS.AEApp
object (it's "InDn"). And I had access to some properties:

var myInDesign = MacOS.appBySignature("InDn");
var myDoc=myInDesign.documents[1];
var myDocName=myDoc.name;
var myStory=myDoc.stories[1];
var myText=myStory.paragraphs[1].contents;
var myPage=myDoc.pages[1];

But I still have trouble to access textFrame properties:

var myFrameCont=myDoc.pages[1].textFrames[1].contents;

-->ScriptError: "TypeError: myDoc.pages[1].textFrames has no properties"

As I try and I try, I cannot see the error in the syntax.
Are there problems with JavaScript OSA and Script Debugger?


Martin






Tue Mar 8, 2005 8:15 am

mamilach
Offline Offline
Send Email Send Email

Forward
Message #457 of 529 |
Expand Messages Author Sort by Date

Script Debugger is a fine tool to develop AppleScripts. Now I have tried to develop JavaScripts with Script Debugger with JavaScript OSA. It took me some...
mamilach
Offline Send Email
Mar 8, 2005
4:31 pm

... I don't have InDesign, so I can't test, but you might want to try the following: var myInDesign = MacOS.appBySignature("InDn"); myInDesign._strict = false;...
arthur@...
admiralnovia
Offline Send Email
Mar 8, 2005
4:43 pm

... I have tried, but without success. ... Result: TypeError: myDoc.pages[1].textFrames has no properties "var myText= myDoc.stories[1].contents;" works. " var...
martin fischer
mamilach
Offline Send Email
Mar 9, 2005
8:03 am

... This isn't terribly fast, but it will provide the creator type of every scriptable app in your Applications folder: ME = MacOS.appSelf(); OS =...
arthur@...
admiralnovia
Offline Send Email
Mar 9, 2005
9:04 pm
Advanced

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