Exporting Changes my filename

Ask a Question related to Adobe Indesign Macintosh, Design and Development.

  1. #1

    Default Exporting Changes my filename

    Sometimes when I go to export a pdf the filename has somehow changed to a new file name.
    It doesn't happen all the time only sometimes
    mikewatson@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. filename when exporting from a script
      I'm writing a script that we will be using for sending jpeg proofs to customers, and have run into a slight problem with certain types of filenames....
    2. Getting only the filename ??
      I'm creating a player that allows you to have multiple files stacked and play anyone of them. The problem now is i need to get only the filename out...
    3. Get .PHP Filename?
      I've been looking thru my PHP functions and can't find what I need - is there a function that will tell me what .php file is currently executing? ...
    4. Invalid filename
      I am a beginner for Dreamweaver MX. When i use the function of inserting interactive image by: Insert --> Interactive Images --> Flash Button /...
    5. the trace filename?
      mikharakiri@yahoo.com (Mikito Harakiri) wrote in message news:<bdf69bdf.0212111606.2d09617b@posting.google.com>... Normally the process id of the...
  3. #2

    Default Re: Exporting Changes my filename- ARGGGG!

    Do it via a script. The script can get the name from the document every time.

    Something like:



    --Set your preferred export settings
    set PDFExportName to "[High Quality Print]"

    --Set up the path to the folder
    set PDFPath to (((path to home folder) as string) & "Desktop:Confirming") as alias

    --Make a PDF name from the document name
    set actDoc to name
    if actDoc ends with ".indd" then
    set strippedDoc to (characters 1 thru ((count every character of actDoc) - 5) of actDoc) as string
    else
    set strippedDoc to actDoc
    end if
    set PDFName to (PDFPath as string) & strippedDoc & ".pdf"

    --Export PDF
    try
    tell application "Adobe InDesign CS2"
    --Do showing options no if you're dead certain the above options are correct
    export document actDoc format PDF type to PDFName showing options yes using PDF export preset PDFExportName
    end tell
    on error
    beep 2
    display dialog "Error exporting PDF!"
    end try

    Eric_@_MCA@adobeforums.com Guest

  4. #3

    Default Re: Exporting Changes my filename- ARGGGG!

    Eric,

    thank you for the script.

    One hint: instead of



    set strippedDoc to (characters 1 thru ((count every character of actDoc) - 5) of actDoc) as string



    you can say



    set strippedDoc to text 1 thru -5 of actDoc



    Took me ages to find that in some reference ;)

    Gerald
    Gerald_Singelmann@adobeforums.com Guest

  5. #4

    Default Re: Exporting Changes my filename- ARGGGG!

    mikewatson - this is an os thing and happens if you happen to click a filename in the list when exporting. It can then take on that name on the file you are about to export. And it has no conenctions at all with scripting or scripts...
    Nini Tjäder Guest

  6. #5

    Default Re: Exporting Changes my filename- ARGGGG!

    I appreciate the attempt at the script but that's overkill for something as simple as this.

    Nini - I don't think is an OS thing I have read before what you are talking about and I am aware if I click on a name it picks it up, however in my case without clicking anything InDesign is picking up a previous version of the file name.

    For example I'm working on Newsletter_03.indd when I export it should read Newsletter_03.pdf instead it goes to an older filename like Newsletter_02.pdf.
    mikewatson@adobeforums.com Guest

  7. #6

    Default Re: Exporting Changes my filename- ARGGGG!

    That's the way it works. The name of the last file exported is saved as
    part of the file.

    Bob
    Bob Levine Guest

  8. #7

    Default Re: Exporting Changes my filename- ARGGGG!

    That's not correct - because it Does work some of the time.

    Example I just worked on 5 different files - 2 picked up the correct names and 3 picked up older names.

    The only variable I can add is that I have worked on these files on a few machines. Could there a preference somewhere on one machine that is responsible?
    mikewatson@adobeforums.com Guest

  9. #8

    Default Re: Exporting Changes my filename- ARGGGG!

    You're working differently. On some files you're saving after the export
    and on others you're saving before.

    You're not the first to notice or complain about this. It's been
    discussed many times in the past.

    Bob
    Bob Levine Guest

  10. #9

    Default Re: Exporting Changes my filename- ARGGGG!

    I'm sure I'm not the first or the last.

    I found the reason here: <http://www.adobe.com/support/techdocs/329416.html>

    I must say I really don't understand the logic behind making InDesign behave that way.

    Thanks for your help Bob

    Here's a related question - What does exporting to an Interchange format do to a file? Will it shift type, images, colors, etc?
    mikewatson@adobeforums.com Guest

  11. #10

    Default Re: Exporting Changes my filename- ARGGGG!

    it will allow the file to be opened in CS.

    another use is to clean out corruption.
    Buko@adobeforums.com Guest

  12. #11

    Default Re: Exporting Changes my filename- ARGGGG!

    Wow. That's definitely a cleaner way to code that! Thanks for the info.
    Eric_@_MCA@adobeforums.com Guest

  13. #12

    Default Re: Exporting Changes my filename- ARGGGG!

    Actually, it's not *that* much overkill. I don't understand why ID works the way it does either, but the point is that after I've assigned the script to a hot key, it's no longer an issue I have to worry about again. 8)
    Eric_@_MCA@adobeforums.com Guest

  14. #13

    Default Re: Exporting Changes my filename- ARGGGG!

    Ok and how do you assign the script to a hot key Eric?
    And I am no Apple or Java script guy.
    So please tell me in novice terminology please.
    Thanks
    Andrew_Kavanagh@adobeforums.com Guest

  15. #14

    Default Re: Exporting Changes my filename- ARGGGG!

    Hi Andrew,

    Under the Edit menu, go to Keyboard Shortcuts.

    In the dialog, in the Product Area choose Scripts, then choose the script from the list, then type your new hotkey in the bottom box and if it doesn't conflict with anything, click the Assign button. That's it!

    Some notes on installing the script:

    Copy the script from above, launch the Script Editor in the Applications->Applescript folder, and type these two lines in before pasting. (I left them out so the page didn't indent in forever and ever).

    tell application "Adobe InDesign CS2"
    tell active document

    Then paste in the contents of the script from my first post and close the two tell statements

    end tell
    end tell

    The very last thing I would do is trim the path from "Desktop:Confirming" to just just "Desktop", which will dump the export on your Desktop. I forgot that I was using a folde called Confirming on my Desktop, which you obviously won't have... Or you can insert your own folder path in here, like if you want it to go into your Documents folder instead.

    Save into your Scripts folder. Easiest way to get to the Scripts folder is to cmd-double-click on another script in the palette if you have any. Second easiest way is to cmd-click the InDesign icon in the Dock, then go into Presets->Scripts from there.

    Hope that is enough to get you going on it!
    Eric_@_MCA@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139