Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Browsing all 37788 articles
Browse latest View live

Re: Find selected paragraph style in the paragraph style panel

Hi, if text tool is inactive use: app.activeDocument.textDefaults.appliedParagraphStyle; otherwise: app.selection[0].appliedParagraphStyle; rgdsJarek

View Article


Re: Find selected paragraph style in the paragraph style panel

You can only get that information, if you selected* some text with that paragraph style. Here an example: //To define a GREP Style we need //1. a character style: var myChStyle =...

View Article


Re: Find selected paragraph style in the paragraph style panel

Ok. I was wrong. There is a way to get the selected paragraph style, if nothing is selected, but the name of the paragraph style in the panel. Thank you for that, Jarek!Uwe

View Article

Re: Has anyone tried using a JavaScript External Library with 64bit InDesign?

google is your friend: http://blogs.msdn.com/b/tolong/archive/2007/03/21/use-visual-studio-to -build-64-bit-application.aspxhttp://msdn.microsoft.com/en-us/library/9yb4317s(v=vs.80).aspx

View Article

Re: Find selected paragraph style in the paragraph style panel

Thanks. I'll give that a shot.

View Article


Re: Find selected paragraph style in the paragraph style panel

Thanks guys. Appreciate the responses. There are a few things here i can learn from. I'll mess around with them.

View Article

Re: Copy Files alongwith Folders

Just change the first line to choose the correct folders. copyFolder(new Folder("C:/Source Folder"), new Folder("C:/Destination Folder"));   function copyFolder(sourceFolder, destinationFolder) {...

View Article

Re: InDesign library: How is this possible?

suripappu, I'm not looking for a simple count of libraries. I'm trying to determine whether a specific library (filename: Bob.indl) is currently open. I had thought that checking .isValid would do the...

View Article


Re: InDesign library: How is this possible?

John, thanks for the tip about var==true. I think sometimes I test for var==false, so I have a bad habit But I don't get the idea of your snippet. What does  if (app.libraries &&...

View Article


Re: InDesign library: How is this possible?

John, thanks for the tip about var==true. I think sometimes I test for var==false, so I have a bad habitIndeed, you're better off with if (!var) ... in that case. But I don't get the idea of your...

View Article

Re: InDesign library: How is this possible?

Well,  app.libraries.itemByName("nonesuch.indl").isValid; returns a nice, neat false if that library isn't open.  But I get the gist of it. My real problem comes in the next step. If the library...

View Article

Re: EPUB - not able to add cover images

Hi Praveen, I’m not a scripter, but it seems, that only the full path with ":" instead of "/" is honored on a Mac?! Steps to reproduce: 1. Import your image on a page in InDesign and select it2....

View Article

Re: Copy Files alongwith Folders

Really helpfull dln385, Thanks so much for your inpurt to meet my request. I shall be checking withing an hour and let you know if any doubt arouses. thanks you so much..

View Article


JS: app.modalState?

app has a property modalState (omv help: "If true, a modal dialog or alert is active."). You'd think that something like this should work: if (app.modalState){   // xyz} But, like any other code, it...

View Article

Re: Copy Files alongwith Folders

superb dln385,Really helpfull dln385, Can i know, any reference links for creating these kind of complicated scripts. Would be greatfull to you, if i have the reference. thanks so much for the stuff....

View Article


Re: JS: app.modalState?

Well, as an idea, perhaps it's worth experimenting with running the script from a different script engine -- put InDesign into a modal state, and then run another script that can kind of ping InDesign...

View Article

Re: JS: app.modalState?

Hello Peter, in my experience, this only works with some InDesign own UI dialogs, such as »Print ...« or »Document Setup ...« It doesn't works with »Save as ...« or »Place ...« and so on or Script UI....

View Article


Re: Copy Files alongwith Folders

ExtendScript is mostly JavaScript. First learn JavaScript. Google Chrome's JavaScript Console: In Google Chome, pressing Ctrl + Shift + J will open an interactive JavaScript interpreter. Use...

View Article

Re: FindChangeByList Applescript, only runs first query

I've ditched the AS version of this in favor of the .jsx one. It works beautifully, but no matter how I ever formatted the AS queries, I could never get it to run.  There's a handy wonderful free...

View Article

Re: JS: app.modalState?

Thanks, Ariel, Roland. So modalState works only with InDesign's dialogs, not with those that use the operatiing system (Open, Save, etc.). Thanks for pointing that out. BridgeTalk probably won't work...

View Article
Browsing all 37788 articles
Browse latest View live