-
1. Re: Increase/Decrease inset spacing
[Jongware] Nov 22, 2014 3:06 PM (in response to Cris Ider)What script? And how would that be faster than just changing the values in the Control Bar? This shows, or at least can show (if enabled), the insets for a selected text frame.
-
2. Re: Increase/Decrease inset spacing
Cris Ider Nov 23, 2014 12:56 AM (in response to [Jongware])But Indent # Inset Spacing. Apply indent on Box with 2 columns and aplly Inset Space on 2 columns and you will see it´s not the same.
I tried set my Indesign CS5 to show Inset Spacing on toolbar but I couldn´t make it.
Thank you anwyay!
-
3. Re: Increase/Decrease inset spacing
Foxy Ford Nov 27, 2014 7:23 AM (in response to Cris Ider)Hi, Cris!
Sorry, but a long time ago I posted this asking. Unfortunately I had no satisfaction. Someone told me it´s not possible so he gave me a script to increase/decrease indents pragraph. You are right about Inset spacing # Indent.
Sorry!
-
4. Re: Increase/Decrease inset spacing
Senthilvel S Nov 28, 2014 1:52 AM (in response to Cris Ider)Hi Cris,
Try below code:
For Increase:
var myTFInsPoints=myTextFrame.textFramePreferences.insetSpacing;
myTextFrame.textFramePreferences.insetSpacing=[myTFInsPoints[0]+1,myTFInsPoints[1]+1,myTFI nsPoints[2]+1,myTFInsPoints[3]+1];
For Decrease:
var myTFInsPoints=myTextFrame.textFramePreferences.insetSpacing;
myTextFrame.textFramePreferences.insetSpacing=[myTFInsPoints[0]-1,myTFInsPoints[1]-1,myTFI nsPoints[2]-1,myTFInsPoints[3]-1];
Regards,
Senthilvel S
-
-
6. Re: Increase/Decrease inset spacing
Obi-wan Kenobi Nov 28, 2014 1:04 PM (in response to Cris Ider)Hi,
The real problem is that "myTextFrame" is undefined..
-
7. Re: Re: Increase/Decrease inset spacing
vandy88 Nov 28, 2014 5:54 PM (in response to Obi-wan Kenobi)For Increase:
var myTFInsPoints=myTextFrame.textFramePreferences.insetSpacing;
myTextFrame.textFramePreferences.insetSpacing=[myTFInsPoints[0]+1,myTFInsPoints[1]+1,myTFI nsPoints[2]+1,myTFInsPoints[3]+1];
`
Remove space from "myTFI nsPoints[2]"
Try this,
var myTextFrame = app.selection[0];//Select any textframe //For Increase: var myTFInsPoints=myTextFrame.textFramePreferences.insetSpacing; myTextFrame.textFramePreferences.insetSpacing=[myTFInsPoints[0]+1,myTFInsPoints[1]+1,myTFInsPoints[2]+1,myTFInsPoints[3]+1]; //For Decrease: var myTFInsPoints=myTextFrame.textFramePreferences.insetSpacing; myTextFrame.textFramePreferences.insetSpacing=[myTFInsPoints[0]-1,myTFInsPoints[1]-1,myTFInsPoints[2]-1,myTFInsPoints[3]-1];
Vandy




