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

Way to add to package assets using ExtendScript?

Enthusiast ,
Sep 10, 2018 Sep 10, 2018

Copy link to clipboard

Copied

Does anyone know of a way to add assets to what gets packaged when the user selects File > Package...?

I know the Overlays panel does it with web assets and image sequences.

I'm wondering if anyone has any ideas on how to do this with ES (not C++), if possible.

TOPICS
Scripting

Views

703

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 10, 2018 Sep 10, 2018

Copy link to clipboard

Copied

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
Enthusiast ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

Thanks, but that's just the package prefs.

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 ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

Hi Justin. If by ES you mean ExtendScript and InDesign's Package for print dialog, then the answer is 'no'. You could do a custom interface that mimics InDesign's export dialog and add assets to it.

Peter

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
Enthusiast ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

Thanks, Peter. I was hoping that I could do something so that when an end user packages, it could carry the files on to another person.

I'm thinking there must be some hacky way to do this, putting something into the Links panel (maybe via a custom master page), or using some undocumented call normally referenced by something else (like the Overlays panel, which simply uses Labels).

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 ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

Hi Justin,

are you using the Overlays Panel in this process?

The overlays insert labels into page items, documents and the app itself.

Maybe you can exploit the key and value references for this kind of  ( web ?) assets to assemble them with an event listening process before or after doing a package.

Example with Image Sequence Overlay:

OverlayImageSequence-1.PNG

Excerpt of the XML of an IDMS file of the selected graphic frame above:

<Label>

    <KeyValuePair Key="kAdobeDPSInteractivity_Type" Value="360" />

    <KeyValuePair Key="kAdobeDPSInteractivity_AssetList" Value="F:\KNOW-HOW\GraphicSamples" />

    <KeyValuePair Key="kAdobeDPSInteractivity_AutoStart" Value="false" />

    <KeyValuePair Key="kAdobeDPSInteractivity_AutoStartDelay" Value="0" />

    <KeyValuePair Key="kAdobeDPSInteractivity_FramesPerSecond" Value="16" />

    <KeyValuePair Key="kAdobeDPSInteractivity_LoopCount" Value="1" />

    <KeyValuePair Key="kAdobeDPSInteractivity_AutoPlayStopAtLast" Value="false" />

    <KeyValuePair Key="kAdobeDPSInteractivity_TapEnabled" Value="false" />

    <KeyValuePair Key="kAdobeDPSInteractivity_SwipeEnabled" Value="true" />

    <KeyValuePair Key="kAdobeDPSInteractivity_CircularViewEnabled" Value="true" />

    <KeyValuePair Key="kAdobeDPSInteractivity_ReverseImageOrder" Value="false" />

</Label>

With that you would be able to package all "sequentiable images" from the exposed path.

Of course you have to know what kind of images are "sequentiable". The overlay will not tell that explicitely.

Regards,
Uwe

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
Enthusiast ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

Hi Uwe,

Thanks for that research. That's one of the specific instances that I was thinking of.

Curious if the entire folder would be copied, or just the images inside.

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 ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

Hi Justin,

ideally only the images that work as "sequential images". Or?

Hm. Perhaps not. Will depend on the user's workflow what's best.

Perhaps there are "hidden" images in subfolders the user currently does not want to add to a sequence, but later may add.
Things like that…

In any case you have to change the value of the key "kAdobeDPSInteractivity_AssetList" after packaging to a new path.

Best,
Uwe

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
Enthusiast ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

LATEST

Thanks, Uwe. Something to think about.

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