I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me
Dear ALL,
i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
var myBookFileName ,myBookFileName_temp;
if ( myFolder != null )
var myFiles = [];
var myAllFilesList = myFolder.getFiles("*.indd");
for (var f = 0; f < myAllFilesList.length; f++)
var myFile = myAllFilesList[f];
myFiles.push(myFile);
if ( myFiles.length > 0 )
myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
myBookFileName_temp=myFolder.name ;
myBookFile = new File( myBookFileName );
myBook = app.books.add( myBookFile );
myBook.automaticPagination = false;
for ( i=0; i < myFiles.length; i++ )
myBook.bookContents.add( myFiles[i] );
var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
var bookComps = myBook.bookContents;
if (bookComps.length === 1)
bookComps = [bookComps];
var myPDFExportPreset = app.pdfExportPresets.item("AER6");
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
//myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
//myBook.exportFile(pdfFile, false, pdfPref, bookComps);
myBook.close(SaveOptions.yes);
Change the below line:
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
to
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
Vandy
Similar Messages
-
I am trying to download the latest version of iTunes to my PC (windows XP) and I keep getting an error message or two. One is that it can't uninstall the previous itunes version, the other is that it can't find itunes.msi. I have tried removing the old version in add/remove programs, but it says the same error. I tried deleting every thing that has itunes in the file/folder/etc and it didn't help.
(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
I downloaded the icloud software on my computer in order to sync calenders and contacts using Windows 2007, but I keep getting an error message when trying to sync my icloud and Outlook calendars. I downloaded it for the first time a month ago and had it working but it stopped syncing, so I deinstalled the iCloud software and reinstalled, but keep getting the error message "Your setup couldn't be started because of an unexpected error. What do I do now? Can anyone help with this?
Hello easbda,
Thank you for providing the details of the calendar issue you are experiencing with your iPhone. I recommend following the steps in the section titled "Troubleshooting on Microsoft Windows (Microsoft Outlook)" in the following article to assist with syncing your calendar events between your devices:
iCloud: Troubleshooting iCloud Calendar
http://support.apple.com/kb/ts3999
Thank you for using Apple Support Communities.
Best,
Sheila M. -
I am trying to setup my Macbook Air to make & receive calls but I am getting an error message stating "FaceTime and iCloud must be signed in to the same Apple ID to use iPhone Cellular Calls" when selecting the box to turn on iPhone cellular calls on my Mac. I have OS X Yosemite 10.10.2. I am signed into iCloud, FaceTime, & Messages with the same Apple ID. Is anyone encountering this?
Hi,
The Same Network is only needed for the Text Forwarding part of the Messages app on both and the iMessages account's Text Forwarding.
I understand Blue Tooth is On but have your paired the two devices for Handoff and Continuity ?
I cannot do this bit on my Mid 2011 iMac so I am a bit lost as to the actual settings.
8:13 pm Thursday; April 9, 2015
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
I just subscribed to IHome but when it tries to gather information about my music library, I get an error message that my Itunes is not responding and then it shuts down. Has anyone else had this problem?
Thanks so much but none of that helped. It was driving me crazy because it would back up another external drive. I just changed the name of the drive from iPhoto/iTunes Library to Media Libraries and IT WORKED!! I guess for some reason it didn't like the drive being called iPhoto or iTunes ???? I don't understand but I have tried so many solutions and exchanging things out but the name change did it????!!!
Thank you for your help and replying to this. Guess I made my own issue! -
I am trying to upload pictures from my phone to my computer and I'm getting an error message that a photo is corrupted so it can't download. I don't know how to tell which of the photos is corrupted so that I can delete it and try again? Thanks!
If this is an iCloud account the Outbox only appears when sending an email, so if it is still trying I suppose it should be showing now (not sure though, hard to replicate this)
What type of email account? -
My iPhone 4 is using 4.3.3 and I want to update to iSO 6.1. I can back it up and it starts to download it through iTunes but then I get an error message 0xE8000067.
Tried all the things on the apple support site (checked USB port, deleted the 3 exe files in Task Manager, tried a new cable). None worked. Got the same message on my old computer.
Any ideas??Amazing help from apple support over the phone. Restoring the computer fixed the problem.
-
Im trying to download Final Cut Pro from the App store but I keep getting an error message when I hit "buy app"
The error message reads: We could not complete your request, please contact Itunes support to complete this option.You are almost there:
iTunes Store Support
http://www.apple.com/emea/support/itunes/contact.html -
I am trying to add my brother printer series HL-2270DW, but I keep getting an error message that the software is currently unavailable. How do I fix this?
I am also having this same problem. I have updated my computer. I have downloaded the complete brother driver package from Apple as well as the drivers from Brother. As far as I can tell, all have been installed successfully. It is only when I try to ADD the printer do I get that message. Both my roomate and I have Macbook Airs so we cant use the disk which came with the printer. This is irrelivant anyway as the drivers have been successfully downloaded and installed. SO FRUSTRATING!!!!!
-
I have tried to install the latest version of itunes to my PC on Windows Vista & I keep getting - "Runtime Error!" R6034 & itunes will not open.
I have tried re-installing itunes but it is the same.....any advice?Try the following user tip:
Troubleshooting issues with iTunes for Windows updates -
There was as error when i tried to update my itunes. I am trying to reinstall but now i get an error message saying to verify if I am able to have apple mobile service. How do i do that?
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (if this won't uninstall press on)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
Please note:
Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
HT1925: Removing and Reinstalling iTunes for Windows XP
HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
tt2 -
I updated my itunes to 11 and found out my phone and ipod were not compatible. I uninstalled it and reinstalled 10.7 but now I get an error message when I try to open itunes saying "the file cannot be read because it was created by a newer verison" What do I do?
Thank you for clarify I'm supposed to read the ENTIRE article. I thought I was just supposed to read the title and magically everything will fix itself. I appreciate you taking the time to help me however I do not appreciate the caps and the way you have addressed the situation. If you are not going to kindly help people/make suggestions just don't try! And for the record my conclusions are not illogical, the iOS7 thing is on the website in small font (which I got by reading the ENTIRE thing) and you should really find a new hobby because your socialization skills need some help! That goes for you too Chris. Not everyone is a tech nerd
-
I have a tried to format my seagate free agent 1TB external hard drive so I can use it, but I keep getting an error message saying it failed. Can n e 1 help me plz
This article has a link for more information on finding your profile directory: [[Fix the "Could not initialize the application's security component" error message]]. On Windows 7, you can try this (either in a Windows Explorer window address bar or from the start menu search box):
%APPDATA%\Mozilla\Firefox\Profiles
You may see one folder in there and that's the one you want. If you see more than one, look for the one with the most recently modified files. -
I tried to upgrade to Firefox 5 this morning. Now Firefox 5 won't open. Gives me error message, you have to reboot computer. I did 4 times, but there is no change. In a loop. I tried downloading ver 5 from IE, but still have the same problem.
Mark AndersonIt just pops up saying Itunes has stopped working and then says it is collecting info about the problem.
Good, your Vista will have been collecting additional information about those errors. Fingers crossed, that will give us a heads up on the cause of the problem.
Head into your Problem Reports and Solutions control panel and open your Problem History. Look for recent iTunes problem reports, open them up and have a look through.
Are they pretty much saying the same sort of thing? If so, paste the contents of a typical report into a reply here so we can have a look.
Maybe you are looking for
-
Unable to transfer large files from MB to External HDs
Hi, This may be an unusual one. My 1st edition Macbook won't let me transfer large files to my external hard-drives, either by USB, Ethernet or wirelessly through my home wi-fi network. I've started video editing so I'm importing DVcam tapes through
-
Dear All, While running the payroll,error like Assignment to feature 40EPF did not take place appears. Current month (i.e. June 2011 PF is not deducting).whereas the PF arrears is deducted for April'11 and May'11. In error screenshot it is showing a
-
Why do iPhoto slideshows have such low resolution?
I have used iPhoto to make slideshows. When you preview the slideshow the resolution is great, but when you actually create the slideshow the images are really low res. Why? iDvd does the same thing, what is up? Does version 6 have better res on slid
-
Coulnd not resolve mx:script "or" mx:operation to a component implementation
i'm execising flex builder 2's help lessons step by step. i'm coding what the guide tell but i've problem when i use <mx:script> tag or <mx:operation> tag. i couldn't find why it is like that and so i couldn't solve the problem. i'm giving you the 2
-
I have Oracle 10.2 database installed on Windows 2003 server with system, application and data partitions. It is also SAN drive attached to this server, with lot of free space. I would like to build standby database for testing purposes. Is it possib