Convert [VB Script] link updated the script to CS to CS4

Hello

I have problems with my old VB script conversion to a CS4 version.

The part that updates the links in my document is no more compatible with CS4.

I know that CS4 manages files related differently than previous versions, but I find a way to make it compatible CS4.

My script does the following:

-Open InDesign

-Open the file

-update all links (these are +/-75 tagged text files)

-Save the file as EPS file

-close InDesign file without saving changes

-close the application InDesign

The script:

REM InDesign open and file

Set myInDesign = CreateObject ("InDesign.Application.CS4")

The value of myDocument = myInDesign.open("C:\files\InDesignDocument.indd",False)

REM update all links

For each link in myDocument.Links

link. Update

Next

Error resume next

REM, save the file as EPS

myInDesign.EPSExportPreferences.EPSColor = 1129142603

myDocument.Export "EPS","C:\export\InDesignDocument.eps".

REM, close the document without saving changes and quit InDesign

myDocument.Close 1852776480

myInDesign.Quit 1852776480

Y at - there someone who can help me with this?

Thanks in advance,

Bastiaan

in CS4 - you cannot update link - if she does not need to be updated, bug or feature

Try this:

error resume next

for a = myDocument.Links.Count to 1 step - 1

call the myDocument.Links.Item (a). Update

Next

on error goto 0

and - as in my example - don't use for each because there is bug - no more 255(256?) elements will be processed

Robin

www.adobescripts.co.UK

Tags: InDesign

Similar Questions

  • Standardize the links updated the

    I use CS on Windows 7.

    Is there a way to 'normalise' links changed without having to click on update on the GUI?

    I have done it in the past by doing a search and replace the IDML file. I would like to be able to change the status using ExtendScript since it takes awhile all convert to IDML, do the replacement and then convert INDD.

    Any suggestions on alternative methods are greatly appreciated. Thank you.

    Link.Update)

    Duh

  • Should I uninstall CS4 software before updating the NVIDIA driver and reinstall CS4 after?

    I just installed CS4 on Windows 7 and I get the message that I need to update the NVIDIA driver.

    Is it really neccassary to update the driver even though I have no problem using Photoshop?

    Should I uninstall CS4 before update NVIDIA driver and reinstall CS4 then or is there a way around it?

    Here are the technical details:

    Processor speed: 3325 MHz
    Video card provider: NVIDIA Corporation
    Renderer video card: GeForce GT 220/PCI/SSE2
    OpenGL drawing: enabled.
    Graphics card: NVIDIA GeForce GT 220
    Video mode: 1680 x 1050 x 4294967296 colors
    Video card driver: nvd3dum.dll, nvwgf2um.dll, nvwgf2um.dll
    Driver version: 8.15.11.8627
    Built-in memory: 3063 MB
    Free memory: 1981 MB
    Memory available to Photoshop: 1643 MB
    Memory used by Photoshop: 60%
    Image cache level: 4

    I have never, never had to do anything to any program by updating a device... driver just to a Windoze restart after the installation of the new driver

  • Convert already imported and updated the RAW files to DNG

    I have a number of games that I imported the RAW files and that he did not convert to DNG at the time of importation. How can I convert them into DNG now that they are already imported and retain the settings of development made to the RAW files?

    In the Lightroom library module, menu bar select Library > convert to DNG. Then make you choices in the pop - up dialog box.

  • 'Update the link' shortcut keyboard

    Y at - it a keyboard shortcut to automatically update the links updated the?  I could not find in Edition > keyboard shortcuts, maybe there's another way?

    Thank you!

    Try this...

    -go to the Edit menu > keyboard shortcuts

    -in the pop-up window, select the Panel Menus of

    -Scroll the section that begins with links... until you get to the links: updated link

    -set up a key of your choice command

    -Click "assign".

    -another window appears saying: you cannot change the game by default - and you want to create a new set based on the default value. Click Yes

    -in the new popup window, name the set, and then click OK

    -Click OK in the open window

    ... you should be good to go.

    Good luck!

    Elaine

  • Convert links to the Page references

    Hi all

    I have to create documents printed from a webhelp project and convert internal hypertext links to the page references. There was a method that I have used before around that converting links to page references in Word, but I can't seem to find it. Can someone point me to it please?

    M | S

    See this page on my site. You can download a Word macro to add page numbers after the hyperlink.

    http://www.Grainge.org/pages/authoring/Word/word_macros.htm

  • [Req] script to update the links in Indesign using spotlight

    Hello

    I have a challenge, can someone help me please?

    I'm a graphic designer from Holland and I work with a lot of Indesign documents

    which links are missing because they are displaced, so that they are some share on our server.

    I have several scripts to connect the missing links, but they are slow,

    because they each directory and in each subdirectory. It takes some time.

    The apple search engine, Spot, is much faster.

    So I think that I have this great idea, I thought about the following:

    I select a missing link in the linkpanel in Indesign.

    Then I run the script.

    The path of the missing link is copied and ready to just the name of the file

    The name of the file is then copied to the Clipboard.

    The script then opens the dialog window to repeat the missing link.

    It the name of the image is pasted into the spotlight search engine.

    Here, the script stops.

    Click the correct file (if there is more choises) and recreate it a link is done.

    I think that this way of restoring links can be much faster.

    And you can also work with predefined smart windows (to limit results), for example:

    -a witch only shows jpg

    -a witch only shows tiff

    -a witch only shows pdf

    I know a very small little scripting, but this one I can't understand yet.

    Can someone give me help please?

    Best regards, Eric

    PS. I'm still working in CS4

    Although you have a solution and sorry for quitting yout ID should have tested more then once, it was a pretty old script and I just copy and paste...

    just rewritten my old script a little to run on ID CS OSX 10.7.4 5.5

    Should pass on missing links in the Active Document, use mdfind to search for files with simular names as name of missing link in the given directory, reveals possibly the file in the finder and shows / selects currMissingLink in ID-file. If 'ok' rebuild the missing link (without leaving ID ;-) I hope).

    global myFolder
    
    set tid to AppleScript's text item delimiters
    
    tell application "Adobe InDesign CS5.5"
        set currDoc to active document
        set theMissingLinks to every link of currDoc whose status is link missing
        if theMissingLinks is not {} then set myFolder to choose folder with prompt "Where to search for the missing links?" --select a mounted volume, folder ...
    
        repeat with missingLink from 1 to count of theMissingLinks
            set currMissingLink to item missingLink of theMissingLinks
            set currFileName to name of currMissingLink
            set theResultList to my mdFind(currFileName)
    
            if theResultList is not {} then
                repeat with i from 1 to count of theResultList
                    set theItem to (item i of theResultList)
    
                    set currDialog to display dialog theItem with title "Relink this file?" buttons {"OK", "Cancel", "Show in Finder first"}
                    if button returned of currDialog is "OK" then
                        try
                            relink currMissingLink to POSIX file theItem
                        on error e
                            display dialog e
                        end try
                    else if button returned of currDialog is "Show in Finder first" then
    show  currMissingLink --select the missing link in ID
                        my revealInFinder(theItem) --show the found file in finder
                        activate
                        set currDialog to display dialog theItem with title "Please switch to Finder to see the file. Relink the file shown in Finderwindow?" buttons {"OK", "Cancel", "Continue searching"}
                        if button returned of currDialog is "OK" then
                            try
                                relink currMissingLink to POSIX file theItem
                            on error e
                                display dialog e
                            end try
                        end if
                    end if
                end repeat
            end if
        end repeat
    
    end tell
    
    on mdFind(currFileName)
        set AppleScript's text item delimiters to return
        set PathToAllFiles to every text item of (do shell script "mdfind -onlyin '" & quoted form of POSIX path of myFolder & "'" & space & " -name '" & currFileName & "'")
    
        set PathToAllFiles to my cleanList(currFileName, PathToAllFiles)
    end mdFind
    
    set AppleScript's text item delimiters to tid
    
    on cleanList(fileName, listOfFilePaths)
        set myCleanList to {}
        set AppleScript's text item delimiters to "/"
        repeat with p from 1 to count of listOfFilePaths
            set aName to (text item -1 of (item p of listOfFilePaths))
            if aName is equal to fileName then set end of myCleanList to (item p of listOfFilePaths)
        end repeat
        return myCleanList
    end cleanList
    
    on revealInFinder(somePosixPath)
        tell application "Finder"
            set myAlias to (POSIX file somePosixPath) as alias
            activate
            reveal myAlias
        end tell
    end revealInFinder
    

    Hope it will work

    Hans-Gerd Classen

  • Need a script to select the update the row to another row in the same table

    I have a table with the columns and values
    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013
    1              01/02/2013
    1              01/03/2013
    2              12/31/2012
    2              01/02/2013
    2              01/03/2013
    I need to update the InactiveDate of a line with the EffectiveDate of a line with the EffectiveDate newer than the update line and the even KeyID.
    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013      01/02/2013
    1              01/02/2013      01/03/2013
    1              01/03/2013
    2              12/31/2012      01/02/2013
    2              01/02/2013      01/03/2013
    2              01/03/2013
    I want to have a select script that shows
    KeyID       EffectiveDate        InactiveDate    New_InactiveDate
    1              01/01/2013                              01/02/2013
    1              01/02/2013                              01/03/2013
    1              01/03/2013
    2              12/31/2012                              01/02/2013
    2              01/02/2013                              01/03/2013
    2              01/03/2013
    Thanks for any help.

    Published by: 881656 on January 3, 2013 17:57

    Published by: 881656 on January 3, 2013 18:15

    Published by: 881656 on January 3, 2013 18:20

    Hello

    881656 wrote:
    I have a table with the columns and values

    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013
    1              01/02/2013
    1              01/03/2013
    2              12/31/2012
    2              01/02/2013
    2              01/03/2013
    
    I need to update the InactiveDate of a row with the EffectiveDate of a row with the newer EffectiveDate than the row to be updated and with the same KeyID.
    
    KeyID       EffectiveDate     InactiveDate
    1              01/01/2013      01/02/2013
    1              01/02/2013      01/03/2013
    1              01/03/2013
    2              12/31/2012      01/02/2013
    2              01/02/2013      01/03/2013
    2              01/03/2013
    

    This sounds like a job for the analytical function of LEAD:

    MERGE INTO table_x     dst
    USING (
         SELECT  keyid
         ,     effectivedate
         ,     LEAD (effectivedate) OVER ( PARTITION BY  keyid
                                           ORDER BY         activedate
                                         )            AS inactivedate
          )               src
    WHEN MATCHED THEN UPDATE
    ON    (    src.id          = dst.id
          AND  src.effectivedate     = dst.effectivedate
          )
    SET     dst.inactivedate     = src.inactivedate
    ;
    
    I want to have a select script which shows
    
    KeyID       EffectiveDate        InactiveDate    New_InactiveDate
    1              01/01/2013                              01/02/2013
    1              01/02/2013                              01/03/2013
    1              01/03/2013
    2              12/31/2012                              01/02/2013
    2              01/02/2013                              01/03/2013
    2              01/03/2013
    

    Once that you have done the above MERGER, it is simply:

    SELECT    *
    FROM      table_x
    ORDER BY  keyid
    ,         effectivedate
    ;
    

    If you do not have sthe FUSION, then see the query in the USING clause of the MERGER.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
    In the case of a DML (UPDATE), for example, the sample data should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Update the Configurator panels via the Script?

    Can I update via script/jsx panels? I don't see no callback function to do so. If there is an option please point me in the right direction.

    Thank you

    Gregor

    The content of the Panel cannot be updated programtically except for the content of the HTML widget. You can program in HTML with HTML/JavaScript widget to update the content and also can invoke to run Photoshop or InDesign ExtendScript. See "HTML sample Panel" that you can download on the home page when you open the Configurator 3.1.1.

    Another option is to use the Extension Builder to program in ActionScript.

  • Use a script to update the MaxL substitution variables

    We use the Essbase 11.1.1 version. Can we use MaxL script for updating the substitution variables rather than using the EAS web console? We want to put the MaxL script in a batch file and plan its Windows scheduled task.

    Thanks for your help!

    Hello-

    Yes. Here is an example of script maxl-

    connection "Hypadmin" "#" on myessbaseserver.
    spool to 'mymaxl.log ';

    / * Definition of the substitution variable * /.
    ALTER database appname.databasename set variable "CurMonth" "August";

    variable display;

    spool off;
    Disconnection;
    Exit;

    You can call this maxl from a batch file at the request of windows scheduled task.

    Concerning

  • SQL script to update the Peoplesoft database information

    Hi all

    I'm a new DBA for a charity running both PS financials & HR which often must create test, training and instances of dev of our production environments. Doing so currently requires a number of manual steps to update the different nodes and paths to those required for the new instance, and naturally I did not become a DBA to do manual work ;-)

    I'm looking for these steps, but the schema PS script being what it is, I'm not having much joy to find where relevant data could be. If someone had a script to do something similar, or could point me in the direction of the tables, I would be extremely grateful. The kind of things that we currently do through the interface are:

    PeopleTools > Integration Broker > Configuration of integration > nodes
    PeopleTools > Security > security objects > Single Sign-on
    PeopleTools > Public Services > Administration > URL
    PeopleTools > Integration Broker > Configuration > Quick Setup > Integration Broker areas
    PeopleTools > Portal > node definitions
    PeopleTools > the Ren Server Configuration > Ren Server Cluster

    We are currently running MS SQL Server, but all the PL SQL scripts would be great - I just need to know what are the tables contain the data.

    Thank you very much


    Andy

    Well, it is very dependent on version Peopletools.
    An easy way might be to open the corresponding page that you speak, and then display the definition of page and the associated record. At least that is what I use to do.
    Then, update you the table background and see if she takes your new values.

    To be brief, here is an excerpt of these tables (non-exhaustive list, PT.48):
    Node of single sign - we built: pstrustnodes
    Scheduler process definition: ps_serverdefn
    Run the command: psprcsruncntl
    Message channels: pschnldefn
    The e-mail table of contents: psapmsgpub *, psapmsgsub *, psapmsgarc *.
    Definition of message node: psmsgnodedefn
    URL: psurldefn
    Definition of employment: ps_prcsjobdefn
    OPRID (e-mail address): psoprdefn
    ...

    Then fill out your own list with the method that I gave above.

    Nicolas.

  • BlackBerry 10 updated the link

    My understanding BB has updated the link software to fix some minor bugs which have resulted in a less than perfect data transfer of older phones as well as allowing you to restore the operating system to BB10. When we try to transfer the data shape Bold 9780 for my daughter to his new Z10; the Z10 locked up and we had to send it back and get a replacement. She sold her 9780 before the replacement Z10 arrived, so I used the BB Desktop and created a backup of his 9780 before proceeding with a security wipe. Is it possible to get the backup of the data transferred to the replacement Z10 now. I thought borrowing a 9780 use as a "mule" to reload the data from my daughter and then use the link to transfer data. I'm hoping that it could be a way to convert the backup file in a format that the BB10 can recognize. Any ideas would be appreciated.

    Hey JJESSON,

    BlackBerry link includes the old backups, are called "Backups of Legact". Just connect the 10 BlackBerry device to the computer, and then select backup. Select the icon of the folder on the BlackBerry link and navigate to the location of the backup file 9780, it will be called a "legacy of backup."

    Note however that not all the information is transferred from one the 9780 for the z10 as some of the parameters/data are not supported on the z10 since the device 9780 6.0. Check out the below Knowledge Base for more information about the supported data :

    KB33523

    http://BTSC.webapps.BlackBerry.com/BTSC/ViewDocument.do;JSESSIONID=3E530674ABD847B5C65A1E7EAB18E2B1?...

  • Convert a Script for a pluggin

    I recently wrote a change, a statement script (PowerShell @ VI Toolkit) and thanks to the other, most of the code have been added to version 2.0 HealthCheck

    My question is can I convert my script that is considered to be a customer of VI pluggin?

    I think it's possible. Just give it a try!

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net

  • When I click on the link on the page of the Add-ons Manager to check the updates it still works without any result. How to solve this problem?

    The Flash Player has been blocked. I tried to use the update on the Manager of Plug-ins page link, but the tool just ran and ran without ever showing any results.

    It seems that the plugin check page is to have general questions of support (server-side) at the moment...

  • After 9.3 iOS updated, I can't open any links in the email, the email app becomes locked.

    Since I updatated my, iPhone 6 s Plus 64 GB iOS 9.3 I can no longer open all links in an e-mail message. I checked to make sure there wer no restriction only activated in the settings, which was what he suggested to someone having a similar problem, but that was on a wire very old.  When I get an email now, and I want to view the Web site, the mail application just hangs. It happens when I'm on wifi or cellular service. I have an Air 2 64 GB iPad that has been updated the same time, and it does not work flawlesslly.  I don't know what to do to this phone is only 3 months old. Thank you so much in advance!

    Apple will release a bug for her fix soon.

    http://9to5Mac.com/2016/03/29/Apple-iOS-9-crashing-bugs-when-tapping-links-fix-s software-implementation to date.

Maybe you are looking for

  • I want to increase the size of the history panel

    I just upgraded to v. v. 34 17.0.1. In the old version, I could open the story as a full panel and see the places and dates in chronological order. Now, even if I have the "View > by date and site" option is selected, I can only see sites. Also, when

  • Apple pencil does not always work.

    I bought an iPad Pro not so long ago, then last week I got a pencil to Apple. It was great for a while, but then I realized the prosecution had fallen 23% so I stuck to the Pro to recharge. While he was 100%, I got it out to use, but now it sometimes

  • Screen flickering on battery - Satellite A100-275

    I have faced a problem last week when my laptop is plugged in and worked a while when I remove the power cable and run down the battery. Constantly the screen flickers. If I then plug back in it is well again. If I reboot with power cable the problem

  • message on Dell V305 low ink level

    I recently put a new cartridge in my Dell V305 printer color, but it keep telling me that the color ink levels are low, and I need to change it. How can I change the level of ink estiamted to read correctly?

  • Need a program to "Boot".