With CS4, some things have changed

This topic is not about new features but changes, primarily in the object model, that will affect scripts that run perfectly well under CS3.
Bear in mind that as before, you can create a folder for previous version scripts and run from there, in which case the previous object model is employed -- indeed, CS4 allows you to do this for scripts all the way back to CS scripts. The Object Model Viewer in ESTK, once you've initialized it by opening it once and choosing the InDesign CS4 Object Model, allows you to see all four supported object models.

This script produces different results in CS3 and CS4:
var myDoc = app.documents.add();
var myTF = myDoc.pages[0].textFrames.add({geometricBounds:myDoc.pages[0].bounds});
var myTable = myTF.parentStory.tables.add(LocationOptions.atEnd);
myTable.bodyRowCount = 7;
for (var j = myTable.bodyRowCount - 1; j >= 0; j--) {
    myTable.cells.item("0:" + j).contents = String(j);
var myArray = myTable.columns[0].cells.itemByRange(1, myTable.bodyRowCount -1).texts[0].contents;
alert(myArray)
In CS3, you get an alert that reads:
1,2,3,4,5,6
In CS4, you get just:
1
To get the same alert in CS4 you need to use this to construct myArray:
var myArray = myTable.columns[0].cells.itemByRange(1, myTable.bodyRowCount-1).cells.everyItem().contents;
Dave

Similar Messages

  • Some things never change ... 10.5.2

    After successfully installing 10.5.2 + Graphics update, I pressed the power switch to put my iMac to sleep, wanting to check if the waking problem had been fixed. Unfortunately, yet again, neither the wireless mouse or the wireless keyboard had any effect on waking the machine up. I had to power cycle it. Some things never change.

    I had a similar issue in 10.5.1 The mouse and kayboard (both Apple Bluetooth Wireless, current generation) would in fact wake up the computer, but after a few seconds, the mouse wouldn't work. If I plugged in a wired mouse, then tried to open the bluetooth utility on the iMac (Aluminum 2.4GHz 20' 4 gigs RAM), the bluetooth utility would freeze and nothing would bring it to life. Trying to restart the computer would hang after the desktop and all icons had disappeared, necessitating a hard reboot (hold the power switch). It was frustrating enough that O reverted back to Tigger. I was seriously considering trying Leopard again, but if it's still happening, what's the point? I don't have time to keep reinstalling everything.

  • Certain things have changed on firefox but work with explorer,ie copy and paste have to use edit didn;t before , certain website i can only use explorer, when i open with firefox i can not burn a cd but can when open with explorer This has just changed ?

    as above firefox has stoped working on some things ?

    I tried what you suggested on the tools site....made all the changes...didn't help. Then I just uninstalled the whole firefox that i had used forever....and re-installed all over again....tried it, same error msgs....tried the tool site again on that, and still same error msgs. why don't you folks have a phone number i can call and talk to an actual person to walk me thru this problem? am an old 70 yr old lady who has always depended on firefox.

  • I had got a new card to pay with. No I have changed this on my conto, but my last pay-ment...I wonder if it is payed now or if I must pay it by myself. My order is AD004927883NO

    Well, I have got a new credit-card, I have changed this in my profil, but what do I have to do to pay my bill from 26/02/2015?
    My order: AD004927883NO
    Lise Ekern, my e-mail: [email protected]

    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • With all of the big changes that have gone on with Lion, surely it would have made sense for Apple to have provided how the new commands work? What is the best way to learn about how things have changed?

    Apple has tended in my expereince to provide intuitive software that users can grow to use and admire. Why then does Lion go off at a tangent and become unintuitive and just plain hard work to work out? I run a business and this has caused a lot of time consuming effort particularly when working out how to save files (in certain programs). Like so many products (iPhone being one), there is no guide to the great things that can be done and I just don't have the time to go fishing around online looking for tips and tricks when I've got clients who need things quickly.
    Where is the best place to learn about Mac things? 

    Take a look here: http://www.apple.com/macosx/whats-new/

  • Hello I am really struggling with iCloud. I have changed my Apple ID but when I go into iCloud it has my old id and won't let me press it to change it and will only let me change password so I can't even delete iCloud pleas help

    I Can't even delete the account as it keeps asking for the password for the account I don't have anymore! It's really frustrating!

    Apple ID: Changing your Apple ID

  • Some things have gone wrong

    There seems to be a light purple spot on my iPod. It is not located on the screen but near the scroll wheel. It will not rub off. Also my back light is wigging out. I have it set on 2secs and have the brightness all the way down. This is to conserve battery life. Every time I take my iPod off of hold, the back light springs to life at full brightness then flickers for a while then going off. As I look at it now, the little lock icon does not show up when I put my iPod on lock. Can anyone help me?

    I agree with epsilon delta and the others. Forums do seem to be the place where people come to look for answers or to ask questions.
    I have had my 16GB 3GS for around 4-5 weeks now, when I first got it it had 3.0 on it, I was asked when I connected the iPhone to iTunes for the first time if I wanted to update the software to 3.1 which I did with no problems whatsoever. At a later date I updated to 3.1.2 and I have also had no problems whatsoever with this update too. I think you should update especially has 3.1.2 has been out a little bit now.
    A bit of advice I would give is perhaps not update to the latest software version in the future straight away. What I do is wait a little while and keep checking back on this forum to see if there is any problems reported etc. But bear in mind like epsilon delta said:
    'Taking into account the millions of iPhone users worldwide, the number of people reporting problems on this website is a very very small percentage'

  • Recently upgraded to Mountain Lion and some things have altered.

    Recently, I upgraded to Mountain Lion. As i mainly use my computer for digital imaging, I have mainly picture files stored in documents. I am often taking image files out of folders and dropping them on my desktop. For quickness, before i upgraded, my Mac used to copy the file automatically, leaving one in a folder, whilst at the same time dropping an image onto the desktop. It did this as I dragged it out of the folder. Now, since upgrading, it doesn't do this anymore. So when i've finished with an image i am putting it in the trash, assuming there is one in still in my folders. So i am losing images. I find edit> copy>paste command each time, too time consuming.  This simple task is now a bit of a chore. How do I get my computer to do automatically keep a copy in the folder, once dragged on to desk top?

    Yes it does work if I hold the ALT key whilst clicking and dropping. Which is better than edit>copy>paste. However, before i upgraded I did not have to hold the ALT key, the computer did it automatically. I still have to remember to hold the key. Also, I over use the ALT key as it is. It is the main key for cloning (rubber stamping) in photoshop. This will be the first key to stop working on my keyboard, so I don't want to give it too much extra use. I need the Mac to automatically copy my image files without holding a key down. It means I can't work as quick as I used to and I am losing too many images this way. Is there are way of making an action, a shortcut command for 'ALT' copying? I presume this it what I had it like before.

  • I have a problem to sync.since 3 june it cant syncronyzed with my account.i have changed password and cleared my sync data..and nothing....what should i do?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/928683]]</blockquote>
    my syncronization doesnt work-could not connect to server.Sync will repeat it automatically.i have no problem with internet connection.what shoyuld i do?

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • How many things have changed?

    I have learned java 2.Could you tell me what are difrences between java2 and java 4

    Java Fore (or 4) is a new API from Sun. It's only one in a row of new Java enhancements to celebrate Scott McNealys purchase of a boat. Also see Java Aft.

  • Hi, I need some help. Since I have changed to windows 7 I cannot open raw files with my canon mk 5D. The files will not open in cs4. Can somebody advise me what to do. I have done updates on CS4 and still cannot open the raw files

    Can anybody advise me what to do as I am having problems opening raw files on CS4 since I have changed to windows 7. I am using a canon mk 5D.

    dave nutter wrote:
    I am using a canon mk 5D.
    Actually, you're not.  That's not an accurate description of any of the Canon 5D models.
    There are EOS 5D, EOS 5D Mark II, and EOS 5D Mark III models.  Which do you have, specifically?  Details will matter for this.
    If you have a 5D Mark III (three) it's too new and you will not be able to directly open files with Photoshop CS4.  You'll either need a newer version of Photoshop or to use the free DNG converter.
    -Noel

  • Your Shopping cart's contents have changed Message

    I've added things to my shopping cart and have been trying to purchase them and keep getting this error message with the above title:
    "Either the prices of some items have changed or items have been added or removed from another computer. Please review your shopping card and calick Buy Now"
    Then there is a Refresh button. Checked the cart, hit the refresh button and still keep getting the same message.
    Nothing has changed on this computer since Friday, when I purchased some items just fine.
    Any help or suggestions as how to fix this silly problem would be appreciated.
    Dell   Windows XP Pro  

    A price might have changed. If something was from free download list that is not free anymore this might happen. I forget what day the free downloads list changes.

  • HT4436 When ever I try to log into I Cloud it rejects my Apple ID I have changed it several times but all to no avail. Strangely I can use my ID to buy Itunes music. Can any one help please?

    Can anyone help? I am unable to log into ICloud. When I type in my ID and password it comes back with 'incorrect password' I have changed the password several times but it doesn't help. strangely i can use my paswod to buy buy Itunes music but not for Icloud. Any suggestions would be gratefully recieved.

    Hello CarenzaRielle,
    I know not being able to access your Apple ID can be frustrating. I have located an article that will walk you through a series of troubleshooting steps to resolve this:
    Apple ID: If you forget your password
    http://support.apple.com/kb/ht5787
    Refer to the Apple ID Support page if you are unable to reset your password using the steps in this article. If you know your Apple ID password, you can also choose to change your Apple ID or change your password.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • My phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    my phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    No, that would probably be the orientation lock. Check up by the battery icon and see if you have an icon with a small lock and a circular arrow. Either way, go to the Control Center, swiping up from the bottom of the screen. Look at the top row of icons and the orientation lock is the last one on the right. White is on, black is off. Just turn it off and you should be alright. Understand there are some apps that do not change into the landscape mode from portrait.

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

Maybe you are looking for

  • Image Processor doesn't launch

    Hi, I'm using CS5 Bridge and Photoshop, and I can't get my Image Processor dialog box to launch in Photoshop when I go to  Tools>Photoshop>Image Processor in Bridge. Photoshop will launch but no dialog box appears. I have updated all my programs and

  • Cant get my iphone 6 screen to time out

    how do i get my screen to time out? it is currently on all the time ?

  • Document type incorrect

    Hi all, I am trying to post to Fi while doing the simulation posting run i am getting "Document creation incorrect" why is this could anyone tell me. Regards janhavi

  • How do you measure if a battery is failing faster than normal?

    How can you tell if your battery is failing faster than normal or acceptable? I bought 2 batteries with my G4 Powerbook 2 years ago. One now gives me an hour of battery life, and one 1.5 hours. This seems very low considering it's only 1 year of use

  • I Can't Use gestures On Firefox, But I Can On Explorer Is There An Add On For This

    I Have A Dell Inspiron One 2305 An It Has A Touch Screen Which You Can Use Gestures To Zoom In & Out With Two Finger Or Pinch The Screen Surface (Like An I Phone)..It Works On The Explorer Browser But Not On Firefox..Is There An Add On For This Probl