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

Indesig - character count export as metadata

New Here ,
Mar 12, 2017 Mar 12, 2017

Copy link to clipboard

Copied

Hi,

I'm working at a company which business is Enterprise Content Management. One of our clients is a publishing company and they are using InDesign as their publishing software.

Now they've decided for a Document Management System to optimize the document management. We would like to somehow integrate InDesign and the DMS. Here is the case:

The payments to the authors are made based on number of characters in the article. We need to count the characters for each article and somehow use the Article ID and character number as metadata, which we will then import into DMS. Has anyone any experience on how to do that?

Kind regards, Uros

Views

3.9K

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

correct answers 1 Correct answer

Community Expert , Mar 12, 2017 Mar 12, 2017

Here's an example using AppleScript (OSX only). You would put a copy of this in your startup scripts folder (/Applications/Adobe InDesign CC 2014/Scripts/startup scripts) and the document name and character count would be inserted in the file info every time the file is saved. If you are not using OSX ask over in the scripting forum for a JS translation

tell application "Adobe InDesign CC 2014"

    make event listener with properties {event type:"afterSave", handler:updateAll}

end tell

on updateAll(

...

Votes

Translate

Translate
Community Expert ,
Mar 12, 2017 Mar 12, 2017

Copy link to clipboard

Copied

Metadata content can be scripted. Startup scripts can be triggered at open, close, or save, so it would be easy to insert the character count into the document metadata via a script

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 Expert ,
Mar 12, 2017 Mar 12, 2017

Copy link to clipboard

Copied

Here's an example using AppleScript (OSX only). You would put a copy of this in your startup scripts folder (/Applications/Adobe InDesign CC 2014/Scripts/startup scripts) and the document name and character count would be inserted in the file info every time the file is saved. If you are not using OSX ask over in the scripting forum for a JS translation

tell application "Adobe InDesign CC 2014"

    make event listener with properties {event type:"afterSave", handler:updateAll}

end tell

on updateAll()

    tell application "Adobe InDesign CC 2014"

        tell active document

            set m to "Document Character Count= " & (count of every character of every story)

            set properties of metadata preferences to {document title:name, description:m}

        end tell

    end tell

end updateAll

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
New Here ,
Mar 13, 2017 Mar 13, 2017

Copy link to clipboard

Copied

LATEST

Thank you, Rob

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