Script that worked in CS does not work in CS4 - multiple open page, print , pdf export and close

I had a script that worked great for me in Indesign CS. But now does not work in CS4. Anyone knows what needs to be done to make it work again ?
When I drop folder with indesign files on top of this script:
1. opens first page
2. turns specific layer on
3. prints using preset
4. exports using preset
5. close without saving
6. next page
Anyone who can give me solution or idea how this should work is greatly appreciated.
on open sourceFolders
repeat with sourceFolder in sourceFolders
tell application "Finder"
try
-- If you would like to include subfolders, you say - every file of entire contents of folder…
set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias list
on error -- work around bug if there is only one file
set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias as list
end try
end tell
if idFiles is not {} then
tell application "Adobe InDesign CS4"
set user interaction level to never interact
repeat with i from 1 to count of idFiles
open item i of idFiles
tell document 1
try
set visible of layer "ImagesTag_Layer" to true
end try
set myPreset to "letter size" -- name of print style to use
with timeout of 700 seconds
print using myPreset without print dialog
end timeout
set myPreset1 to "pdf preset name" -- name of pdf export style to use
set myName to the name -- name includes .indd should remove at some point          
with timeout of 700 seconds
export format PDF type to "users:temp:Desktop:pdf:" & myName & ".pdf" using myPreset1 without showing options -- set path here format ComputerName:Folder1:Folder2:......:FileName.pdf
end timeout
close without saving
end tell
end repeat
set user interaction level to interact with all
end tell
end if
return 10 -- try again in 10 seconds
end repeat
end open

(Disclaimer: me not an AS guy!)
First thing I noticed is the interaction level is set off. If you comment out this line
set user interaction level to never interact
you might be able to pinpoint the exact error -- ID will display a standard "failed" dialog, hopefully showing the line that it fails on.
A quick question: the script assumes two presets in your InDesign: one for print ("letter size") and one for PDFs ("pdf preset name"):
set myPreset to "letter size" -- name of print style to use
set myPreset1 to "pdf preset name" -- name of pdf export style to use 
Do these actually exist in your CS4, with the same (non)capitalization and spaces?

Similar Messages

  • I have just downloaded Yosemite but I find that Photoshop Elements 11 does not work properly. If I use a tool like a paint brush or spot healer I cannot paint a full stroke?

    I have just downloaded Yosemite but I find that Photoshop Elements 11 does not work properly. If I use a tool like a paint brush or spot healer I cannot paint a full stroke does anyone else have this issue or know a solution?

    Many thanks that does work. But it now leads to another question is this simply a trackpad issue and if so will it be fixed? I use Elements every day and was thinking I would have to go back to Mavericks.

  • HT4995 My iPad 2 Location Service works fine but does not work on my home Airport router. How can I fix the problem?

    My iPad 2 Location Service works fine but does not work on my home Airport router. How can I fix the problem?

    lbryan1987 wrote:
    I dont want the button problem solved i need to know how to restore the phone without using that button or going into settings
    You don't in the condition it's in. You will either have to get the phone replaced by Apple or pay a 3rd party to repair it.
    there seriously should be more than two ways to solve this other wise apple is useless and we will never buy another apple product.
    Seriously? It's physically broken!

  • Version 8.1 Can't Activate, Can't Update, Can't create/export NX *.prt Files to 3D PDF. Screen Capture feature does not properly represent Model/Bodies. Printing from NX does not recognize Adobe Acrobat 3D as a printer to try and export.

    Version 8.1 Can't Activate, Can't Update, Can't create/export NX *.prt Files to 3D PDF. Screen Capture feature does not properly represent Model/Bodies. Printing from NX does not recognize Adobe Acrobat 3D as a printer to try and export.
    I was able to register it though.

    Not a surprise. The Acrobat 8 product family passed into End of Support back in 2011.
    Be well...

  • I have just upgraded to Lion and I now find that my VPN network does not work properly.  It worked fine with Leopard.

    I have just upgraded to Lion and now my VPN connection does not work properly.  It was working fine when I was using Leopard.  The VPN is My Private Network and we use it to link to BBC iPlayer when abroad.  It will actually connect to the VPN site and shows a UK IP address, but then when we try to load an iPlayer programme we get the message from the BBC that we are not in the country and, therefore, cannot access the site.  Any suggestions?

    Have a look at System Preferences, Accessibility, VoiceOver.
    (Command - F5).
    charlie

  • JavaScript that controls the player does not work

    Hello everyone
    I have a page with an embedded video on Windows media player, and developed a javascript to control the video.
    The parties that control the play, stop, pause, volume, and fast reverse fast forward work very well, but when I put a function that advances the video marks the next and previous does not work in Safari only works in Firefox and the worst and does not accuse me errors simply does not work, then I do not know what to do if someone can help me would greatly appreciate it
    The codes are below
    Code for embedded player
    <div id="Dvideo"  style="position:absolute; width:400px; height:266px; z-index:3; visibility:hidden; left: 14px; top: 85px;">
                    <object 
              id="contentPlayer"
              name="contentPlayer"
              width="400"
              height="266"
              type="application/x-ms-wmp">
                              <param name="AnimationAtStart" value="0" />
                              <param name="AutoStart" value="0" />
                              <param name="CurrentMarker" value="0" />
                              <param name="EnablePositionControls" value="true" />
                              <param name="EnableTracker" value="0" />
                              <param name="ShowAudioControls" value="0" />
                              <param name="ShowCaptioning" value="0" />
                              <param name="ShowControls" value="1" />
                              <param name="ShowDisplay" value="0" />
                              <param name="ShowGotoBar" value="0" />
                              <param name="ShowPositionControls" value="0" />
                              <param name="ShowStatusBar" value="0" />
                              <param name="ShowTracker" value="0" />
                              <PARAM NAME="EnableContextMenu" VALUE="false">
                              <param name="AllowChangeDisplaySize" value="true" />
                              <PARAM NAME="CurrentPosition" VALUE="false">
                              <param name="SRC" value="video.wmv" />
                              <param name="TransparentAtStart" value="1" />
                              <param name="uiMode" value="none"/>
                              <embed
              src="video.wmv"
              width="400"
              height="266"
              autostart="0"
              type="application/x-ms-wmp"
              id="contentPlayer"
              name="contentPlayer"
              showdisplay="0"
              showcontrols="1"
              animationatstart="0"
              transparentatstart="1"
              showstatusbar="0"
              showtracker="0"
              currentmarker="0"
            CurrentPosition="0"
              enablepositioncontrols="true"
              enabletracker="0"
              showcaptioning="0"
              showaudiocontrols="0"
              showgotobar="0"
            EnableContextMenu="false"
            AllowChangeDisplaySize="true"
              uiMode="none"
              showpositioncontrols="0"></embed>
                            </object>
    javascript code
        function play()
                        var player=document.getElementById('contentPlayer');
                             document.getElementById('DInfo').style.visibility = 'hidden'
                        document.getElementById('Dvideo').style.visibility = 'visible'
                        player.controls.play();
        function pause()
                        var player=document.getElementById('contentPlayer');
                      player.controls.pause();
        function stop()
                        var player=document.getElementById('contentPlayer');
                      document.getElementById('DInfo').style.visibility = 'visible'
                        document.getElementById('Dvideo').style.visibility = 'hidden'
                        player.controls.stop();
    function Volume()
              document.getElementById('contentPlayer').settings.volume  = document.getElementById('contentPlayer').settings.volume + 30 ;
    function VolumeDown()
              document.getElementById('contentPlayer').settings.volume  = document.getElementById('contentPlayer').settings.volume - 30 ;
    function mute() {
              var player = document.getElementById('contentPlayer');
              var mutebutton = document.getElementById('bt4');
              if (player.settings.mute) {
              player.settings.mute = false;
              return player.settings.volume + "%";
              mutebutton.src ="../images/mute_false.gif";
              } else {
              player.settings.mute = true;
              return "mute";
              mutebutton.src ="../images/mute_true.gif";
    function fastforward()
              var player=document.getElementById('contentPlayer');
              player.controls.fastForward();
    function fastreverse()
              var player = document.getElementById('contentPlayer');
              player.controls.fastReverse();
    function GoNextMarker (mymark)
              var player = document.getElementById('contentPlayer');
              var mymark = player.controls.currentMarker + 1
              player.controls.currentMarker = mymark;
    function GoPreviusMarker (mymark)
              var player = document.getElementById('contentPlayer');
              var mymark = player.controls.CurrentMarker - 1
              player.controls.currentMarker = mymark;
    </div>

    This has been discussed over and over and over and over and over and over and over and over again.
    Do a forum search (right side of this page) and you will find countless posts on this.

  • Installed latest Firefox update v25.0.1 on WinXP Pro 2002 SP2 and now it does not work. Reset does not work.

    I just allowed FireFox to update itself. Now the version is at 25.0.1
    Running on Windows XP Pro version 2002 SP2. FireFox has ALWAYS worked. NOW IT DOESNT. I can't even use it to connect to my own router login screen. IT IS DEAD.
    RESET DID NOT WORK
    SAFE MODE DID NOT WORK
    What the F*** happened?

    2.Remove Firefox from your program's list of trusted or recognized programs, then add it back. For detailed instructions, see Configure firewalls so that Firefox can access the Internet.
    The detailed instructions go into firewall config bs. HOW DO I remove Firefox from my program's list of trusted or recognized programs? What does this have to do with Firewalls? Why is this happening in the first place? Can I revert to an earlier version. My Firewall is OFF. These instructions suck.

  • Why does my app store account tell me that my payment method does not match my bank's records. my card is valid and works for iTunes but not the app store.

    While trying to change my Credit Card info: The app store tells me that my payment method information does not match my bank records and to try again or enter a new payment method. My CC is valid and its the same CC ive had for a while. This CC info works for iTunes but is not being accepted for the App store.I have changed this info online but cannot change it on my iPhone. Can anyone tell me what i need to do?

    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • How to I stop pages from redirecting, whent he advanced setting that should prevent it does NOT work?

    Here is the situation. I have the advanced setting checked to warn me when a sit tries to redirect or reload a page, which is supposed to prevent it from happening. However, it isn't working. A page tried to redirect, and I saw the little banner that said Firefox prevented it, then it happened again immediately, with the same banner, and then the page went ahead and redirected, and I did NOT click to allow it. It was as though the page redirect was tried three times, stopped two, then allowed. There has to be some way to stop this entirely. To be clear, I already have it checked under Advanced/General to "Warn me when websites try to redirect or reload the page." It simply isn't stopping the redirect. Yes, I have antivirus protection, and yes, it works. The page that s reloading is a Sims 3 store page. It's supposed to be a video, on the store site, to watch for points. Most re just that, but today some have sown up that, instead of playing a video, it redirects to some other site. One was a health site, with no video to even view! cookies galore, though, which have now been blocked.
    Any help appreciated in preventing this from happening in the future!

    All good ideas in general, but nothing new installed that I didn't want, and no unknown or new add-ons, either. Great advice, and nicely detailed, though, which should help others that might have those things causing problems. I have seen that sort, when another family member wasn't careful and had an annoying toolbar installed, that was practically taking over when they were online. Took a bt of doing to get that one out; uninstall was the start, but had to clear out some "stray" registry entries as well.
    I did notice that if I do not click to close the little pop up banner, it doesn't redirect. Weird, but it worked. I don't know why closing the message without telling it to allow would have that effect, but it did. Also blocked ll the blasted cookies that were showing up, which is something I track, anyway. I can't stand having this or that site track, even if settings are to accept only from sites I visit. Google is BAD about that sort of thing, and some of the social media sites.
    Appreciate the tips, in any case.

  • OOTB script supplied with Illustrator CC does not work

    Hi everybody,
    I'm searching someone that could tell me how to use the scrpit supplied out-of-the box with Illustrator CC whose french name is "EnregistrerDocAuFormatSVG". As I have only a french version of the product, I do not know the english name. This script is supposed to export all opened files in Illustrator in SVG format in a suppplied folder.
    Each time I used it, the SVG that is done is not correct whereas the same operation I have done manually using "Save As..." is working. In other words, the SVG done manually is not the same as the SVG done using the script !!!
    So I think that there are some errors in the script or some missing configuration.
    Please help me solve this problem.
    I already post a french post for this problem, but it seems that the community is more english people...so I repost the post in english.
    I will also post the same post in "Scripting Illustrator forum", because I do not know which forum is the best to receive such a problem.
    Eric.

    Thanks you,
    Hi,
    I was just reading this part of reference guide when you answered to me.
    After some tries, I succeded modyfing the original script so that SVG is saved in a good way...
    But now my work is not finished: I need to automate this three steps in whatever way.
    I thought that the best way was to automate the processus of loading a file and running the script using automation...but even if the program is working, the result is not good (I do not understand why). When having a phone call with support technical team, I understood that whereas Illustrator permits to automate, this operation is not supported.
    So I have to find another way that is supported by Adobe to do the same thing as the automation function...
    I though that I could write a command line that could take a paramter (my input file I want to convert) and run Illustartor with some program line parameters.
    Is there some way to run a script after having open a file in Illustrator ?
    Eric.

  • Linux script call from PL/SQL does not work?

    We are trying to run a simple Linux command using this PL/SQL 10.2 procedure:
    PROCEDURE run_linux_script_from_oracle IS
        BEGIN
          dbms_scheduler.create_job
              job_name=>'runtop',
              job_type=>'executable',
              job_action=>'/vol0/FileLoadDir/Bank/DATA_FILES/spell_check.sh',
              enabled=>true,
              auto_drop=>true
          DBMS_OUTPUT.PUT_LINE('Successful');
        EXCEPTION
          WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('Error: ' || SQLERRM);
        END;The .sh file has this command which works fine when we run in Linux.
    spell /vol0/FileLoadDir/Bank/DATA_FILES/ebill2.fmt_form_strings_.txt > /vol0/FileLoadDir/Bank/DATA_FILES/abcd.txtI get a Successful when I run this command in my SQL*Navigator and a PLS-00225: subprogram or cursor 'ABS' reference is out of scope when I run it in the SQL*Nav in another machine???
    Any help would be greatly appreciated.

    Channa wrote:
    We are trying to run a simple Linux command using this PL/SQL 10.2 procedure:NO, posted procedure below RUNS nothing,
    post code simply CREATE JOB, but does NOT invoke it!
    >
    PROCEDURE run_linux_script_from_oracle IS
    BEGIN
    dbms_scheduler.create_job
    job_name=>'runtop',
    job_type=>'executable',
    job_action=>'/vol0/FileLoadDir/Bank/DATA_FILES/spell_check.sh',
    enabled=>true,
    auto_drop=>true
    DBMS_OUTPUT.PUT_LINE('Successful');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Error: ' || SQLERRM);
    END;EXCEPTION handler is BUG & should be removed, discarded & 100% eliminated.
    >
    The .sh file has this command which works fine when we run in Linux.
    spell /vol0/FileLoadDir/Bank/DATA_FILES/ebill2.fmt_form_strings_.txt > /vol0/FileLoadDir/Bank/DATA_FILES/abcd.txtI get a Successful when I run this command in my SQL*Navigator and a PLS-00225: subprogram or cursor 'ABS' reference is out of scope when I run it in the SQL*Nav in another machine???What is "ABS" & why/how does it exist in error message?

  • A podcast that I subscribe to does not work anymore.

    I have been listening to the podcast for a while now and as of 5 days ago it quit getting new episodes. When I try to manually update the podcast I get an error that states "The network connection was refused", but I can get on the internet just fine. I can browse to the page of the podcast and I can get the podcast on a different pc running itunes. I can even get podcasts from different subscriptions on the machine that is having the problem. I have tried deleting the subscription and re-subscribing, uninstalling and re-installing itunes by the directions provided by Apple, and I have used a packet sniffer to see if itunes even tries to connect (it doesn't). I am at my whits end. Can someone please help. Thanks.

    Backup to iCloud and then restore from that iCloud backup. See:
    iOS: How to back up
    Only iTunes purchases will be restored. Non-Tunes purchases are no included in the backup. You would need to copy those to a computer by using a third-party program like one of those discussed here:
    newer copy

  • Loaded 7.3-does not work-restored system-does not work-missing files?

    I downloaded 7.3 and got a message that it could not upgrade the version of IPOD software found on cpu. Please uninstall and try again. Did that. Also removed all Itunes and Ipod software versions. Still got message. Decided to restore computer to before the 7.3 download. Now get error message that ITunes cannot run because files are missing. Doesn't say which ones. Any idea on how to restore old version?

    My workflow is to basically backup my negative collection by scanning at the highest resolution possible and save them at full bit depth as Tiffs on offline storage. I then duplicate all the files as large JPGs and store them on my local machine. These are then all duplicated again and down sampled to 1024*768 to be synced with the iPad. After 2 1/2 years and a 16 page file documenting all the bugs, I finally got the small files to sync with an iPad 4. After all is said and done, it only took about 7GB to sync 50K Jpgs but did end up with a 20GB "Other" file that no one from Apple can explain. I have been seeing these "Other" files for a while and think they are some sort of memory corruption and the only way to get rid of it is to restore the ipad.
    Bottom line, iTunes for Windows is terrible, very buggy, and unsupported by Apple. They can only help you trouble shoot restarting problems but there is no escalalation path for things that don't work. iTunes basically has a lot of trouble with samll number of large files and even a large number of small files.
    I have been using Lighroom to convert the Tiffs to JPGs but ran into a problem that Adobe engineers didn't know about. Lightroom will only support a maximum of 512 mega pixels and won't load any files over this size. It appears it may load them as PSDs but not as Tiffs. Problem is Lightroom won't give any error message for files it won't load so there is no way to trouble shoot it.
    What does work flawlessly is using Photoshop/Scripts/Image Processor.
    In protest of Apples apathy I took every IOS device I ever purchased back to the Apple store and challenged them to either make them work or refund them. They gave a full refund for every device I erver purchased including $299 for the original touch which came out to about $3500. I even sent a letter to Tim Cook ([email protected]) but he didn't care either.

  • FaceTime does not connect, iChat video does not work, Skype video does not work (LION)

    Hi everyone,
    I am using OS X 10.7.3 2011 Macbook Pro 2.2 Ghz Intel Core I7 8GG 1333MHz DDR3 RAM 500GB HD.
    What happens when I try to call someone in FaceTime: Webcam light is on and I see myself on my screen. It rings and after a while it says "X is not available for FaceTime (or similar).
    In iChat I can text chat, but video calls do not work. In Skype, I can do audio talking, but when I try to use my video, it fails to connect.
    This seems to indicate to me that there is a system-wide, rather than user or program-specific problem, in which my system cannot connect to others when using my webcam.
    Can anyone offer any guidance on this matter? I am pretty tech savvy. On my home network I have tried port forwarding/opening and all that, without luck. I am worried that maybe I could have made a mistake in terminal or something some time ago, but I don't go in there very often and it is usually for very specific things.
    Any help would be greatly appreciated. I am moving away for four months, and I really need this to work so that I can chat with my lovely girlfriend. Please see the notes below prior to commenting.
    Cheers
    Notes:
    Internet is working fine. I use three different network, one of which is wired and works fine.
    I have tried to create new users, still no luck
    Webcam works fine in PhotoBooth
    I am logged into FaceTime properly (this is simple, right?)
    Reinstalling OS X to fix this problem is not an option
    I have tried FaceTime with several people with several devices (e.g., iPad, iMac, iPhone)
    FaceTime on my iPhone works with other people on same network

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • TS3367 facetime used to work but now does not work on any of my devices

    I have been in regular contact until about 4 days ago using facetime on my iphone 5 imac 10.7.5. ipad 2 now none of these devices work from incoming calls from Philipinnes. Take note the caller had latest macbook pro 13 inch  and is able to call Guam on fatetime with success. What is happening why is incoming calls alway failing. This has been 4 days running and is not good enough. Okay I havent got the latest updates but why in the late few days whould this effect anything. I mean 3 devices and none of them work. This is most frustrating and annoying. I have intead used skype which does work but at night time the camera is not as clear. Tanke note also earlier in the year I received calls from Vietnam and although I did have dropouts was always able to connect only these last four days have had no success. Also I have not been able to call out. The wireless has full bar and am near the modem that is not an issue. Unless there has been a recent change why is htis not working all of a sudden.

    THere seems to be a FaceTime issue and some users who have been in contact with Apple support claim that Apple is working on this.
    I have read many posts on the issue and have seen that there are many reporting that when they have updated their various devices to the latest software, the issue has been resolved.
    You can wait for Apple to resolve the issue OR you can update everything to the latest software and see if this solves your issues.

Maybe you are looking for

  • How can I disable web/data access during certain hours?

    I have added a feature to my wireless account restricting my daughter's text/data/surfing access during evening hours.  I thought I was pretty clever and assumed she would only have access to her music on her iPhone.  Turns out she can still access a

  • Mavericks and unmounting external drive issues upon sleep

    Greetings fellow Mavericks users, I'm hoping someone here can provide some insight as to how to correct the issue I'm experiencing. Little background: I was using 10.6.8 for years on a 2008 Mac Pro.  I saw no reason to update the OS until I recently

  • OCFS2 in a non-RAC environment

    Here's a question I've been batting around with a sysadmin. I thought I'd run it past this group. We're spec'ing out the hardware for a very large Oracle database (3+ TB) running on Linux. This will be a single, non-RAC instance. This particular SA h

  • Opening HTML attatchments

    Greetings, I was recently sent an agreement form or contract as an attachment to an email, but when I opened it, it was all script or gibberish or whatever it's called. In the end, I had to have the document faxed to me. Applecare told me that there

  • How to save "Paragraph style" to be default?

    Hi. I try to add to my profile Paragraph style, so every time I use this profile, I'll have this style ready to use. but it seems "New document" ignore the styles I added before save.. Is there any way user can apply style on AI as whole, and not per