• 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
IND question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IND question


  • Subject: IND question
  • From: CYB <email@hidden>
  • Date: Wed, 18 Mar 2015 17:10:17 -0600
  • Thread-topic: IND question

Hi all, I have quite some time without scripting and now I’m trying to make a simple script and I can’t find the error and I think is very simple.
No matter in which page I start it, the script fails at 2nd page and I can not find why. So if you help me! TIA

tell application "Adobe InDesign CS5"

set EsteDoc to document 1

tell EsteDoc

tell view preferences

set ruler origin to page origin

end tell

set Folios to "262"

repeat with i from 2 to 33

set Pagina to name of page i

if (Pagina mod 2) = 0 then

set GB to {20, 20, 20, 20}

my CrearFolio(Pagina, GB, Folios)

set Folios to Folios - 1

else --página par

set GB to {10, 10, 10, 10}

my CrearFolio(Pagina, GB, Folios)

set Folios to Folios - 1

end if

end repeat

end tell

end tell


on CrearFolio(Pagina, GB, Folios)

tell application "Adobe InDesign CS5"

set EsteDoc to document 1

tell EsteDoc

set TFolio to make text frame at page Pagina with properties {geometric bounds:GB, contents:Folios, item layer:layer 1, name:"#folios"}

--tell TFolio to set applied paragraph style of paragraphs of it to "folios"

end tell

end tell

end CrearFolio


Carlos Ysunza B.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: IND question
      • From: Shane Stanley <email@hidden>
    • FW: IND question
      • From: CYB <email@hidden>
  • Prev by Date: Re: Timeout Not Working As Expected
  • Next by Date: FW: IND question
  • Previous by thread: Re: Kind of OT, Kind of Not
  • Next by thread: FW: IND question
  • Index(es):
    • Date
    • Thread