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

Re: Help in Applescript Mail option

I didn't test but don't you just need to test fileList's length/count before you loop the list…? onrun          setmyFolderto "/Users/wander5/Desktop/QuarkRescueFolder"          set {TID, text item...

View Article


Re: window.bounds gives weird results

It turned out that moving to 0,0 created problems with the x-coordinate, but since those were the only x-coordinate problems I ever saw, I decided to focus only on the y-coordinate. In this version of...

View Article


Re: window.bounds gives weird results

I should mention that switching the Application Bar on and off changes the value of yDelta from 38 to 3 in my current set up. This is true whether the Application Bar is docked or not.

View Article

Modify width of rectangle based on page number in InDesign via Javascript

I have a rectangle called `pageBar` on my master page !   I would like to create a script that will automatically resize the width of the rectangle based on the page number.  Something like : `width =...

View Article

Re: window.bounds gives weird results

Hi dave. I'm still curious if, using application frame, the problem still exists. (app.windows[0].bounds should return the app frame's position). If so, then the problem resides somwhere deeper, most...

View Article


Re: window.bounds gives weird results

The application frame makes things worse. It doesn't flip-flop, it wanders across a small area of the screen. Look at this from the JS Console: app.layoutWindows[0].bounds =...

View Article

Re: Modify width of rectangle based on page number in InDesign via Javascript

What your script needs to do is walk through the document pages, look for the rectangle and essentially do the calculation you've written to size it. To size it on any particular page, you'll need to...

View Article

Re: Modify width of rectangle based on page number in InDesign via Javascript

Hi DaveSofTypefi, Thanks for your answer !  Yeah the document is single sided. I would like to set the width of the rectangle like this X * (page Number / total number of pages)...  Example :  Page 1 :...

View Article


Re: Modify width of rectangle based on page number in InDesign via Javascript

What you say makes sense, but it doesn't answer my question: do you want it to get wider to the right, to the left or from the middle? Are you trying to write this yourself and need guidance or are you...

View Article


Re: Modify width of rectangle based on page number in InDesign via Javascript

I would like to get it wider to the right !  In fact, I wanted to write this myself (as I know javascript basics) and I would like some guidance. I find, InDesign Scripts Docs to be very confusing....

View Article

Image may be NSFW.
Clik here to view.

Re: Deleting a palette form a Session Targetengine

Hi Marc, I have spent some time testing the script.I made some changes for the purpose see below. Now ignoring the CC crash problem which I shall place later today on...

View Article

Re: ID CC SUI - Insane Daft Crazy Cuckoo Stupid Useless Idiotic

Marc, Thanks works 100% super. I just added the line gp.addEventListener('click', '{alert("Well done!")}'); before the gp.watch line to finish it off. I never knew about the problems with the...

View Article

Re: ID CC SUI - Insane Daft Crazy Cuckoo Stupid Useless Idiotic

@Harbs another one to send off to the engineers // Sript by Marc CRASH by Trevor #targetengine ManageSingletonPalette  $.UserInterface || ($.UserInterface = function F(/*-1=destroy 0=restore...

View Article


Re: ID CC SUI - Insane Daft Crazy Cuckoo Stupid Useless Idiotic

See http://forums.adobe.com/message/5482704#5482704 for background on the above post

View Article

Re: If text box content is null/empty, how to identify that?

Hi ,I need one help from you so let me give an overview of what I am looking for and request you to give a solution if possibleProblem Summary: I have an InDesign Template file which is used for a...

View Article


Re: Modify width of rectangle based on page number in InDesign via Javascript

Hi Jacques, This will do it. for (var n = 1; n < 5; n++) app.activeDocument.pages[n-1].rectangles.add({fillColor: "Black", geometricBounds: [10,0, 20, (n*100) + "px" ]});  Trevor

View Article

How to set InDesign Page number as XML attribute

Hi All, I need one help from you guys, so let me give an overview of what I am looking for and request you to give a solution Problem Summary:I have an InDesign Template file which is used for a...

View Article


Re: Modify width of rectangle based on page number in InDesign via Javascript

Hi Trevor,  I did it like that... var myDocument = app.activeDocument, myPages = myDocument.pages, totalPages = myPages.length, currentPage = 1; function getPercent(a) {     b = (a / totalPages);...

View Article

Re: Modify width of rectangle based on page number in InDesign via Javascript

That's ok, For a different approach, for speed and simplicity you could have used.var myProgressBar = app.activeDocument.pages.everyItem().rectangles.add({fillColor: "Black", geometricBounds: [0,0,5,...

View Article

Re: Modify width of rectangle based on page number in InDesign via Javascript

While I slept, other people have posted solutions that don't actually do what you asked (they ignore the master page item and just add new items). So let's look at the problem you actually posed. I'll...

View Article
Browsing all 37788 articles
Browse latest View live


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