Ask a Question related to Adobe Indesign Macintosh, Design and Development.
-
mikewatson@adobeforums.com #1
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
-
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.... -
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... -
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? ... -
Invalid filename
I am a beginner for Dreamweaver MX. When i use the function of inserting interactive image by: Insert --> Interactive Images --> Flash Button /... -
the trace filename?
mikharakiri@yahoo.com (Mikito Harakiri) wrote in message news:<bdf69bdf.0212111606.2d09617b@posting.google.com>... Normally the process id of the... -
Eric_@_MCA@adobeforums.com #2
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
-
Gerald_Singelmann@adobeforums.com #3
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
-
Nini Tjäder #4
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
-
mikewatson@adobeforums.com #5
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
-
Bob Levine #6
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
-
mikewatson@adobeforums.com #7
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
-
Bob Levine #8
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
-
mikewatson@adobeforums.com #9
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
-
Buko@adobeforums.com #10
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
-
Eric_@_MCA@adobeforums.com #11
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
-
Eric_@_MCA@adobeforums.com #12
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
-
Andrew_Kavanagh@adobeforums.com #13
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
-
Eric_@_MCA@adobeforums.com #14
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



Reply With Quote

