Skip to main content
Inspiring
April 18, 2023
Answered

Downloads/save all Unembed images from link panel

  • April 18, 2023
  • 1 reply
  • 540 views

Does anyone know the script for downloading/saving all images from the Link folder, images that still do not link with actual images?

 

Currently, we used the manual method to save those images. 

Link Panel -- Hamburger Menu -- Unembed Link -- No

 

Thanks!

 

This topic has been closed for replies.
Correct answer rob day

Hi @Shanpub , Try this:

 

var f = Folder.selectDialog("Select a folder");
var lks = app.documents[0].links;
for (var i = 0; i < lks.length; i++){
    if (lks[i].status == LinkStatus.LINK_EMBEDDED) {
        lks[i].unembed(f)
    } 
};  

1 reply

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
April 18, 2023

Hi @Shanpub , Try this:

 

var f = Folder.selectDialog("Select a folder");
var lks = app.documents[0].links;
for (var i = 0; i < lks.length; i++){
    if (lks[i].status == LinkStatus.LINK_EMBEDDED) {
        lks[i].unembed(f)
    } 
};  
ShanpubAuthor
Inspiring
April 18, 2023

@rob day Wow - thank you so much.