Inserting file path/filename

Hi, all out there,
I've just strated using Pages '08, and exploring it. But Pages Help and User Guide do not tell me how to insert the file path or filename in the footer, so that it's automatically updated whenever changed. It's not in the Insert menu, and cannot find it in Insert > Function.

Hi Peggy,
Though that feature is useful isn't found in 10.4.10. The Devon Technologies WordService ReadMe file has the following:
Insert:
Contents Of Path
Inserts files and folders of the selected path (tilde is expanded)
and of all its subdirectories (e.g. select the path '~/' and this function
will insert all contents of your home directory)
Short Date Cmd-'{'
Inserts the current date (no text selection necessary)
Long Date Cmd-'}'
Inserts the current date (no text selection necessary)
Short Date & Time Cmd-'_'
Insert the current date & time (no text selection necessary) Long Date & Time Cmd-'%'
Insert the current date & time (no text selection necessary) Time
Insert the current time (no text selection necessary)
Maybe that's what you're seeing in your services menu perhaps.
Sincerely,
RicD

Similar Messages

  • Insert File Path into Text Field

    I am trying to create a text filed at the bottom of a form document that will automatically input the file path (e.g.. C\:Folder\File) of the document itself after the document is saved.  I've looked at a few Scripts but nothing seems to be working.  I'm assuming it will look something like this on the "postSave" option:
    this.rawValue = event.target.path.replace(event.target.documentFileName, "");
    I am a very novice programmer so I have no idea if this is even close to right.

    Apparently some of my search parameters were off.  This question has already been answered before.  If anyone comes looking here, this is a link to the page with the answer.
    http://forums.adobe.com/message/4007317#4007317
    Enjoy.
    FYI: here is the code I used for the text field.
    Inspection.TextPage.Bottom.End.Directions.File::preSave - (JavaScript, client)
    this.rawValue = event.target.path

  • Unix file path not working to retrieve file

    I have an application I developed on a Windows machine to generate some XML and then later read it. Well when I generate on my Windows machine it works fine, and then I can read it with no problem. When I generate on the Unix machine, It works fine, but I can not read the file at all. The path is correct, the file is there, Java just can't read it for some reason, I get a FileNotFoundException. It gets the path from a properties file, then adds the filename to the path and tries to retrieve it. The path looks like this /pages/content/net/tool/Custom.xml and when I vi the file vi can read it fine. So anyone run across this before, not being able to read the file at all? To generate I use betwixt and to read I use digester.
    Thanks in advance.

    I am going to give you the output here, and all of the configuration info as well and the checkSlash method too. But I suspect what is happening is some kind of stream/os control is holding on to the file and not letting someone take a look at it in the application level. If it's not that then it's a permission issue, which I chmod'ed the file and made rw-rw-r-- (it was rw-r--r--)just like the files that already work. Also I winSCP'ed into the box and tried a simple overwrite with another file of the same name and got a permision denied.
    my application level exception :
    com.spectra.common.CommonException:
    /pages/content/net/tool/OpFinderCategoryReview.xml 
    (No such file or directory)
    the real exception thrown by the application:
    Caused by: java.io.FileNotFoundException:
    /pages/content/net/tool/OpFinderCategoryReview.xml 
    (No such file or directory)
    /*this method checks the file name passed in and see if it leads
    with a slash to cap on the end of the path from the properties file
    which is /pages/content/net/tool/ */
    private String checkSlash(String fileName) {
       if(fileName != null && !fileName.startsWith("/"))
         return "/"+fileName ;
       return fileName ;
    /*I use betwixt to write out the XML for me and then I try and use it but it fails . this is the way I call betwixt */
    try {
                  WizardProduct wizProduct = (WizardProduct)request.getSession().getAttribute(PricingResources.WIZARD) ;
                  String fileName = CommonUtil.checkSlash(this.createFileName(wizProduct)) ;
                  int pageId = this.createPage(wizProduct,fileName) ;
                  GenerateProduct genProduct = new GenerateProduct() ;
                   Product product = genProduct.doExecute(wizProduct, pageId) ;
                   PropertiesReader reader =  new PropertiesReader() ;
                   String path = reader.getRepositoryProps().getProperty(PricingResources.REPOSITORY_DIR) ;
                   FileWriter fileWriter = new FileWriter(new File(path + fileName));
                   BeanWriter writer = new BeanWriter(fileWriter);
                   writer.getBindingConfiguration().setMapIDs(false) ;
                   writer.enablePrettyPrint();
                   XMLIntrospector introspector = writer.getXMLIntrospector( );
                 introspector.getConfiguration().setWrapCollectionsInElement(false);
                   writer.write("product", product);
                   writer.flush();
                   writer.close() ;
                   fileWriter.close() ;
    /* The read file process works fine in every scenario EXCEPT when I generate a document from my application and then try to read it. The problem is not in reading it normally, it's reading it only on a Linux machine after I generate a doc, not on windows.
    Thanks

  • How do I automatically insert a file's filename in a header in the file?

    The newest version of NUMBERS seems to have lost the function for inserting a filename into the header of a printed document.  Any suggestions?

    I miss that feature too. A workaround would be to Command-Click the document name in the Print Preview window and select the second line in the file path that is displayed. That will cause a Finder Window to open, with the current Numbers file highlighted. Click once on the highlighted document name, Command-C to Copy, Click back on the Numbers window and click in the Header field and Command-V to Paste.
    This avoids all typing into the header, but the result is just a piece of text, not an object that will automatically update. It seems that if we want all the functionality of iWork '09, we must choose to use iWork '09.
    Jerry

  • Using a Variable to Substitute the path\filename of a Batch file in the Start_Process Command

    I am trying to write a script that will execute a batch file on a remote Windows server.
    This line below is basically what I'm trying to do and it works without error, however I would like to use a variable for the path\filename of the batch file.
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "\\qsc-a-ice01\D$\Test\RunThis.bat" }
    If I try to use a variable as in this example below I receive the error below. The error seems to indicate it's it expecting a "FilePath" parameter. Is this true? How would I change this script to make it work when substituting a variable.
    $MyProcess =  "\\qsc-a-ice01\D$\Test\RunThis.bat"
    Write-Host $MyProcess
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "$MyProcess"}
    This is the error text I receive when using a variable:
     PS C:\Windows\system32> D:\Test\ThisWorks.ps1
    \\qsc-a-ice01\D$\Test\RunThis.bat
    Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Supply an argument that is not null or
    empty and then try the command again.
        + CategoryInfo          : InvalidData: (:) [Start-Process], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand
        + PSComputerName        : QSC-A-ICE01
    PS C:\Windows\system32>

    Mike,
    Thanks for providing the link, it was very informative. The link described how to use the args in a ScriptBlock and provided me with an explaination as to why it works the way it does on a remote server. This is my 1st post to the forum and I don't know
    how the points system works yet.
    I would like to split the points , but I don't see that this is possible.
    You're very welcome, I'm glad that the information was helpful.
    You can mark as many posts as answers as you'd like, there's not a restriction on only having a single answer per thread. You certainly don't have to though, David's answer is more than sufficient to help any future people who find this thread.
    Also, on a side note, you may want to post in the thread below. Posting there will get your account verified so you'll be able to post links and images.
    http://social.technet.microsoft.com/Forums/en-US/200c33c9-abe9-494a-953a-bf53fccb3c76/verify-your-account-11?forum=reportabug
    (Future people - don't use that link.
    Click here and look for the current thread as a sticky.)
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Trying to return filename, not file path

    I'm trying to set up an automator app that will create a folder with a matching name to the input. I was able to find an Applescript (below) which copies the file path to the clipboard. I can get the rest of it to work, if I can figure out how to copy only the filename and not the entire path.
    on run {input, parameters}
              set thePath to quoted form of POSIX path of input
              do shell script "basename " & thePath
      set the clipboard to the result
              return input
    end run
    My appologies if this is obvious or if I'm going about it the wrong way, I know nothing at all about AppleScript. Any help that anyone can give will be appreciated. Thanks

    on run {input, parameters}
            set thePath to quoted form of POSIX path of input
            set theResult to  do shell script "basename " & thePath
            set the clipboard to the theResult
            return theResult
    end run
    I think you want the applescript to return the basename of the path you pass.
    I made the changes to do this.  I have not tested the applescript.  If you do not want the result on the clipboard get rid of:
    set the clipboard to the the_result
    Robert

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • Can you insert a file path in pages document

    Is there any way of inserting a "file path" into a document in the new version of pages. You could do it in Pages 09 but I can't find any way of doing in the new
    Version. I know the inference is you are using the cloud - therefore file paths are not needed - but a lot of us still store documents in various places ( especially in the work place).

    No.
    Pages 5 has over 90 other features removed:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=b14426a2c5af2 65f2213d98ee45f08d7&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Export your Pages 5 files to Pages '09 or Word .docx and trash/archive Pages 5.
    Then rate/review Pages 5 in the App Store.
    Peter

  • How do i show the filename.type instead of the entire file path?

    How do i show the filename.type instead of the entire file path?
    I want it to show "ProgramSetup.exe" instead of "C:/Program Files/Oracle/JavaFX/ProgramSetup.exe"
    I have created a JavaFX program with the help of my manager
    below are the code
                   File file = fileChooser.showOpenDialog(Admin.mainStage);
                   if (file != null) {
                        textFiles.setText(file.getAbsolutePath());
                        String absolutePath = file.getAbsolutePath();
                        //String fileName = new File(absolutePath).getName();the reason i put the last line as // because it has error on that line....
    if i remove the last line, it will display but with the full path....
    i search through google and the guide on many forums aren't clear to me.....some said there are 2 ways but i tried and it is not working, atleast for me...maybe i left out something or what....can anyone help me on this?

    You don’t need the absolutePath:
    File file = fileChooser.showOpenDialog(Admin.mainStage);
                   if (file != null) {
                        textFiles.setText(file.getName());
                               }

  • Path of inserted file in OLE container

    I used OLE container in the forms. Now I need to extract the path of the inserted file as well
    How do i do it?

    Hi Krishana,
    Please look at .ear file is available under this path.
    This is for local DCu2019s path
    C:\Documents and Settings\XYZ(UserName)\.dtc\1\DCs\com.compname(Package Name)\demo\mrcf\_comp\gen\default\deploy----Here .ear file is available.
    This is for normal WDJAVA Application .ear file.
    Here that .ear file is available  in under Project folder only.
    U can take .ear file here and then send to BASIS team.theu will deploye the QA and PRO Systems by using SDM
    I hope this is help full for you,
    Regards
    Vijay

  • How Do I get a File Path from a FileName?

    Hi there,
    I was wondering how do i get a file path(i.e) directory only from a file name.
    Say i got a file called "C:\Test.txt" is there a method in java that will allow me to only get "C:\"?
    I've tried getPath(), getAbsolutePath() and they all return the directory and the file itself.
    Please Help
    James

    String path = file.getPath();
    String name = file.getName();
    int i=0;
    for(i=0; i< (path.length()-name.lenth() ); i++){
    String temp = path.substring(i, i+name.length());
    if(temp.equals(name) break;
    return path.substring(0,i);

  • Issue with Getting the file path from InputFile component

    Hi,
    One of our requirement is like below:
    I am working on ADF 11g (latest release R1) page. User will select the file and when he/she clicks on the Save button we need to store the file path in the database.
    In the database file_path is varchar2(300). We need to store just the file path. I am using InputFile component but filepath is not getting inserted.
    This is really urgent. It would be really appreciate if anyone can guide me on this.
    Thanks
    MC

    Hi Mahesh,
    I have manage to store the file path from the InputFile component in Jdev 11g. I found the file upload script from this forum and manage to alter it so that i could save the file path to the database. But my problem is to retrieve it back to view as a document. Hope this will help you :)
    This is an example of what I have manage to save to my DB :
    (CLOB) //192.168.238.53/c$/Research/Docs/0906160744/EyeCandyLog.txt
    In my form, I save the file path first before I update the other fields. My code is something like this :
    public void uploadFile(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    InputStream in;
    FileOutputStream out;
    if(tanda == 0){
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    id = rS01Proposal.dptProposalid();
    tanda = tanda + 1;
    System.out.println("tanda"+ tanda);
    } catch (Exception ex) {
    ex.printStackTrace();
    System.out.println("id"+id);
    proposal = id.substring(6);
    System.out.println("proposal"+proposal);
    UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
    String fileUploadLoc = "//192.168.238.53/c$/Research/Docs/"+id+"/";//The place where file will saved
    //create upload directory
    boolean exists = (new File(fileUploadLoc)).exists();
    if (!exists) {
    (new File(fileUploadLoc)).mkdirs();
    if (file != null && file.getLength() > 0) {
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage("File Uploaded " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    *// extracting the file message to get the path*
    context.addMessage(valueChangeEvent.getComponent().getClientId(context), message);
    columnL = valueChangeEvent.getComponent().getClientId(context);
    column = columnL.substring(9);
    System.out.println(column);
    columnLengkap = "RS01"+column.toUpperCase();
    System.out.println("columnLengkap"+columnLengkap);
    *try {*
    out = new FileOutputStream(fileUploadLoc + "" + file.getFilename());
    in = file.getInputStream();
    *for (int bytes = 0; bytes < file.getLength(); bytes++) {*
    out.write(in.read());
    in.close();
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    } else {
    String filename = file != null ? file.getFilename() : null;
    String byteLength = file != null ? "" + file.getLength() : "0";
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage(FacesMessage.SEVERITY_WARN, " " + " " +
    filename + " (" + byteLength + " bytes)",
    null);
    context.addMessage(valueChangeEvent.getComponent().getClientId(context),
    message);
    System.out.println(fileUploadLoc+file.getFilename());
    a = fileUploadLoc+file.getFilename();
    b = b + 1;
    if (flagInsert == 0){
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    rS01Proposal.insertDoc(id,proposal,columnLengkap,a);
    flagInsert = flagInsert + 1;
    System.out.println("tanda"+ tanda);
    //session
    ProposalSession.storeCurrentProposalId(id);
    } catch (Exception ex) {
    ex.printStackTrace();
    }else{
    // update proses
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    rS01Proposal.updateDoc(id,proposal,columnLengkap,a);
    flagInsert = flagInsert + 1;
    //session
    ProposalSession.storeCurrentProposalId(id);
    System.out.println("tanda"+ tanda);
    } catch (Exception ex) {
    ex.printStackTrace();
    }

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the same folder. InDesign does not remember the file path that was used previously in the document. This is very annoying.
    IS THERE A WAY TO SET THE DEFAULT FILE PATH, OR LOCATION, FOR IMAGE FILES?
    I have looked through the preferences, searched the forums and internet, but I have not found any reference to setting default paths. Is there a setting like the one in MS Word called "File Locations" on the Options toolbox?
    Thank you.

    Since you're working in ID on Windows, you can take advantage of a neat trick in Windows. Copy the file path out of the File Explorer address bar and paste it directly into the Place filename field. That will jump you directly to the desired volume. For example, let's say I want to place a graphic located at X:\PS Jobs\May PS\709672bp\Working Source Files\Links. I copy that entire path from the File Explorer address bar, go to InDesign, select File|Place, and press Control + V to paste that path into the filename field. I press the Open button and Shazam! I'm there instantly, without a bunch of navigation.
    You can do the same thing in the File|Save As and File|Export fields. Let's say you want export a PDF file from InDesign to the volume X:\PS Jobs\May PS\709672bp\Working PDF Files. First copy the desired file path from the File Explorer window. In InDesign, select File|Export, click anywhere in the filename field, and press the Home key to move the insertion point to the front of the filename. Press Control + V to paste that path in front of the filename, then add the backslash character (\). The filename will now look like this: X:\PS Jobs\May PS\709672bp\Working PDF Files\Filename.pdf. Press the Save button to bring up the Export Adobe PDF window. Select your desired PDF preset, press the Export button, and the PDF file will magically appear in the desired volume.
    This sounds really complicated, but it's not. In practice, it only takes a few seconds. I probably save an hour's worth of needless navigation every day with this technique.

  • Win vs. Mac File Paths

    I have a script that Peter Kahrel helped me with (actually he pretty much wrote the whole thing). The script saves out each page of an Indesign doc as jpeg. It also takes the text from a text box tagged "jobnumber" and inserts it into the name of the saved jpeg.
    It works great on the Mac. When I move it over to Windows it inserts a weird character before and after the "jobnumber".
    On the Mac I can take the folder name which is a variable called 'path' and insert that into the filename as well but it doesn't work on Windows. Does anyone know what the differences are between Mac and Win paths in JS? I tried a few things to no avail.
    Here's the script:
    ==========================================
    var path = Folder.selectDialog ("Choose a Folder")
    app.jpegExportPreferences.resolution = 72;
    app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
    app.activeDocument.sections.everyItem().includeSectionPrefix = false;
    //path = app.activeDocument.filePath + '/';
    p = app.activeDocument.pages.everyItem().getElements();
    for (i = 0; i < p.length; i++)
    jpg_name = p[i].textFrames.item ('jobnumber').contents + '.jpg';
    app.jpegExportPreferences.pageString = p[i].name;
    app.activeDocument.exportFile (ExportFormat.jpg, File (path + "/" + jpg_name));
    ===========================================
    As always, Thanks a million,
    Randy

    I forgot, here's a screenshot:
    http://reallyrandy.com/misc/screenshot2.jpg

  • File Path Names

    I want to put the File path name of our documents to the head of files as a reference. I know this can be done with Macros on Word/Excel, but is there a way to achieve this with applescript in pages/numbers?

    Insert Filename was one of the features that made it's appearance in iWork '09. The feature has an option to include the entire path. I imagine that with a script it might be possible to insert the filename path in a Pages '08 document.
    Jerry

Maybe you are looking for

  • To disable the horizontal scrollbar and to create a next button to navigate

    To disable the horizontal scrollbar and to create a next button to navigate through the records. At present I create a JSF page and drag and drop my table view and then using the Tuning property I have limited the number of records to be shown. But I

  • I updated iTunes, now it dosen't work

    I updated iTunes now i get this error "iTunes cannot run because some of its required files are missing. Please reinstall iTunes." Is it going to count this computer again as another copy of all my songs. This computer is at least two of the 'copies'

  • Size Limit to iTunes Database?

    Hi Folks! I am now up to >17,000 songs, 72Gb of burned CDs. However, iTunes keeps getting slower and slower and slower. To the point of now it won't complete a CD burn. I have rebooted the PC (yes, on my PC not my Mac), etc. etc. Is there a size limi

  • No-video even after quicktime re-install

    My podcasts have no-video and once a video is put into itunes it no longer has video but outside of itunes it's fine. I uninstalled quicktime ran a registry cleaner , restarted th computer and reinstalled quicktime but same problem persists. My file

  • Quick Question: package names com.whatever.blah.ClassName

    I want to put a bit more time aside this week to explain things I see in Java to my old brain (I don't quite 'get it' like you younger people :-)) I often see things like this in example code: import com.macfaq.io.SafeBufferedReader;and it's crossed