How to check if a link located in a folder called links next to the document?

How to check if a link located in a folder called links next to the document?

myDocument var = app.activeDocument;

for (var myCounter = 0; myCounter < myDocument.allGraphics.length; ++ myCounter)

{

var myGraphic = myDocument.allGraphics [myCounter];

If (myGraphic.itemLink.status! = LinkStatus.linkMissing)

{

If (myGraphic.itemLink.filePath is outside the folder 'Links' which lie next to this document)

{

}

}

}

Main();

function Main() {
    var i, link,
    doc = app.activeDocument,
    linksPath = doc.filePath.fsName + "\\Links",
    links = doc.links;

    for (var i = 0; i < links.length; i++) {
        link = links[i];
        if(link.status != LinkStatus.linkMissing) {
            if (File(link.filePath).parent.fsName === linksPath) {
                $.writeln(i + " - " + link.name + " - is inside 'Links' folder");
            }
            else {
                $.writeln(i + " - " + link.name + " - is outside 'Links' folder");
            }
        }
    }
}

Tags: InDesign

Similar Questions

  • How to check my internet speed in windows 7? can you tell me the steps?

    How to check my internet speed in windows 7? can you tell me the steps?

    There are many sites to test bandwidth speed, Speedtest.net is one of them:

    http://www.Speedtest.NET/

  • How can I add a link to a Pages document I want to export to PDF?

    I want to add links to various web sites in a Pages 5.6.2 document (2573) I export and publish to PDF on my web site. How to go about creating a hyperlink in this version of Pages?  the old version of Pages contained an "Inspector" who allowed me to easily link the document to any web site. It also allowed me to insert the needed pages in my document. Now he just give me 'Section' leaves as if I complex page layouts instead of writing fiction (mysteries). I use a MAC Mini (purchased before 2013) computer with 500 megabits of memory and plenty of ram. My hard drive is 1.5 gigabites. My IOS is Yosemite 8.6.2.

    Hi twa.

    Menu > edit > Sustitutions > tick Smart links.

    Type or paste a link.

    Press ENTER to create the link.

    Print or export to PDF.

    Kind regards

    Ian.

  • Add a link to open the document

    Hello

    How to add a link to open a document in the same browser.

    Hello

    Run the following code

    
    
      
      
        
          
            
          
        
      
    
    

    It will open the site of oracle in the same browser

    Thank you
    Prateek

  • In a calendar of events how can APEX 5.0, I show an image (png or gif) next to the text of the event

    I use APEX 5.0 with theme 42 when I created a calendar of events using a view. When I try to add an image to display with the text of the event, the path of the image is displayed with the text of the event instead of the image next to the text.

    Appearance of the image is conditional and added in my Select statement.

    Select the YEAR

    FILE_NBR,

    Decode (COMMISH_ATTEND, 'YES,' ',' < img src = #WORKSPACE_IMAGES #"ALPHA.) PNG "height = width = 10px 10px / > '). EVENT_NAME |  as EVENT_NAME,.

    CASE

    When CONFIRM_DATETIME is null then: "apex-cal-yellow."

    When CONFIRM_DATETIME is not null then 'apex-cal-lime.

    end as css_class,

    ASSETS

    of EVENTS_V

    The calendar of events returns the image with an unescaped tag.

    Event Cal.PNG

    How can I change the "Display column" attribute by default to allow an image to display?

    Thank you

    Ron

    CDInoon wrote:

    I use APEX 5.0 with theme 42 when I created a calendar of events using a view. When I try to add an image to display with the text of the event, the path of the image is displayed with the text of the event instead of the image next to the text.

    Appearance of the image is conditional and added in my Select statement.

    Select the YEAR

    FILE_NBR,

    Decode (COMMISH_ATTEND, 'YES,' ',' '). EVENT_NAME |  as EVENT_NAME,.

    CASE

    When CONFIRM_DATETIME is null then: "apex-cal-yellow."

    When CONFIRM_DATETIME is not null then 'apex-cal-lime.

    end as css_class,

    ASSETS

    of EVENTS_V

    The calendar of events returns the image with an unescaped tag.

    How can I change the "Display column" attribute by default to allow an image to display?

    There is a security setting of region to escape special characters , but he affecting the value No is having no effect, that may be a bug.

    As a solution, rather than include the image in the application supplement, use your conditional logic to add another class for the event, with a dynamic action that adds the image to the events so that class.

    Source of the region

    select
        year
      , file_nbr
      ,    nvl2(confirm_datetime, 'apex-cal-lime ', 'apex-cal-yellow ')
        || case commish_attend
            when 'YES' then null
            else 'alpha'
          end css_class
      , active
    from
        events_v
    

    Dynamic action

    Event: After refresh

    Selection type: Region

    Region:

    Action: Run the JavaScript Code

    Fire on Page load: Yes

    Code:

    $('.alpha span.fc-title')
      .before(' ');
    
  • On the design of my phone, how can I make a link to access the my desktop version?

    I'm doing my site to phone for the first time.  My site is very informative, but I don't want that for the phone, of course.  How to make a 'click here' if someone wants to see the full version of office?

    Hello

    Please check this thread

    Re: The link to main office site mobile site?

  • How to make an anchor link also refresh the page?

    I'm trying new things with some widgets (compositions) and I would like to make some anchor links also refresh my page (on the mobile version of my site). I tried to put the link in full instead of simply select my anchor (#myanchor .com/mypage) but who works as the first (perhaps because the user is already on .com / my page #myanchor?)

    A bit of googling found me a way to do this:

    window.location.href = 'mypagetoreload.htm#jumptosection1';
    window.location.reload(true);

    but I don't know how to use it in Muse...

    Thanks in advance!

    OK, I think I understand what you're trying to do. You can use the scroll for this movement options as then your page reload. Feel free to post a link or send me a link in private message so I can see if I'm wrong in what I believe you are trying to do. But I'm sure if I understand that by using the movement of scrolling options should stop for you.

  • How to make a fecebook link content with the content of the site muse?

    How should automatically (dynamically) change facebook content by changing the content of web site?

    Take a www.musewidgets.com and Facebook's search to see if there is any widgets it that do what you need. If this is not the case, can you give more details on what you are trying to do exactly?

  • JS to check if a link is in the page or PB

    JS need to check if the connection object is within the page or pasteboard.

    Thank you very much.

    Hi SNAF,.

    Please try the js code below works in InDesign CS4.

    var myDoc = app.activeDocument;
    for (var i=0; i
    

    THX

    csm_phil

  • How I can pin a link URL from the taskbar?

    I can make a link to a Web site on my desktop, but I can't PIN to the taskbar. Why?

    Also, when I click on the link, it will open in the next tab in the Firefox window. Is it possible to always open in a specific window?

    You can't pin a link to the taskbar. But you can place the link in the bookmarks toolbar.

  • How to resize images that are located in a folder?

    I already have several photos in a folder and I want to resize them and save the resized file as an attachment by e-mail.  Can you help me?

    In Windows Live Photo Gallery... Select (highlight) an or
    more inches and left, click the e-mail button in the toolbar...
    The "Attach a file" dialog should open and you can choose
    one size by opening the drop window "size of the picture.

    Also... in Windows Live Photo Gallery... Right click on one or more
    selected inches... Choose... "Resize" in the menu. Choose
    one size, navigate to a folder to save in left click the ' resize
    Save "button. (I suggest that you save the resized pictures
    in a new folder to prevent the replacement (replacement) the originals)

    More info...

    Windows Vista - tips for emailing photos
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-e-mailing-photos

  • view next to the documents... How to do that with the new CD?

    With the recent upgrade, I can view documents side by side... How to do that with the new CD? Thank you!

    Hi gregl36778306,

    You can open PDF files in different tabs and see them next.

    To do this, go in "Edit > Preferences > general" and check "open documents as new tabs.." option.

    Kind regards

    Ana Maria

  • Change specific link path between the documents.

    I write a simple script to change the path for a certain number of links across multiple documents. I get an error "filePath is a read-only property" for the 7 line, even if I'm not trying to rewrite it directly. Any help would be greatly appreciated. Thank you!

    var myDocument = app.activeDocument;
    var oldPath = "G:\\Users\\My PC\\Desktop\\";
    var newPath = "G:\\Users\\My PC\\Desktop\\New Folder\\";
    for (a=0; a < myDocument.links.length; a++) {
        var currentLink = myDocument.links[a];
        var linkName = currentLink.name;
        if (currentLink.filePath = oldPath) {
            var myNewFile = new File(newPath + linkName);
            currentLink.relink(myNewFile);
            };
        }; 
    

    Hi try Cambi code below

    myDocument var = app.activeDocument;

    oldPath var = new File ("C:\\");

    newPath = "E:\\New folder\\"; var

    for (a = 0;< mydocument.links.length;="" a++)="">

    var currentLink = myDocument.links [a];

    var Nom_de_lien = currentLink.name;

    var linkPath = new queue (currentLink.filePath);

    If ((linkPath.parent.toString () == oldPath) {}

    var myNewFile = new File (newPath + linkName);

    currentLink.relink (myNewFile);

    };

    };

  • How can I open a new folder to key strokes in the documents in Finder?

    When I use Finder to save a document, I select a folder advertising can then create another folder in the existing or parallel to it.  But even if both the 'new file' and 'save' buttons exist in the menu, they fall under the threshold of my screen and are not accessible.  Œuvres command S to save the document, but the Shift N command does not create a new folder - he said I went "icognito".  Not what I want.

    Can you help me?

    Keyboard shortcuts in OS X

    Combinations of keys start for MacIntel

    Mac keyboard shortcuts

  • How can I do a [retractable menu tab [with folding submenu items]] (accordion in the accordion)?

    Here's what I have in the format of business catalyst:

    http://hickoriesdraft.BusinessCatalyst.com/index.html

    I like the elegance of the submenu accordion elements, but I want the entire stack of elements menu collapse in a header 'MENU' (there is a page of mobile format).

    Please please someone tell me that there is a way to do it. It seems so simple, but my attempts, Muse won't let me embed a menu accordion in a menu accordion. It seems it could be such a simple thing to implement.

    Advice would be greatly appreciated.

    Replied to your previous post.

    Thank you

    Sanjit

Maybe you are looking for

  • My laptop does not recognize the HDMI cable

    I don't know if I posted this properly, but I would really like for you to tell me a little more about HP pavilion 1 TB of hard drives. I bought a HP Pavilion processor with ADM 1 to less than a year ago. There was whisky spilled on it a couple of mo

  • Satellite P200D - will not read the Memory Stick Pro duo adapter

    Kia OraMy Satellite P200 will not read my Memory Stick Pro Duo adapter, both brand Sony. I am running Vista Home Premium. SD cards are read OK.The adapter works fine in my PC running XP Home premium. I tried two cards different pro duo. Help, please!

  • Update to 7.1.2 6100XVS now, it won't initialize or join a pool

    Hi, I have two PS6100XVS and two PS6500 (with 3 TB and 2 TB hard drives) the 6100XVS has 600x15k 17-7 400xSSD readers. A pool is configured with a 6100XVS and a 6500 2 TB disks, this pool has 6 x firmware and was then upgraded to 7.1.2 it works corre

  • blue screen of death wake mode 'sleep' how to fix?

    I get a blue screen of death to the awakening of fashion 'sleep' how to fix? ==================================================Dump file: 040515-21762 - 01.dmpCrash time: 05/04/2015 14:16:26Bug Check String: IRQL_NOT_LESS_OR_EQUALBug check code: 0x00

  • EAP - TLS uses WEP?

    Why do you need to configure WEP as a data encryption when you use EAP - TLS? 'Ensure that the data encryption is set to WEP. You cannot use WPA2? Gr. Remco