Highlighted

[Other]-Unable to unzip the XD file by command lines.

New Here ,
Mar 26, 2020

Copy link to clipboard

Copied

Hello everyone. 

 

Disclaimer: I'm aware that I'm trying to do something really odd... but... hey. I want to get a command line script to do some color switching on .xd files (convert from 2 themes), since XD doesn't allow for that yet. 

 

My naive plan was simple: unzip the xd, do some bash script surgery on the files, zip again and success! However, I can't unzip the xd file and zip it without getting the error 86. There's something I'm missing on the way I'm doing things. I tried to control the file orders, what got compressed and whatnot, but I'm missing some fundamental detail

 

Bellow are the unzip -vl of the 2 files, where I just unzipped and zipped. The first one opens in XD, the other gives the error 86

 

Any tips would be greatly appreciated!

 

Thanks

 

 

 

➜  1 unzip -lv SimpleFile.xd
Archive:  SimpleFile.xd
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
      45  Stored       45   0% 03-26-2020 13:59 5e8991ee  mimetype
    3218  Defl:S     1220  62% 03-26-2020 13:59 0a48f5af  manifest
    3556  Stored     3556   0% 03-26-2020 13:59 3d21758f  META-INF/metadata.xml
    1976  Defl:S      810  59% 03-26-2020 13:59 6473a09e  artwork/artboard-82910d0b-9ca3-4a34-aa87-30db5cbc3c01/graphics/graphicContent.agc
     157  Defl:S       92  41% 03-26-2020 13:59 a2279cd9  artwork/pasteboard/graphics/graphicContent.agc
      18  Defl:S       20 -11% 03-26-2020 13:59 8b56a1ef  interactions/interactions.json
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  preview.png
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  renditions/image-1920-1080.png
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  renditions/image-512-288.png
     370  Defl:S      262  29% 03-26-2020 13:59 af0af38d  resources/graphics/graphicContent.agc
      35  Defl:S       37  -6% 03-26-2020 13:59 756577e2  sharing/sharing.json
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  thumbnail.png
--------          -------  ---                            -------
   98753            95420   3%                            12 files


➜  1 unzip -lv SimpleFile_W.xd
Archive:  SimpleFile_W.xd
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
      45  Stored       45   0% 03-26-2020 13:59 5e8991ee  mimetype
    3218  Defl:F     1220  62% 03-26-2020 13:59 0a48f5af  manifest
    3556  Stored     3556   0% 03-26-2020 13:59 3d21758f  META-INF/metadata.xml
    1976  Defl:F      810  59% 03-26-2020 13:59 6473a09e  artwork/artboard-82910d0b-9ca3-4a34-aa87-30db5cbc3c01/graphics/graphicContent.agc
     157  Defl:F       92  41% 03-26-2020 13:59 a2279cd9  artwork/pasteboard/graphics/graphicContent.agc
      18  Stored       18   0% 03-26-2020 13:59 8b56a1ef  interactions/interactions.json
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  preview.png
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  renditions/image-1920-1080.png
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  renditions/image-512-288.png
     370  Defl:F      262  29% 03-26-2020 13:59 af0af38d  resources/graphics/graphicContent.agc
      35  Stored       35   0% 03-26-2020 13:59 756577e2  sharing/sharing.json
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  thumbnail.png
--------          -------  ---                            -------
   98753            95416   3%                            12 files

 

 

 

Hi there,

 

I would suggest submitting your query here: https://forums.adobexdplatform.com/ to the XD developer forum so that you can get the best help and assistance.

 

Thanks,

Harshika

TOPICS
How to

Views

77

Likes

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

[Other]-Unable to unzip the XD file by command lines.

New Here ,
Mar 26, 2020

Copy link to clipboard

Copied

Hello everyone. 

 

Disclaimer: I'm aware that I'm trying to do something really odd... but... hey. I want to get a command line script to do some color switching on .xd files (convert from 2 themes), since XD doesn't allow for that yet. 

 

My naive plan was simple: unzip the xd, do some bash script surgery on the files, zip again and success! However, I can't unzip the xd file and zip it without getting the error 86. There's something I'm missing on the way I'm doing things. I tried to control the file orders, what got compressed and whatnot, but I'm missing some fundamental detail

 

Bellow are the unzip -vl of the 2 files, where I just unzipped and zipped. The first one opens in XD, the other gives the error 86

 

Any tips would be greatly appreciated!

 

Thanks

 

 

 

➜  1 unzip -lv SimpleFile.xd
Archive:  SimpleFile.xd
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
      45  Stored       45   0% 03-26-2020 13:59 5e8991ee  mimetype
    3218  Defl:S     1220  62% 03-26-2020 13:59 0a48f5af  manifest
    3556  Stored     3556   0% 03-26-2020 13:59 3d21758f  META-INF/metadata.xml
    1976  Defl:S      810  59% 03-26-2020 13:59 6473a09e  artwork/artboard-82910d0b-9ca3-4a34-aa87-30db5cbc3c01/graphics/graphicContent.agc
     157  Defl:S       92  41% 03-26-2020 13:59 a2279cd9  artwork/pasteboard/graphics/graphicContent.agc
      18  Defl:S       20 -11% 03-26-2020 13:59 8b56a1ef  interactions/interactions.json
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  preview.png
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  renditions/image-1920-1080.png
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  renditions/image-512-288.png
     370  Defl:S      262  29% 03-26-2020 13:59 af0af38d  resources/graphics/graphicContent.agc
      35  Defl:S       37  -6% 03-26-2020 13:59 756577e2  sharing/sharing.json
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  thumbnail.png
--------          -------  ---                            -------
   98753            95420   3%                            12 files


➜  1 unzip -lv SimpleFile_W.xd
Archive:  SimpleFile_W.xd
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
      45  Stored       45   0% 03-26-2020 13:59 5e8991ee  mimetype
    3218  Defl:F     1220  62% 03-26-2020 13:59 0a48f5af  manifest
    3556  Stored     3556   0% 03-26-2020 13:59 3d21758f  META-INF/metadata.xml
    1976  Defl:F      810  59% 03-26-2020 13:59 6473a09e  artwork/artboard-82910d0b-9ca3-4a34-aa87-30db5cbc3c01/graphics/graphicContent.agc
     157  Defl:F       92  41% 03-26-2020 13:59 a2279cd9  artwork/pasteboard/graphics/graphicContent.agc
      18  Stored       18   0% 03-26-2020 13:59 8b56a1ef  interactions/interactions.json
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  preview.png
   41021  Stored    41021   0% 03-26-2020 13:59 1f14258c  renditions/image-1920-1080.png
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  renditions/image-512-288.png
     370  Defl:F      262  29% 03-26-2020 13:59 af0af38d  resources/graphics/graphicContent.agc
      35  Stored       35   0% 03-26-2020 13:59 756577e2  sharing/sharing.json
    3668  Stored     3668   0% 03-26-2020 13:59 aa082e85  thumbnail.png
--------          -------  ---                            -------
   98753            95416   3%                            12 files

 

 

 

Hi there,

 

I would suggest submitting your query here: https://forums.adobexdplatform.com/ to the XD developer forum so that you can get the best help and assistance.

 

Thanks,

Harshika

TOPICS
How to

Views

78

Likes

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
Mar 26, 2020 0
Adobe Employee ,
Mar 27, 2020

Copy link to clipboard

Copied

Hi there,

 

I would suggest submitting your query here: https://forums.adobexdplatform.com/ to the XD developer forum so that you can get the best help and assistance.

 

Thanks,

Harshika

Likes

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
Reply
Loading...
Mar 27, 2020 1
Kaapa00 LATEST
New Here ,
Mar 30, 2020

Copy link to clipboard

Copied

Thank you! Will do so!

Likes

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
Reply
Loading...
Mar 30, 2020 1