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

Ignore pasteboard items

New Here ,
Dec 04, 2015 Dec 04, 2015

Copy link to clipboard

Copied

I work with a vendor that has automated exporting pages as PDFs out of InDesign.

Unfortunately, by design, their software will not export a page if there are items on the pasteboard that contain broken links or missing fonts.  It marks the export as failed.

According to my contact with this company, they are unable to ignore pasteboard items during the export.

I am fairly sure that pasteboard items can be ignored, but want to get feedback from this board before pursuing the matter further.

I even found the script below which is supposed to perform this function.

The script is running on a Mac using IDCS5.5.  Not sure if it's AppleScript or JS as it's been compiled and protected.

Any input?

Thanks!

app.findTextPreferences = NothingEnum.nothing;

app.changeTextPreferences = NothingEnum.nothing

app.findTextPreferences.appliedParagraphStyle = "sajeev";

found = app.activeDocument.findText();

for(var i=0; i<found.length; i++)

{

    if(found.parentTextFrames[0].parentPage != null)

    {

        found.select();

        alert("Your further code process goes here...")

    }

}

app.findTextPreferences = NothingEnum.nothing;

app.changeTextPreferences = NothingEnum.nothing

TOPICS
Scripting

Views

327

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
Advisor ,
Dec 04, 2015 Dec 04, 2015

Copy link to clipboard

Copied

LATEST

Here you go: Indiscripts :: Clean up your Pasteboard!
Simply clear all items on the pasteboard before sending the files to the vendor.

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