Script to rotate an image in InDesign CS4 from an Excel Spreadsheet

Hi all,
Is there a script for InDesign CS4 that reads degrees from an excel spreadsheet and then rotates a specific image by the same amount of degrees that was written in this excel spreadsheet? I would like to create a column in Excel full of rotation degrees and then go to InDesign, run the script for a specific image and the image will rotate automatically.
If there isn't a script like that already around, can you let me know if it is possible to be done and also if it is possible, can you help me create one please?
Thank you in advance for your help.
Lucas

a script to rotate images... only one at a time and marijan tompa had the answer for that: http://forums.adobe.com/message/2998073
as for referencing an excel file or txt/csv, i don't know, but perhaps other posters could assist.
colly

Similar Messages

  • Upgrading Indesign CS4 from Creative Suite 3

    Hi!
    Is it possible to upgrade only Indesign CS4 from Creative Suite 3 or do I have to buy the whole Creative Suite 4?
    I bought an upgrade for Indesign CS4, but now I can use it only as a testversion, because when I start the programme
    it asks me besides the new serial number for Indesign 4 also for a serial number of CS3.
    But I have only one serial number for the complete Creative Suite and this one will not be accepted.
    What can I do?

    Hello Mr. Spier,
    thank you for answering. So I will buy the complete bundle.
    Have a nice day
    Angelika Ottenbacher
    Am 13.07.2009 um 13:56 schrieb Peter Spier:
    No, you cannot upgrade individual pieces of the suite bundles. They 
    are considered a single product.
    >
    I belielve you have 30 days to request a refund and then you can 
    purchase the full upgrade.
    >

  • I want to write a script or Automator workflow/app that emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have experience?

    I want to write a script or Automator workflow/app that automatically emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have similar experience and know that this would work?

    I have had a first stab at the script, below.  It uses a file to store the shortcuts and command [descriptions].  You should be able to see from the script annotations how to add a new one.  (I populated 1-4 with real data, but got lazy after that, so you have a few placeholders to work with first.
    As I have noted, once you are happy that you have all the data in the file, you can comment out part of the script for ongoing use.  (BTW, my reluctance to use Excel is that I don't currently have it installed and I don't want to offer wrong advice.  If you have Numbers, I do have that and could probably modify to work with a spreadsheet from there.  This might be especially useful if you have the data already sitting in Excel.)
    A few things came-up whilist I was writing the script:
    1.     Currently, all recipients will not only get the same tip at the same time, but they will see the names and email addresses of the others who receive them.  It is possible to modify this.
    2.     I have added a property gRandomCheck which keeps track of which shortcut has already been used (since the last time the script was compiled.  This will prevent the same tip being sent more than once.    When all tips have been sent once, the script will alert you and not send anything until reset.  It does not check on a per-addressee basis (which would be a refinement).  (If you add a new addressee at this stage, the whole process will start again, and you may not really want this to be the behaviour.)
    3.     The way that I have built the list, commandList, is deliberately cumbersome - it's for the sake of clarity.  If you prefer, you can construct the whole list as {{shortcut:"X", command:"X"}, {shortcut:"Y", command:"Y"}}
    Have a look - I am sure you will have questions!
    SCRIPT STARTS HERE  Paste the following lines (thru the end) into a new AppleScript Editor document and press RUN
    --The property gRandomCheck persists between runs and is used to stop sending the same hint twice.
    property gRandomCheck : {}
    --I am defining a file on the desktop.  It doesn't have to be in this location
    set theFolder to path to desktop
    set commandFile to (theFolder as text) & "CommandFile.csv"
    --(* Unless you need to change the file contents you do not need to write to it each time.  Remove the "--" on this line and before the asterisk about 18 lines below
    --Follow this format and enter as many records as you like on a new line - each with a unique name
    set record1 to {shortcut:"Z", command:"Undo"}
    set record2 to {shortcut:"R", command:"Record"}
    set record3 to {shortcut:"⇧R", command:"Record Toggle"}
    set record4 to {shortcut:"⌘.", command:"Discard Recording & Return to Last Play Position"}
    set record5 to {shortcut:"X", command:"x"}
    set record6 to {shortcut:"X", command:"x"}
    set record7 to {shortcut:"X", command:"x"}
    set record8 to {shortcut:"X", command:"x"}
    set record9 to {shortcut:"X", command:"x"}
    set record10 to {shortcut:"X", command:"x"}
    set record11 to {shortcut:"X", command:"x"}
    set record12 to {shortcut:"X", command:"x"}
    set record13 to {shortcut:"X", command:"x"}
    --Make sure you add the record name before randomCheck:
    set commandList to {record1, record2, record3, record4, record5, record6, record7, record8, record9, record10, record11, record12, record13}
    --This part writes the above records to the file each time.
    set fileRef to open for access commandFile with write permission
    set eof of fileRef to 0
    write commandList to fileRef starting at eof as list
    close access fileRef
    --remove "--" here to stop writing (see above)*)
    --This reads from the file
    set fileRef to open for access commandFile with write permission
    set commandList to read fileRef as list
    close access fileRef
    --Here's where the random record is chosen
    set selected to 0
    if (count of gRandomCheck) is not (count of commandList) then
              repeat
                        set selected to (random number from 1 to (count of commandList))
                        if selected is not in gRandomCheck then
                                  set gRandomCheck to gRandomCheck & selected
                                  exit repeat
                        end if
              end repeat
    else
              display dialog "You have sent all shortcuts to all recipients once.  Recompile to reset"
              return
    end if
    --This is setting-up the format of the mail contents
    set messageText to ("Shortcut: " & shortcut of record selected of commandList & return & "Command: " & command of record selected of commandList)
    tell application "Mail"
      --When you're ready to use, you probably will not want Mail popping to the front, so add "--" before activate
      activate
      --You can change the subject of the message here.  You can also set visible:true to visible:false when you are happy all is working OK
              set theMessage to (make new outgoing message with properties {visible:true, subject:"Today's Logic Pro Shortcut", content:messageText})
              tell theMessage
      --You can add new recipients here.  Just add a new line.  Modify the names and addresses here to real ones
                        make new to recipient with properties {name:"Fred Smith", address:"[email protected]"}
                        make new to recipient with properties {name:"John Smith", address:"[email protected]"}
      --When you are ready to start sending, remove the dashes before "send" below
      --send
              end tell
    end tell

  • Batch relink images in InDesign CS4

    Hi all your InDesign wizkids.
    I have a document with 800 image links that all have changed location and filename.
    all instances have a product number as filename. They have now been changed.
    so filename was eg. changed from --> to:
    123456.tif  -->  1203456.tif
    112233GB.tif  --> 1102233GB.tif
    79657.tif     -->     790657.tif
    13657NHZ.tif -->     130657NHZ.tif
    The only change is that there have been added a 0 as third digit.
    Also it would be cool to update path in same action to some/new/folder/to/file
    It would be a major help if any one could solve this.
    Best regards
    Alexander

    Thanks a lot.. it looks really good, but doesn't seem to work..
    The ExtendScript toolkit just keeps running (15 min) on a test doc i made with 20 links.
    What is wrong?
    Was it possible to make script without relink, so i just do that from the linkspalette??
    Here is script:
    newPath = "smb://sql-srv/marketing$/Marketing/TOOLBOX/Pictures/PACKSHOTS/Charms/TIFF CMYK/"
    myLinks = app.activeDocument.links
    for (i = 0; i < myLinks.length; i++){
         var oldName = myLinks[i].name;
         var newName = oldName.slice(0,2) + "0" + oldName.slice(2);
         myLinks[i].relink(newPath+newName)

  • Script for soft kinsoku override in InDesign CS4?

    I have a javascript for the soft kinsoku override for IDCS5.5 but not for ID4. Can someone please post the .jsx? Thanks!

    I've should have been more specific...I've imported text from Word to InDesign CS4. I didn't realize the paragraph style had the Kinsoku: Soft kinsoku attached to it until I'd already formatted much of the 400 page book (there's a plus sign next to my TXT paragraph style because of this). I have character styling within the paragraphs and don't want to option click the style to remove the Kinsoku. Isn't there a java script available that I can run on the whole InDesign CS4 document that will clear this out. I found one online for InDesign CS5 but not for CS4. I do not know how to write scripts. Thanks!

  • Upgrade to Indesign CS4 from Pagemaker

    I have a Windows PC with Pagemaker 6.5 installed, which is listed as an eligible product to upgrade to Indesign CS4. However, on installation the only options presented for upgrade are CS, CS2, and CS3. What steps do I need to take to complete the installation as an upgrade to Pagemaker?
    Thank you

    You bought the wrong upgrade. Call Adobe and see if they can help.
    Bob

  • Upgrading to InDesign CS4 from International English Upgrade?

    Hi. can I use International English Upgrade from Adobe InDesign CS/CS2/CS3 (Mac) to upgrade my CS2 version of InDesign to Indesign CS4? Any answers would be much appreciated, many thanks!
    (I am running OS 10.4.11 on a Macbook from 2006)
    Lollinger

    Where are you planning to buy such a package? The chances of find a legitimate upgrade at this time are slim and none.
    Bob

  • How do I generate a data merge in InDesign from an excel spreadsheet which includes a barcode

    Can you please advise if the following process is possible within InDesign CS 5.5? (Mac OS 10.8.2).
    We need to create a data merge that includes a barcode. The data merge is for several thousand records.
    We have a customer-supplied Excel spreadsheet that contains seven fields, one of which is a number that ultimately needs to print as a barcode when we make the data merge in InDesign.
    As you would expect, the conventional six fields data merge perfectly - but we can't find a way to make the barcode print correctly within the data merge.
    We have investigated several possible solutions without success.
    Some solutions suggest a plug-in for Excel to convert the number into a barcode whilst still in the spreadsheet - but this doesn't come across correctly when we import the CSV file into the InDesign data merge.
    We have investigated certain third party software applications but none provide the full solution we require. Some, for example, appear to create the barcode within the Excel spreadsheet but don't produce the barcode correctly when we data merge in InDesign; and some will allow us to create a one-off barcode within InDesign but have no automated way of retrieving the thousands of Excel numbers and turning them into barcodes.
    We have also come across possible 'font' solutions but have had no success with these either.
    For a previous job we needed to produce we outsourced to a specialist mailing company, who assured us they produced the whole job (very quickly) within InDesign. They, understandably, won't tell us how they did it. But, given the speed with which they produced the job for us, we imagine - with the correct software - the whole process is easy to do.
    Can you please advise?

    HI MIKE
    Thanks again for your reply and your help with this.
    I've downloaded the barcode font from the link you supplied.
    I've tried three tests - and seem much closer to getting what we need. But I've come up against a couple of issues.
    TEST 1 - almost just to see if the downloaded font worked, I simply data merged our source csv file and applied the downloaded barcode font to the serial number in ID. Probably unsurprisingly, this produced a perfectly printed barcode - that wouldn't scan.
    TEST 2 - I manually added asterisks before and after the serial number in the first couple of fields and then tried the same process as TEST 1. It produced a perfectly printed barcode which this time DID scan correctly - but obviously the barcode had asterisks on it which I don't want. I just want the serial number. And with thousands of serial numbers we need the addition of the asterisks to happen automatically (which is where your text editor process seems the perfect solution, if we could get that to work).
    TEST 3 - Noting your comments about using parenthesis around the serial number, I followed your example of (123456). But Excel won't let me type a parenthesis. It lets me type the parenthesis but then instantly substitutes it with a - (hyphen) before the number in the actual serial number cell and no character at all after the number.
    If you have any suggestions or solutions for any of the above they'd be gratefully received! Thanks again for all your help with this.
    Kind regards
    Rob

  • Can I repair the ntdll.dll fault that prevents InDesign CS4 from opening in Windows 7?

    I am running Windows 7, all updates installed, and CS4, updated to 6.0.6.622. This problem does not affect any other app in CS4. Starting yesterday, InDesign would crash as soon as I opened a document. Then it would crash before I could open a document. Now it crashes once the small pink splash screen displays. The Windows detail is this:
    The same behavior occurs with with my machine in Safe mode.
    I have not added any fonts.
    I attempted the manual "trash preferences" procedure found on this site.
    I attempted the "default printer" solution.
    I already rolled back my system to October 13 (my earliest possible restore point) and then reinstalled InDesign, then when the problem persisted installed the 6.0.6 patch again. So rolling back from the update is not a solution. Would uninstalling inDesign before reinstalling be required?
    This department (3 users) got new laptops witn Windows 7 and CS4 in January, and I am the only one experiencing this. I know I am current on all updates, but I can't speak for everyone else. Perhaps I am too up-to-date.
    My IT dept thinks the standard solution of re-imaging the hard drive is required, but that takes a day and then another two to reinstall/re-register/reconfigure all my apps. I have work to do!
    I sure hope someone else has solved this already; I have spent a lot of time searching for a clue. Thanks all, in advance.
    Problem Event Name: APPCRASH
    Application Name: InDesign.exe
    Application Version: 6.0.6.622
    Application Timestamp: 4caa28e2
    Fault Module Name: ntdll.dll
    Fault Module Version: 6.1.7600.16559
    Fault Module Timestamp: 4ba9b21e
    Exception Code: c0000005
    Exception Offset: 00028e0e
    OS Version: 6.1.7600.2.0.0.256.4
    Locale ID: 1033
    Additional Information 1: abcc
    Additional Information 2: abcc8f7853b48d9807d6d51eb1fa5df9
    Additional Information 3: abcc
    Additional Information 4: abcc8f7853b48d9807d6d51eb1fa5df9

    I just tried the Recovery Folder solution, where you delete the contents of the folder. This sounded promising, because the first time ID crashed, a document was open. When I launched ID again, the doc was recovered. I closed it without saving changes, after which ID crashed. After that point, ID never got beyond the splash screen. There were two items in the folder (see screenshot), but alas, no joy.
    Thanks Peter for the cleanup - I had not spent any time reading the forum how-to (and I write user docs).

  • Rotation of images imported and exported from Aperture

    Hi all,
    Recently whilst on Holiday I used my iPad as a storage for the camera via the camera kit. When I got home I synced the iPad with the Mac to get the images into iPhoto, and then imported them into Aperture.
    This is where the first problem occurred. A large number of the portrait orientated images came into Aperture upside down ????
    So I selected and rotated all the incorrect ones in Aperture then carried on to sort and process them. Mostly removing the "raw, iphoto image" keywords and some cropping and tinting etc.
    Then I went to iTunes and did a sync of the photos in Aperture back to the iPad (I had wiped them from the iPad after the import into iPhoto).
    Again a large number of the images rotated themselves so that now they are upside down on the iPad.
    It would appear that either the import or sync to iPad, or both has got something wrong.
    Does anyone have any idea what to do? The images look correct now in Aperture, but are incorrect on the iPad.
    Grrr!

    Not easy to explain as i don't understand fully the details of what goes on myself, but the basics. Most cameras sense rotation, but only add a marker to tell the computer how to display the image, Some programmes see this, some don't, so you then rotate in iPhoto, then move to Aperture, and the programme now may see multiple instructions on how to display the image. Yours and the cameras. I have had this kind of problem in the past and it is very frustrating.
    The Masters only have one set of information or none on older cameras. If you use the masters to put in to Aperture then do your edits you should not have this problem. If you correct this by exporting and re importing the jpeg you will loose image quality.
    Allan

  • Importing Images into Flash CS4 from Photoshop 7

    Hello,
    I've created an image in flash, basically the image is a ring which has then been divided into 3 equal segments, each segment exists on its own seperate layer with and has a transparent background. I want to make ach of these segments into a button on flash, so I've imported them across and converted them into buttons, however the problem I have is that when it gets imported into flash, it creates a box around each segment which is what flash sees as the full button, this means when you roll over a blank piece of the segment flash recognises it as rolling over the button. Is this just an inherent problem from importing from photoshop into flash or am I doing something wrong?
    Thanks
    Sean

    Check the settings:
    Edit/Preferences.../PSD File importer...
    And then load the *.psd file without the background.
    And certainly there is no change in flash...

  • Is there a way to easily import text from an Excel spreadsheet into InDesign?

    Not as a table, but cutting and pasting the text inside each cell  (the end result is a large multi-page directory with formatted copy underneath each entry).

    This sounds like the perfect job for Data Merge.
    Adobe InDesign * Data merge

  • Script that rotates a PNG in Photoshop?

    I have the following Photoshop ExtendScript (.jsx) script which rotates the image canvas, but doesn't rotate the contents:
    #target photoshop
    var doc = app.open(...);       // open the .png file
    if (doc.width > doc.height) {  // check if this document is landscape
      doc.rotateCanvas(90);        // rotate the canvas to portrait
      // but how to rotate the contents?
    I would like to rotate the entire image, contents included. I've  tried also rotating all the document's layers, and art layers, but  nothing works.

    hiltoncampbell wrote:
    #target photoshop
    var doc = app.open(...);       // open the .png file
    if (doc.width > doc.height) {  // check if this document is landscape
      doc.rotateCanvas(90);        // rotate the canvas to portrait
      // but how to rotate the contents?
    While the code look good it may not work??? You see it does not insure what ruler units is.   So if your ruler units were set to something like persent the if statement would read 
    if ( 100% is greater then 100% )  rotate
    I have a script like that RotatePortrait.jsx  to rotate portrait to landscape looks like this
    <javascriptresource>
    <about>$$$/JavaScripts/RotatePortrait/About=JJMack's Rotate Portrait.^r^rCopyright 2009 Mouseprints.^r^rScript utility for action.^rNOTE:Rotate Portrait to Landscape!</about>
    <category>JJMack's Action Utility</category>
    </javascriptresource>
    Rotate();
    function Rotate() {
    // validate that a document is open
    if (documents.length < 1) {
    alert("No Open Document!");
    return;
    var orig_ruler_units = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    // Rotate portrait to landscape orientation
    if (activeDocument.height > activeDocument.width) activeDocument.rotateCanvas(90);
    // Reset units to original settings
    app.preferences.rulerUnits = orig_ruler_units;

  • Indesign CS4 Crashes When Importing Another Indesign CS4 File

    Help! Every time I try to import an Indesign file into another Indesign file, my Indesign crashes. Also happens when I try to open an existing Indesign file that has files already imported into it. This is a problem because I have existing files I need to work on that I cannot open now!
    I'm running CS4 on a new iMac running Lion 10.7.3. Everything is updated and current. My problem started when I transferred all my files via firewire from my previous iMac running 10.6. However, another iMac in the office running exactly the same thing is NOT having this same problem. So it's definitely something with my Mac, but I can't figure out what.
    I have tried restoring the Indesign preferences by holding down all the Control, Shift, Option & Command keys. I have also re-installed Indesign CS4 from the original CD.
    Ideas? Thanks!

    In case anyone comes across this problem, I think I've found a solution. Seems that Extensis Suitcase Fusion 2 was causing the problem. Extensis says Fusion 2 is not compatible with Lion. However, when I upgraded to Suitcase Fusion 3, I was still have the problem, though not as often. After contacting Extensis again, they told me:
    This is a known issue with Suitcase Fusion 3. I can tell you a workaround and I have passed your information onto the developers so you're notified about a fix.
    Here's the workaround:  You need to uncheck activate fonts in embedded objects in your Suitcase Fusion 3 InDesign preferences.  Here's how you do that:
    1)      Open InDesign by itself (no documents)
    2)      Go to the “Type” menu
    3)      Go down to “Suitcase Fusion 3” (it should show up at the bottom of the Type menu)
    4)      Choose “Suitcase Fusion 3 Auto-Activation Preferences…”
    5)      Uncheck Activate fonts in embedded objects
    6)      Load your document.
    Hope that helps someone!

  • InDesign CS4 Mac upgrade (CS5 won't work)

    Does anyone know how or where I can get an upgrade license for Mac InDesign CS4 (from CS3)?
    I have the CS4 trial version installed, but when I click to purchase a license, it goes to CS5 page. I have a Macintosh G5 which is not supported by CS5.
    I contacted Adobe Customer Service via live chat and they were unable to help.  He kept saying to go to a reseller.  But everywhere I search, CS4 is out of stock (except for illegitimate crack software).
    CS5 can't save CS3 files, so I am having problems with people sending me files, and one client wants to use CS4-compatible InCopy.
    I would love to get CS5, but I really can't afford a new computer right now.  But I could afford a CS4 upgrade.  I can't believe there isn't someone at Adobe who could generate a legitimate Macintosh InDesign CS4 upgrade serial number and sell it to me.

    Thanks Bob.
    I have a standalone license for InDesign.
    Good point on upgrading.  Although, it really isn't what I wanted to hear.
    I use InDesign at home for some freelance work, but it isn't my primary job.  Uprading all my software every version would be a pretty big chunk of what I actually make on my freelance work, especially last year when the economy was in the tank.

Maybe you are looking for