Change link properties (Rename file name)

Hi All,
As usual, I am new to Acrobat Scripting, but I have a good knowledge in InDesign Scripting.
I have project about changing the link attribute.
What i want to do is, I have a book along with chapters, Now i want to rename all the chapter names. If i rename the file name then i want to change the pdf link also. The following code will work almost, but onething i want to rectify.
var numLinks=0;
var desFile='D:\\1.pdf';
var b = this.getPageBox("Crop", 0);
var l = this.getLinks(0, b);
l[0].setAction("app.openDoc('" + desFile + "')", this);
If you run this code using javascript, you get a link but the property is set as javascript. Here i want to set as open a file.
If you know the solution, please reply.
Sudar.

Have you looked at the 'addLInk()' method in the Acrobat JS API?
You could also look at using 'theGetURL()' or 'launchURL()' methods.

Similar Messages

  • Can we change the web.xml file name???????

    can we change the name web.xml and struts-config.xml file to other name.....if yes, then how..........

    you can change the name of struts-congig.xml file
    and change the strut-config file name in web.xml also.
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>And you also try rename the file web.xml and run the application and check what is happening...

  • In R12 how to change concurrent output/log file name prefix?

    how to change concurrent output/log file name prefix?

    but i want to change change concurrent output/log file name prefix?You cannot, and I believe it is not supported for all concurrent requests -- Please log a SR to confirm this with Oracle support.
    Thanks,
    Hussein

  • Programaticly changing the (suggested only) file name in the save prompt when signing a document?

    When you sign a document in Adobe X (or XI), the system says it needs to save the file first.   Is there some way to change the (suggested only) file name to a different value for that save?
    Right now, people open a blank form - lets call it formX.pdf.   They fill it in and sign it.  The suggested file name for the save is FormX.pdf.   I can generate a unique file name which i'd like to put in place of the suggested default...

    AFAIK, you can't do it with code. Your best option might be to use a form field to show a message to the user when they sign the document with that information.

  • How to change the output executable file name(a.prj:(output)--- b.exe)

    LabWindows / CVI: how to change the output executable file name
                For example, I have an A project a.prj, I do not want to compile the output file is a.exe, but b.exe.
    I will try to save as a.prj b.prj, a.cws save as b.cws
    eg:a.prj  ---->(output)--->b.exe
    Solved!
    Go to Solution.

    You can go to Build >> Target Settings menu item, select Release (or Release 64) in the Configuration filed and set the name of the executable to create in Application FIle field, withouyt need to change the prj or cws filename.
    See the complete description of available options here.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Changing the Word imported file name

    A lot of topics were imported as Word documents and the search results and index results refer to Word documents that were imported en masse and with inconsistent naming conventions. For example, "1 - Order Title" was renamed "Underwriting after UDSA Approval is Received" in the TOC but when a person does a search or clicks the index keyword, the original file name is given.
    Thank you very much, one day I hope to start giving back to the community.
    Dave

    I have amended your topic title to something more useful.
    There are some changes you can make. See Importing and Linking on my site. However, now the topics have been created, it's a manual change.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Rename file name & format using ftp sender

    Hi all,
    This is regarding the renaming of file at sender file(FTP) communication channel and placeing the same file in the same folder.
    At FTP server at sender side (i.e.clients place) is in .txt format.But now .txt file has to rename and change into .sav foramt with below required name convention of file.
    client format is  :  SAP_Order.txt (Pervious file name).
    We need to change the file in to "SAP_Order_yyyymmddThhmmss.sav" format..
    How can i achieve this requirement?
    Can please suggests me solutions ASAP.
    Best Regards,
    satya,

    Hi,
       if your requirement is to pick the  existing file in the FTP folder...and send as idoc to the target and place the renamed file to FTP folder...
    then its simple...
    use two receivers instead of one , one for point to target and other for sender itself... (second receiver  is for  changing  the file name format....)
    Hope the above understanding is correct...if not provide more details of your requirement...
    HTH
    Rajesh

  • Question about renaming file names

    After spending many hours organizing my iphoto library, deleting duplicates, etc, it is now where I want it. So I have two questions.
    1. Is there a downside to updating all the file names to the Event Name as long as this is done in iphoto? (I was thinking this might be helpful in case anything gets jumbled in the future)
    2. If it is advisable to do #1, is there a way to do this to the whole library in bulk or do I need to do it event by event?
    Many thanks for any advice.

    It is not possible - you can not change file names in iPhoto - you can add titles and when you export use the title for the file name - but file names within the iPhoto library will always remain as they were originally imported
    Old toad uses image capture to bring photos to his hard drive and then uses a third party package to batch rename them to the proposed event name in a p=folder with that event name - then if you drag that folder to the open iPhoto window it creates an event with the folder name and the file names are what you set
    LN

  • Rename file name

    Hello to everyone,
    I need to change the old file name  for that I used this code ......but the problem here is..............
    normally I will get the file name is
    /interfaces/in/1601/payroll03052007
    directory
    /interfaces/in/1601                                                                 
    file name  is payroll03052007
    so the new file name starts with z ...like zpayroll03052007.....here the problem is...'z' should come before the file name.......for that how can I write the code.......
    form renamefile.                                                
       file-name-old(50) = jefile(50).                               
       v_date = sy-datum.                                            
       v_time = sy-uzeit.                                            
    concatenate: file-name-old '-' hrec-hpostdate(2) hrec-hpostdat
                                                    into file-name-
        concatenate: file-name-old  v_date v_time into file-name-new.
    Rename Input file to prevent second interface of data         
       refresh rctable.                                              
       call function 'Z_RENAME_FILE'                                 
            exporting                                                
                 source_file_name = file-name-old                    
                 target_file_name = file-name-new                    
            tables                                                   
                 rc_table         = rctable.                                                                               
    if sy-subrc = 0.                                              
         write:/  'Rename function sucessfully executed'.            
         write:/  'Renamed file from: ', file-name-old.              
         write:/  '               to: ', file-name-new.              
       else.                                                         
         write:/  'Z_Rename function could not be executed'.         
       endif.                                                        
    Thanks in advance....
    Madhu.

    You can use SXPG_COMMAND_EXECUTE. This function is used to execute operating system command and can be used to rename a operating system file. For example you can use "mv" on UNIX or "REN" on Windows systems.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        COMMANDNAME                         =
    *   ADDITIONAL_PARAMETERS               =
    *   OPERATINGSYSTEM                     = SY-OPSYS
    *   TARGETSYSTEM                        = SY-HOST
    *   DESTINATION                         =
    *   STDOUT                              = 'X'
    *   STDERR                              = 'X'
    *   TERMINATIONWAIT                     = 'X'
    *   TRACE                               =
    * IMPORTING
    *   STATUS                              =
    *   EXITCODE                            =
      TABLES
        EXEC_PROTOCOL                       =
    * EXCEPTIONS
    *   NO_PERMISSION                       = 1
    *   COMMAND_NOT_FOUND                   = 2
    *   PARAMETERS_TOO_LONG                 = 3
    *   SECURITY_RISK                       = 4
    *   WRONG_CHECK_CALL_INTERFACE          = 5
    *   PROGRAM_START_ERROR                 = 6
    *   PROGRAM_TERMINATION_ERROR           = 7
    *   X_ERROR                             = 8
    *   PARAMETER_EXPECTED                  = 9
    *   TOO_MANY_PARAMETERS                 = 10
    *   ILLEGAL_COMMAND                     = 11
    *   WRONG_ASYNCHRONOUS_PARAMETERS       = 12
    *   CANT_ENQ_TBTCO_ENTRY                = 13
    *   JOBCOUNT_GENERATION_ERROR           = 14
    *   OTHERS                              = 15
    COMMANDNAME is the logical name as defined in SXPGCOSTAB, maintained via SXPG_COMMAND_MAINTAIN function. For example you would assign ZMV for "mv" command for renaming file. In the ADDITIONAL_PARAMETERS you can given old file name and new file names

  • Change of PO Download File Name from SUSDOC.zip

    Hello All,
    In SRM-SUS when downloading the files, I want to change the name from SUSDOC.zip to the PO number.zip.
    The BADI BBP_SUS_DOWNLD_FILES can be used to change the name of the files inside the SUSDOC.ZIP file(I guess)
    Any idea to do the name change for the zip file?
    I will award the points once answered.
    Thank you.
    Palaniappan

    Are you trying to (a) change the file name but continue to use the same file or (b) make a copy of the original file and change the name of the new file?
    In Adobe Reader for iOS 11.3.0 (the latest version as of May 24, 2014),
    Go to the Reader home screen.
    Tap Documents in the left pane.
    Tap Edit in the upper right corner.
    Select the file that you want to (a) rename or (b) duplicate.
    Tap (a) the Rename icon
    or (b) the Duplicate/Move icon and select Duplicate from the menu.
    (b) Optionally, rename the duplicated file by repeating Steps 3-5.
    Tap Edit in the upper right corner again.
    Select the file that you want to save to Acrobat.com.
    Tap the following icon and select Save to Acrobat.com

  • Changing a deployment's file name

    I'm trying to debug a large application and I'm having a problem with the Windows File name limit.
    I have a project called GenericClientCalculationEngine, which creates GenericClientCalculationEngineWebApp.war. Is there a way in JDeveloper to set what filename should be used to during debug/run in JDeveloper? I'd like to shorten the name down enough to not hit these limits.
    Change I just change the deploy name or do I need to rename my project?

    My last reply i was mentioning about the changing the deployment profile name.
    You should be able to change the deployment file name as mentioned by Shay above.
    Did you check that you don't have multiple deployment profiles and you are using the wrong one (just checking) ?

  • Is it possible to change each exported JPEG file name from "Export JPEG Slideshow"?

    It is convenient to add each image name as a text on each figure by Slideshow.
    Could I use each image name as the exported file name?
    thx a lot!

    Blendy,
    You can follow the steps below to assign custom names to export files:
    File Naming
    Choose an option from the Rename To pop-up menu.
    If you chose an option that uses custom text, enter the custom name in the Custom Text box.
    If you use a numeric sequence and you don’t want it to start with “1,” enter a different value in the Start Number text box.
    For more options, choose Rename To > Edit.
    Source: http://helpx.adobe.com/lightroom/help/export-files-disk-or-cd.html
    Also you can follow the video from the link below:
    http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/how-and-when-to-rename- files-in-lightroom-4/
    Let me know if you need more help on this.
    Cheers!
    Mandhir

  • Rename file name in photostream

    question: how do i rename an image within photostream?
    note distinction: file name vs photo title.
    evidently photostream displays file name.
    hence, if you have gone to the trouble of renaming a photo title in photoshop and then created a photostream expecting titles to appear as you'd wish (for friends/family to see), then you're out of luck.

    since everyone sharing using PhotoStream must be using the same Apple ID
    this is no longer the case.
    for shared PhotoStreams you would use the Comments field to describe the photo
    no. you would use comments field for comments. the title field is meant for title/filename.
    or change the file name prior to importing the photo to iPhoto
    complete waste of time.
    only thing worse than that is exporting and reimporting which creates duplicates, clutter, and filekeeping menace.

  • Changing of the physical file name of the file after archiving

    Hi all,
    We are in process of archiving  and  completed the process successfully and archived to o:\PRODSID\<filename>.
    When refresh   is happening from Prod to Quality   the archived data will come as O:\PRODSID\<filename> and the archived files will not be accessible since quality system  is not able to find the path with O:\PRODSID\<filename>.
    Is there anyway i can change the physical file name  of the archived files to correct path O:\QUALITYSID\<filename>, i need to change only the SID  only    from PRD to QUALITY.
    Thanks,
    Subhash.G

    Hi Subash,
    Do you want change the Physical File name or the Path from PROD to SID.
    Path :- in the transaction called FILE, double click on Logical Path Definition , select the Logical File and double click on "Assignment on Physical Path to Logical Path" and you can change FILENAME also here
    Thanks,
    Sravanthi

  • Is there a way to change the export default file name

    I have a request to change the default file name when doing a pdf export of a report. By deault, when pushing the export to pdf button, the name is NONAME.pdf. They want the default name to be the channel name is displayed on the report.
    Is there an easy way to do this, or will I have to load all new code into the export button?

    What you'll probably want to do is create a script that uses the Call Report.Sheets.ExportToPDF function and programatically specify the name.  From here, you could set it as one of the function buttons or even include it on the toolbar if you'd like.
    Jesse S.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • FX Restatement with RATE_CATEGORY and FX_SOURCE_CATEGORY

    Hi experts, we did implement a "normal" multicurrency conversion in BP 7.0 MS. There is an additional need to make a conversion of the actual data with budget rates. I added a new category ACTBUDAY with RATE_CATEGORY = "BUDGET" and FX_SOURCE_CATEGORY

  • Pinter with WIN NT - help

    How to install network printer in OA on Widows NT. (OA 11 one hour installation, printer HP2100) I have already set printer style and driver. In drivers menu: SRW drivers - HPL, driver method - command, Arguments - print /d:\\izyda\fk-pzu19 $PROFILES

  • Turning off your iPod

    I need help on this one. I have owned my iPod for 4-5 months and have had no problems with it until now. I tried to press and hold the "Play/Pause" Button on my iPod wheel but it would not turn off. What should I do? Thanks, Jonathan

  • How to handle the battery when AC is connected to Satellite?

    Hi, I've just bought first Toshiba laptop, and want to get the best from the battery life, as the one on my last laptop is now buggered. My question is : If I indend to run the laptop almost always from the mains adaptor, is it possible or advisable

  • Cannot retrieve voice mail

    Hi folks, does anyone have the time and savvy to advise me?Often times, I cannot retrieve my voice mail. I can see the voice mail and the number of seconds it lasts.  But when I click on the voice mail, the number of seconds goes to zero, and no mess