Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Exclude master pages & Pasteboard

Community Beginner ,
Sep 09, 2013 Sep 09, 2013

Hello

I have a script to get every text frame on an active document and export all of these as seperate txt files.

The only thing is i have text frames on the master pages and sometimes on the pasteboard that i dont want to export as txt files.

so how do i exclue master pages and pasteboard

Thanks

TOPICS
Scripting
818
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 09, 2013 Sep 09, 2013

Assuming you're using a relatively recent version of InDesign, check the parentPage property of your text frames. If it is null then your text frame is on the pasteboard, if not, then check its parent. If that's a MasterSpread, your text frame is on a master.

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 09, 2013 Sep 09, 2013
LATEST

Sorry forgot to put its cs5 and its a modified version of the cs5 exportallstories script. Is there a way in the counter for stories to exclude text frames on the master pages?

Sent from my iPhone

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines