• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Indesign CS or CS2: How to decrease point size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indesign CS or CS2: How to decrease point size?


  • Subject: Re: Indesign CS or CS2: How to decrease point size?
  • From: "EU - Luca Pozzato" <email@hidden>
  • Date: Wed, 25 May 2005 04:23:44 +0200

hi Patrik,

with a little effort you may try System Events:


tell application "InDesign CS"
	activate
	-- you must select the content of a text box of course
	try
		tell application "System Events"
			tell process "InDesign CS"
				repeat with i from 1 to 10-- or until no reflow (you have to figure out how)
					keystroke "." using {shift down, command down}-- I customized the
shortcut  to make it work

				end repeat
			end tell
		end tell
	on error
		return false
	end try
end tell


Ciao

Luca

-----Original Message-----
From: "Patrik B." <email@hidden>
To: email@hidden
Date: Tue, 24 May 2005 10:52:08 -0700
Subject: Indesign CS or CS2: How to decrease point size?

> Hi,
>
> I am trying to script Indesign CS or CS2 to automatically copyfit a
> story.
> What I would do usually by hand is select all the text in a story and
> use my
> arrow keys to decrease the point size and leading of all the text at
> once.
> It works even if the text contains different sizes and it sizes
> everything
> according to my increment setting. I.e. A headline at 11pt gets becomes
> 10
> and body copy at 9 becomes 8pt. All values change - the increment.
>
> When looking through the scripting dictionaries I could not find this
> feature only the increment setting was mentioned there. Any idea what
> it is
> called? Or whether this exists?
>
> You might now think why don't I just read the point size and minus it
> until
> no overflow. Well that sets all my copy at a certain point size so I
> don't
> want to go that route. Reading Character level point size and then
> minusing
> that is also way to slow and time consuming. I should just be able to
> tell
> Indesign to run decrease point size until no overflow, whatever it is
> (the
> initial point size should not need to be defined only the amount of
> times to
> run decrease or increase) till no overflow exists. Manually this is
> really
> easy it is just a push of a button a couple of times until I can see
> that it
> fits. Now how do you do this via applescript?
>
> Best, Patrik
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> ografica.it
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Indesign CS or CS2: How to decrease point size? (From: "Patrik B." <email@hidden>)

  • Prev by Date: Re: Folder actions steal UI foces
  • Next by Date: Re: Fast KeyChain Functions...
  • Previous by thread: Re: Indesign CS or CS2: How to decrease point size?
  • Next by thread: Activate a feature via shortcut key event (as opposed to direct scripting)
  • Index(es):
    • Date
    • Thread