How to get Template(indt) filepath (CS3/JS)

Hi All,
I opened indesign template file, programatically i want to know where it is?
I have tried with app.activeDocument.filePath, it shows "This document is not saved, so there is no path".
How can i get the filepath from the indt
Regards,
Sudar

Did you open the .indt by script or by hand?
If by script, then you must know where it is. If by hand, then I don't think there's any way to get back to the template. If you know the name of the template, you could search for it in a script, otherwise, you're out of luck.
I'd reorganize the script to start without a document open and have the script open the template; if it's potentially anywhere, then throw up a file dialog and have the user locate it.
Dave

Similar Messages

  • How to get a relative filepath using Java?

    Hi,
    I'd like to write a custom application for something I'm doing at work. Basically, I need to find the relative filepath from one file to another. Like, if I start in a subdirectory of directory A with file abc.htm, I want to use Java find the relative hyperlink I would put in abc.htm to link to another file in another subdirectory of A. Something like "../Subdirectory/xyz.htm" (where xyz.htm is the file I want to link to) returned as a string.
    The reason it needs to be a relative filepath without any references to named directories is that the application with all the hyperlinks in it will eventually reside on a different server or servers. The people who put it there will maintain the same directory structure as we have in our development directory, however.
    So, anyway, I see in the File class you have methods for getting absolute filepaths and directory names and such, but nothing for getting a relative link to another file.
    Does anyone know if such a class/method exists anywhere in std Java? Or how else I could go about doing this?
    Many thanks if you can help.

    Given a File object f then one can build the path to the root as a list of file names from f.getName() and iterating using f = f.getParentFile().
    Once you have the path lists for your two files then it is simple enough to find the branch point by moving forward through the lists until values differ. Building the relative path is then a matter of moving back through one using "../" until the branch point and then forward through the other until you reach the last element.

  • How to get Template name / or its GUID?

    Hello
    I have Project GUID available in my program, now I need to get associated Template's description, pls. let me know how can I get associated template description by passing Project GUID?
    Than you

    Hi,
         It's farely easy:
         You get the instance of the CL_DPR_PROJECT_O class based on your Project GUID. And call the method ->GET_DATA_EXT importing ES_PROJECT_INT. This structure contains a component TEMPLATE_GUID (type DPR_TV_ENTITY_GUID).  Use this to load an instance of class CL_DPR_PROJECT_T (Template), and then call method ->GET_DESCRIPTION( ).
         If you don't know how to load a project instance, just copy-paste the following code:
    data:
        lv_convert_guid type dpr_tv_entity_guid.
      lo_project ?= cl_dpr_api_services=>get_object_by_guid( iv_project_guid ).
      if lo_project is initial.
        lv_convert_guid = iv_project_guid.
        cl_dpr_bapi_services=>load_objects_of_object_type(
           exporting
             iv_object_type     = cl_dpr_co=>sc_ot_project
             iv_object_guid     = lv_convert_guid
             iv_change_mode     = cl_dpr_co=>sc_false ).
        lo_project ?= cl_dpr_api_services=>get_object_by_guid( iv_project_guid ).
      endif.
         Preferably, put this code inside a method and use the more generic CL_DPR_PROJECT.
         Hope this helps you!
    Tudor

  • How to get templates visible in assets panel

    Hello!
    My problem is to get the templates visible in the assets panel.
    I created a site where the templates are visible in assets panel (the first phase of the pic). In order to meet the demands of the server, I had to change the folder structure of my site so I created the necessary new folders inside the main site folder and dragged all the files inside them (the second phase). I kept the templates inside their Templates folder. I was very careful that the links really updated. I noticed that when I had move the html documents (kurssi1, kurssi2, kurssi3) but not yet the templates, the templates worked fine but after moving the Templates folder inside a second level folder (net_static) they stopped working. I tried to refresh the site but the templates didn't show up in the assets panel and they were not active although they physically exist in their own folder (in net_static folder). How could I re-activate the templates and get them to show in the assets panel?
    Thank you million times!

    The template folder must be located in the site root. It will not work where you have moved it to.
    Also, in the future please post these types of questions to the Dreamweaver forum. This is the app dev forum.

  • How to get HTML5 to dreamweaver CS3

    I own dreamweaver SC3, and have been working for years with HTML4, i would like to install HTML5 - how do i do that?

    Check here -
    Adobe - Dreamweaver Extension
    and here -
    Adobe - Dreamweaver Extension

  • How to get 2nd line in smartforms using template

    how to get 2nd line in smartforms main window using template. i have also defined loop .

    if possible can you try with the TABLES..
    Put one TABLE in your MAIN window
    create table lines as per your requirment...consider all lines like 6 for header, 1 for main, 1 for total
    Now, you will find three section under the tables: header, main, footer...
    in header section, create a table line, assign one of the proper lines from the line types.. repeat for your all lines.
    in main section, you can access your data form the loop.
    the footer secion will be called, just after the main will be finished.
    Regards,
    Naimesh Patel

  • How to get title templates library for CC?

    How to get title templates library for CC?  Do you have to download and install PP 6 to get them?

    Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore

  • How to get audit id in coder template mapping

    Hello everybody,
    i am new in this Forum and new to the Oracle Warehouse Builder. I am Student and currently working on a approach of error handling by ETL processes.
    To my question:
    I am using a Code Template Mapping to load data in my target tables. In my target table i want to have a column which contains the Execution_Audit_Id of the current Code Template run. Can anyone tell me how i get this Audit ID in a Code Template Mapping? That would be great!
    OWB Version 11.2
    Regards,
    Jens

    Hi,
    You would need to create a parameter in your report called userloginid select the paramter data type to match that of the datatype this value is stored as in the table.
    then the correct syntax would be select * from table1 where userloginid=:userloginid
    Hope this helps,
    Domnic

  • [CS3][JS] How to get the file type of current document

    Hi,
    How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
    I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
    If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
    Regards,
    Karthik

    Do you really need to know the file type? What about just checking the bit depth?
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
    doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    //do your save etc
    }else{
        //Ignore

  • Missing Templates in iphoto how to get them back?

    I'm using Macbook Pro with OS X 10.7.2 , i have iphoto version 9.2.1 (628) , Now when i use email in iphoto and i want to use the templates so they are missing can someone help me how to get them back?

    You'll need to reinstall iPhoto from the source it came from, i.e. the Software Install disk that came with your MBP or an iLife11 disk.  If the MPB came with Lion install you'll have to download iPhoto from the App Store.
    To reinstall iPhoto  you'll have to delete the current application and all files with "iPhoto" in the file name with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder,
    Click to view full size
    Then install iPhoto and apply any needed updaters.
    I may be presching to the choir here but in Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • How to get Information Template fields to Standard Purchase order Document.

    Hi Guy's
    I Created Information Templates to capture extra information to suit our business needs. But i dont know how to get populate those information into Standard Purchase order docuemnt. After Some research I found that we have to customize the PO_STANDARD_XSLFO.xsl. But i did not get how to get those information.
    If any one know knows or has done this type of customization let me know asap
    Thanks in advance
    Thanks & Regards
    Palakondaiah.U

    Hi,
    I resolved this as following :
    Since, i needed the Manufacturer Serial no. to be fetched in custom field at item level ( Enhanced via EEWB the item  ) , the moment there is a product  available in the sales doc header field.
    I wrote  badi implementation for definition : CRM_ORDERADM_I_BADI and utilized method  : CRM_ORDERADM_I_PRODUCT_DETERM . This method's signature if you check makes me available the header, item guids along with the product available in the field even before i save the sales document. There i fetch the serial number of product from custom table and then poulate the serial no. field in customer_i extension as follows:
      LS_CUSTOMER_I_COM-ZZCUSTOMER_I0803 = LV_MFR_SLNO.
      LS_CUSTOMER_I_COM-REF_GUID    = IV_ITEM.
      LS_CUSTOMER_I_COM-REF_HANDLE  = '0000000000'.
      LS_CUSTOMER_I_COM-MODE        = 'A'.
      APPEND LS_CUSTOMER_I_COM TO LT_CUSTOMER_I_COM.
      LS_FIELD_NAME_CUSTAB-FIELDNAME = 'ZZCUSTOMER_I0803'.
      APPEND LS_FIELD_NAME_CUSTAB TO LT_FIELD_NAME_CUSTAB.
      CALL FUNCTION 'CRM_CUSTOMER_I_MAINTAIN_OW'
        EXPORTING
          IS_CUSTOMER_I_COM    = LS_CUSTOMER_I_COM
    *        IV_EXTERNAL_CALL     = 'X'
        CHANGING
          CT_INPUT_FIELD_NAMES = LT_FIELD_NAME_CUSTAB
        EXCEPTIONS
          ITEM_CHANGE_ERROR    = 1
          ITEM_CREATE_ERROR    = 2
          ERROR_OCCURRED       = 3
          OTHERS               = 4.

  • I modified the first business card in a template. Does anyone know how to get the other cards on the template to look like the first one without doing each individually? please and thanks!

    I modified the first business card in a template. Does anyone know how to get the other cards on the template to look like the first one without doing each individually? please and thanks!

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
    Peter

  • [CS3 Win]: How to get active spread and layer ?

    How to get the active spread and layer in an Indesign CS3 document?

    I found the answer (I wanted active spread and page):<br /><br />active Spread:<br />InterfacePtr<ILayoutControlData> layoutControlData(gContext->GetContextView(), UseDefaultIID());<br />UIDRef uidRefSpread = layoutControlData->GetSpreadRef();<br /><br />active page:<br />UID uidMyPage = layoutControlData->GetPage();<br />UIDRef uidRefPage(fCHMLDocRef.GetDataBase(), uidMyPage);

  • How to get the line in the template (smartform) with out using under score

    Hi,
         How to get the line in the template (smartform) with out using under score,
         and how to print the box (line the check box - small squre box (which is used ot mark the tick by the user in front of the item).
         Please provide the valueble answer as early as possible.
    Thanks,
    Ravi

    Hi Ravi,
    Line -
    Use a SMATSTYLE for this purpose.in the smartstyle create a paragraph or character with underline atribute.Then call the smartstyle in the text.
    Search SDN with Key <b>UNDERSCORE</b>.. will get few more posts on the same.
    For Checkbox - refer link
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • How to get the Page Number in CS3 with VB?

    Hi, Everybody
    I use the Visual Basic to read the words and their page number where the Words are at. I want to do it according to Story. Some TextFrame of the Story waw placed in other pages: How can I get the Page number according to the Word that is selected?
    For myStoryCounter = 1 to Document.Stories.Count
    Set myStory = Document.Stories.Item(myStoryCounter)
    For myWordCounter = 1 to myStory.Words.Count
    Set myWord = myStory.Words.Item(myWordCounter)
    myWordContents = myWord.Contents
    Rem ** How to Get the Page Number according to the Word ***
    Next
    Next

    > But I don't understand why Item(1) are set.
    because Word can have more than one parent TextFrame - when split across TextFrames
    only Character have one ParentTextFrame accessed also by ParentTextFrames.Item(1)
    > why Story.TextFrames.Count alway is 0, Is it bug?
    no - it's not bug
    in older IDs - Story.TextFrames collection refer to all TextFrames as containers for Story text
    but in CS3 - collection Story.TextFrames contain all TextFrames inserted as InLine/Anchored objects - same like Story.Rectangles or Story.Ovals
    in CS3 - when you want to refer to TextFrames as containers for Story text - you need to use Story.TextContainers - because now you can link TextFrame and Text-On-Path as Story - Text-On-Path isn't TextFrame
    robin
    www.adobescripts.com

Maybe you are looking for

  • Mail stationary in Snow Leopard

    From many messages I have read, the Mail program comes with built in stationary. If I look on my hard drive, this fact is supported by the existence of a Stationary Directory in the Library - Application Support of the Mail program. However the Show

  • My music is no longer in my itunes library

    my music is on the ipod but not in my library. Its acting like they are not synced, but I dont want to loose my music on the ipod

  • Hello,I have a problem with my Apod

    Hello, I have same problem with my Apod:( Two years ago, my dad bought me the iPod ..... When a new update came out my baby did not want to load it. I am very upset and decided to actively search the internet for all the update methods. Looking for p

  • Webcams on a Mac?  Anyone know how to install drivers for a webcam?

    I recently bought a Creative Live! CAM Video IM Ultra: http://us.creative.com/products/product.asp?category=218&subcategory=219&product =18194&listby= I've got a newer (1 year old) Mac Mini running Leopard. I just want to use this webcam with Skype.

  • Will my 8310 be able to take video's with the new 4.5 os ?

    i have been told that with the new 4.5 os i will be able to make video's. with the 4.2 i only can take picture's .