#21
|
||||
|
||||
![]()
It still just says Windows, but feel free to go ahead and change it. Although my suggestion to put the version information in your signature is mainly targeted to users who are only on one platform, which is the most common scenario. In any case, when you're reporting an issue or asking a question, you should still specify the specific OS and FusionPro versions related to what you're posting, especially if your signature is going to list more than one version.
Quote:
In fact, you don't even need to specify a path at all (relative or absolute) to accomplish what you're doing here. Instead of specifying a path and file name with FusionPro.Composition.outputFileFullPathName, you can simply set the file name with FusionPro.Composition.outputFileName, and the output will go into the same folder as the output file specified in your composition settings. For instance: Code:
FusionPro.Composition.outputFileName = fileName; Quote:
You can also type other relative path specifications in the "Search Path" box. For instance, typing "../RESOURCES" there will reference a folder that's a sibling of your template folder. And ".." will reference the parent folder of your template folder. Note also that you can enter multiple paths in the "Search Path" box, using semicolons to delimit them. So you can type something like "Graphics;../Graphics;../data" and all of those folders will be searched, in order (after the input and format/template file folders, which are always searched first, as I noted in my previous post). We designed FusionPro to make it easy to locate resources and things without having to write any code or type path specifications, while still providing hooks for users who need more advanced functionality. (And for users with highly advanced requirements, we recommend FusionPro Server, which allows even more control over every aspect of the job through CFG file settings and other parameters than FusionPro Desktop.) So again, to access resources from a subfolder of your main template folder, all you need to do is type that folder's name in the "Search Path" box. You don't need any dots or slashes or colons. For the output file, that's a little more complicated because you do need some JavaScript, but as noted previously, if that's also going into a subfolder of your template folder, you still don't need to type any dots or colons for that. So the whole thing about how many dots or colons or slashes goes away, and there's no need to document any specific path formats.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() Last edited by Dan Korn; April 6th, 2010 at 05:03 PM.. |
#22
|
|||
|
|||
![]()
Dan - thanks once again for such a clear explanation.
I now feel completely informed about how FP handles paths and the way it references files. Very interesting to learn that I don't even need to use relative paths in the way I had assumed. Please forgive me for banging on about the documentation - and I promise this is the last time I mention it - but I really think a brief explanation could be included. Let me give some examples... At the bottom of page 101 of the Rules System Guide it shows the following code - Code:
FusionPro.Composition.outputFileFullPathName = "C:\\path\\" + Field("name") + ".pdf" Also in the section 'Help! The name of my graphics folder changed' on page 107 it mentions adding paths to the Composition Settings as you suggest but again it implies that you must hard-code the FULL path. Do you see why I made the assumptions that I did? I'm just trying to point out to you how and why I thought I had to hard-code the paths. Whether you guys change the documentation or not makes no difference to me now but it could have saved a lot of time for myself, you and Eric if it was explained a bit more clearly. Also note that the two references above are in the 'Tips and Tricks' section which I think it's fair to say is what many would consider a more 'Advanced' section. Anyway, look, I'm not after a debate - I'm sure we both have better things to do! In fact I'll make this my last post on the subject of documentation but I just wanted you to understand where I'm coming from and hopefully you'll see that I'm not just being deliberately awkward about this. Thanks once again for all your input and clarifications. Best wishes, Juerg
__________________
FusionPro Desktop 6.2P1a Windows XP & Mac OS X 10.6 (Snow Leopard) |
#23
|
||||
|
||||
![]()
Thanks Juerg. I have entered case FP-11390 requesting that the documentation be updated to address the issues you've brought up. Sorry if I seemed argumentative; your concerns are completely valid. Thanks especially for those specific examples. Your continued feedback is appreciated and will help us to improve the product. Hopefully this forum will help to fill in some of the documentation gaps as well, so keep asking questions!
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#24
|
|||
|
|||
![]() Quote:
Anyway, I've got the answers I was looking for thanks to yourself and Eric - and yes, I will certainly be asking more questions! (I have a few lined up already!) Cheers for now, Juerg
__________________
FusionPro Desktop 6.2P1a Windows XP & Mac OS X 10.6 (Snow Leopard) |
#25
|
|||
|
|||
![]()
Does anyone know if relative paths will work with paths to external data files?
matrix = new ExternalDataFileEx("/Users/UserA/Jobs/L142/Data/L142_matrix.txt", "\t") matrix = new ExternalDataFileEx("../Data/L142_matrix.txt", "\t") The former works, the latter does not. I'm running 7.2 on OS X and my folder structure is: -Jobs --L142 ---L142_Job.pdf --Data ---datafile.txt ---L142_matrix.txt Last edited by jshobar; July 13th, 2011 at 05:10 PM.. |
#26
|
||||
|
||||
![]() Quote:
Quote:
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#27
|
|||
|
|||
![]()
Thanks Dan! I wrongly thought it was relative to the PDF file, not the input file. Thanks for the clarification.
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|