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

Exclude master pages & Pasteboard

Community Beginner ,
Sep 09, 2013 Sep 09, 2013

Copy link to clipboard

Copied

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

Views

715

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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