Graphic Line Properties Apple Script CS3/CS4

I was wondering if someone could post an applescript snippet for a way to produce a line that was dashed (4pt dash 4pt gap) and was 30% black. Also if anyone knows of a source that has the default properties for the graphic elements in indesign (basically a better indesign scripting dictionary then adobes) please let me know.
Thanks in advance!

On 14/2/09 10:23 AM, "Vinny Mannello" <[email protected]> wrote:<br /><br />> I was wondering if someone could post an applescript snippet for a way to<br />> produce a line that was dashed (4pt dash 4pt gap) and was 30% black.<br />> <br />The best place to start is to make such a line manually, then get its<br />properties and work backwards. This will do what you want, although you'll<br />probably want to set other properties at the same time:<br /><br />tell application "Adobe InDesign CS4" tell document 1 make graphic line at<br />end with properties {geometric bounds:{0, 0, 0, 10}, stroke type:"Dashed",<br />stroke dash and gap:{4.0, 4.0}, stroke tint:30.0} end tell end tell<br /><br /><br />> Also if anyone knows of a source that has the default properties for the<br />> graphic elements in indesign<br />> <br />The properties are defined in the relevant object styles; graphic lines get<br />the properties set in the object style marked with the Graphics Frame icon.<br /><br />> (basically a better indesign scripting dictionary then adobes)<br />> <br />If you a want a better view of the object model, get Script Debugger and use<br />its Explorer feature <a href=http://www.latenightsw.com/>. I wouldn't dream of<br />scripting without it.<br /><br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

Similar Messages

  • Automatic graphic switch via Apple Script

    hi community,
    I would like to change the "Automatic graphics switching" (tick on / tick off) via an Apple Script. I made the following script and it works, except with line "click chckbox 2". Here it ticks the box "Show battery status in menu bar". With "click checkbox 1" it takes the "Lock-Button".
    I would be glad if anybode could tell me the right code for ticking the checkbox "automatic graphics switching" via Apple Script.
    Thanks a lot
    PS: Yes I know that tool gfx Status, but I wanna do this via Apple Script.
    tell application "System Preferences"
      activate
              set current pane to pane "com.apple.preference.energysaver"
              delay 0.5
              tell application "System Events"
                        tell process "Systemeinstellungen"
                                  tell window "Energie sparen"
      click checkbox 2
                                            delay 0.5
                                  end tell
                        end tell
              end tell
      quit
    end tell
    quit

    Hello
    You may try this. It works with MacBook Pro 2010 under 10.6.5.
    tell application "System Preferences"
        set current pane to pane id "com.apple.preference.energysaver"
    end tell
    tell application "System Events"
        tell process "System Preferences"
            tell window 1
                tell group 1 -- automatic graphics switching
                    tell checkbox 1 -- automatic graphics switching
                        click
                    end tell
                end tell
            end tell
        end tell
    end tell
    And the script below will set the option to the specified value.
    set_automatic_graphics_switching(0)
    on set_automatic_graphics_switching(i)
            integer i : status of automatic graphics switching
                0 : off (unchecked)
                1 : on    (checked)
        if i is not in {0, 1} then error "Invalid argument: " & i number 8000
        tell application "System Preferences"
            set _was_running to running
            set current pane to pane id "com.apple.preference.energysaver"
        end tell
        tell application "System Events"
            tell process "System Preferences"
                tell window 1
                    tell group 1 -- automatic graphics switching
                        tell checkbox 1 -- automatic graphics switching
                            if value ≠ i then click
                        end tell
                    end tell
                end tell
            end tell
        end tell
        if not _was_running then
            tell application "System Preferences" to quit
        end if
    end set_automatic_graphics_switching
    Hope this may help,
    H

  • Selecting a Graphic Layer with Apple Script

    I'm trying to build on a very helpful post by sstanleyau showing how to choose different layers in a placed PSD or PDF. Unfortunately, I'm stuck in my test script. It seems so simple …
    Here's what the script should do after an image is placed in a text frame:
    1. "Read" the names of each of the graphic layers in the placed graphic.
    2. If one of the names contains a string, then
    3. Turn current visibility of that layer on
    4. Turn the visibility of every other layer off.
    However, my script seems to come up with a different result each time I run it and often fails to "find" a layer that I know is there. Is it possible that my script can't access the name of a graphic layer if its visibility is set to off?
    Here's why I've got
    --before running, user selects a test frame containing a placed PDF with multiple layers named blue, red and green.
    tell application "Adobe InDesign CS4"
    set theFrame to item 1 of selection
    set glOptions to graphic layer options of graphic 1 of theFrame
    set theName to text of "blue"
    repeat with z from 1 to count of graphic layers in glOptions
    if name of graphic layer z of glOptions contains theName then
    repeat with d from 1 to count of graphic layers in glOptions
    if current visibility of graphic layer d of glOptions ≠ false then
    set current visibility of graphic layer d of glOptions to false
    end if
    end repeat
    if current visibility of graphic layer d of glOptions = false then
    set current visibility of graphic layer z of glOptions to true
    end if
    end if
    end repeat
    end tell

    Im NOT sure if you have just made this a little over complicated… This works just fine for me. Tested with about a dozen psd layers…
    tell application "Adobe InDesign CS2"
    tell active document
    tell rectangle 1
    tell graphic 1
    tell graphic layer options
    set GLC to count of graphic layers
    repeat with i from 1 to GLC
    if name of graphic layer i ≠ "Blue" then
    set current visibility of graphic layer i to false
    else
    set current visibility of graphic layer i to true
    end if
    end repeat
    end tell
    end tell
    end tell
    end tell
    end tell
    This variant also works as I would have expected too… Retaining visibility from a list…
    tell application "Adobe InDesign CS2"
    tell active document
    tell rectangle 1
    tell graphic 1
    tell graphic layer options
    set On_List to {"Red", "Aqua", "Orange"}
    set GLC to count of graphic layers
    repeat with i from 1 to GLC
    if name of graphic layer i is not in On_List then
    set current visibility of graphic layer i to false
    else
    set current visibility of graphic layer i to true
    end if
    end repeat
    end tell
    end tell
    end tell
    end tell
    end tell

  • Open multi page pdf specific page in Illustrator CS4 with apple script

    I need to open multi page pdf specific page in Illustrator CS4 with apple script. Is it something like this:
    activate  (open file theTargetFolder as PDF with options …).
    Thank you.

    Carlos,
    Muchas Gracias por tu colaboración y excelente script, el que se abra el ESTK no tiene mayor importancia.
    El caso es que Adobe recomienda encarecidamente NO utilizar Illustrator para editar PDFs, por diversas razones, aunque cuando no hay otro remedio o herramienta disponible, o conocida ...
    Para llegar aquí, aparte de San Google, hay que ir a Adobe.es (en mi caso), pestaña de Ayuda,  ..... (hasta aqui bien),
    luego hay que bajar hasta el final y ver Comunidad y Foros...... (esto puede ser)
    al pulsar aparacen un montón de foros se supone de programas pero en inglés,
    y la última línea es de International Forums,  ya casi hemos llegado)
    pulsamos entonces, y por fin se abren cuatro palabras con idiomas, en una dice: español      (casi no me lo puede creer)
    pincho y llego por fin aquí.
    Muy poca gente sabe de la existencia de este pequeño refugio, si a esta dificultad añadimos la peculiar forma de ser de la gente, ....

  • [CS3, CS4 JS] Start/end of stroke

    Before I waste any more time on this, is it not possible to use scripting to set "Start" and "End" of stroke? (I'm trying to put arrowheads on graphic lines.)

    A quick search in my own reference data for 'arrowhead' shows CS4 has an enumeration ArrowHead, which can be applied as properties to Button.leftLineEnd, Button.rightLineEnd, ChangeObjectPreference.leftLineEnd, ChangeObjectPreference.rightLineEnd, FindObjectPreference.leftLineEnd, FindObjectPreference.rightLineEnd, FormField.leftLineEnd, FormField.rightLineEnd, GraphicLine.leftLineEnd, GraphicLine.rightLineEnd, Group.leftLineEnd, Group.rightLineEnd, ObjectStyle.leftLineEnd, ObjectStyle.rightLineEnd, Oval.leftLineEnd, Oval.rightLineEnd, PageItem.leftLineEnd, PageItem.rightLineEnd, PageItemDefault.leftLineEnd, PageItemDefault.rightLineEnd, Polygon.leftLineEnd, Polygon.rightLineEnd, Rectangle.leftLineEnd, Rectangle.rightLineEnd, TextFrame.leftLineEnd and TextFrame.rightLineEnd.
    Sounds like it
    i is
    possible. Perhaps you confused "Stroke" (which is not an object) for "GraphicLine" (which is).

  • How to check indesign version installed by Apple Script

    Hi Friends,
    I want to make an apple script which will check for the version of Indesign installed in the "Applications" folder.
    I tried using "exists" function of Finder. But seems something is missing/incorrect.
    tell application "Finder"
              exists application file "Adobe InDesign CS4" of folder "Applications"
      end tell
    Please can you suggest.
    Thanks,
    Abhishek

    Hi Niel,
    Thanks for your email.
    Basically, I need to check whether a user has which version of Indesign on his mac like (CS3, CS4 etc)
    Accordingly, I have to create different loops.
    I have CS4 installed on my mac but when I run the below
    tell application "Finder"
              exists version of application file "Adobe InDesign CS4" of folder "Applications" of startup disk
    end tell
    The result is false.. even though I have CS4 installed. And, if I try
    get version of application "Adobe InDesign CS4"
    It gives o/p as  "6.0.6.622"
    Thanks for your help!
    Abhishek

  • Find and delete graphic lines by geometric bounds

    Hi everybody,
    I am really desperate after days browsing the web and forums I still can't figure this out.
    I am working on InDesign CS3 on a MacBook Pro with Snow Leopard.
    I have a 300 page catalog put together through a data merge. Unfortunately this way I produce 2 graphic lines at the end of each page that I would rather like to delete. Since I do not want to do that manually on each page and since I will have to put together this catalog quite frequently in the future I would like to delete those lines using Applescript.
    Since I have about 12 more of the same lines on each page (same style, color, stroke etc) I figured the only way to tell Applescript which ones to delete is by geometric bounds because those lines are always at the same coordinates on each page.
    Unfortunately I cannot figure it out. I tried the following code:
    tell application "Adobe InDesign CS3"
         tell document 1
              repeat with oneFrame in (get graphic lines whose stroke weight = 1)
                   if geometric bounds of oneFrame is {0, 0, 0, 210} then
                        delete oneFrame
                   end if
              end repeat
         end tell
    end tell
    REPLY
    tell application "Adobe InDesign CS3"
         get every graphic line of document 1 whose stroke weight = 1
              --> {graphic line id 187 of page id 177 of spread id 172 of document "Untitled-16"}
         get geometric bounds of graphic line id 187 of page id 177 of spread id 172 of document "Untitled-16"
              --> {0.0, 0.0, 0.0, 210.0}
         delete graphic line id 187 of page id 177 of spread id 172 of document "Untitled-16"
    end tell
    This worked fine for the line placed at x 0mm y 0mm with a length of 210mm.
    I tried the same thing with a line at x 3mm y 134mm length of 210mm with the following code
    tell application "Adobe InDesign CS3"
         tell document 1
              repeat with oneFrame in (get graphic lines whose stroke weight = 1)
                   if geometric bounds of oneFrame is {134, 3, 134, 213} then
                        delete oneFrame
                   end if
              end repeat
         end tell
    end tell
    REPLY:
    tell application "Adobe InDesign CS3"
         get every graphic line of document 1 whose stroke weight = 1
              --> {graphic line id 213 of page id 177 of spread id 172 of document "Untitled-16"}
         get geometric bounds of graphic line id 213 of page id 177 of spread id 172 of document "Untitled-16"
              --> {134.0, 3.0, 134.0, 213.0}
    end tell
    This was my best shot. No idea if I am on the right track or totally off bounds.
    Any help would be highly appreciated!
    Thanks in advance..
    Osinho

    Good Morning Mary,
    Thank you for your reply.
    I found a solid solution using a different approach.
    It seems like the geometric bounds selector is not accurate for values with decimal values like 149.267 because in reality this value is 149.266666666666666666666667 (period 6). Since some of my lines have such a pattern it just won't work (that's the only explanation I could come up with...)
    Nevertheless here my solution:
    The lines that have to be removed are always the last 2 lines of a total of 12 lines on a page. Knowing that I incorporated a running index telling the script "please delete only the lines with index 11 and 12" once the max count of 12 per page is reached I reset the index so it starts from scratch for the next page. Works like a charm!
    (don't get confused because I count down from 12 to 1 - this needed to be done because the loop starts at the bottom of the page rather than at the top)
    Here the code:
    tell application "Adobe InDesign CS3"     
         tell document 1
              set lCount to 12
              repeat with oneFrame in (get graphic lines whose stroke weight = 1)
                   if (lCount is 12 or lCount is 11) then
                        delete oneFrame
                   end if
                   if lCount is 1 then
                        set lCount to 13
                   end if
                   set lCount to lCount - 1
              end repeat          
         end tell
    end tell
    Thank you very much for your assistance!
    Highly appreciated!
    Have a great weekend...
    Osinho

  • Removing BCC with Apple Script when automatically BCC myself is set in pref

    I have "Automatically Bcc myself" set in the Mail Composing preferences, which I like because I get a copy of email that I send. I also have an apple script that forwards messages to an email address. When I used this apple script on Tiger, the BCC option was never added (it might have been a bug with Mail in Tiger); however, now on Leopard, the BCC option is always added when I used the apple script.
    I've tried setting the BCC field to Null and Blank, but that doesn't seem to work. I suspect that the field is set upon send or the "make new" directive. Does anyone know a way to tell Mail to not Bcc automatically in an Apple Script?
    Here is the forward apple script program:
    (* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
    (* RS 31st July 2006 *)
    set theAuthority to "person AT here"
    tell application "Mail"
    set theMessages to the selection
    repeat with thisMessage in theMessages
    set newMessage to make new outgoing message at end of outgoing messages
    tell newMessage
    set visible to true (* comment out whole line to stop 'blinking' windows *)
    set content to thisMessage's source
    set subject to "Fwd: " & thisMessage's subject
    set bcc to null (* my attempt to set bcc to null or blank *)
    make new to recipient with properties {address:theAuthority}
    end tell
    send newMessage
    set read status of thisMessage to true
    set was forwarded of thisMessage to true
    set junk mail status of thisMessage to true
    end repeat
    end tell

    Thanks for that reply!
    After more google searching, I found this on http://www.macosxhints.com/article.php?story=20040425063255443
    One of the responses said that you can add the lines:
    delete bcc recipients
    delete cc recipients
    "in that order" to the new message tell and get rid of the recipients. I had tried the delete before, but I thought I had to get the recipients before I deleted them. I'm not a very good apple script person. Here is my final script
    (* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
    (* RS 31st July 2006 *)
    set theAuthority to "email address here"
    (* or your personal Knujon address *)
    tell application "Mail"
    set theMessages to the selection
    repeat with thisMessage in theMessages
    set newMessage to make new outgoing message at end of outgoing messages
    tell newMessage
    set visible to false (* comment out whole line to stop 'blinking' windows *)
    set content to thisMessage's source
    set subject to "Fwd: " & thisMessage's subject
    make new to recipient with properties {address:theAuthority}
    delete bcc recipients
    delete cc recipients
    end tell
    send newMessage
    set read status of thisMessage to true
    set was forwarded of thisMessage to true
    set junk mail status of thisMessage to true
    end repeat
    end tell

  • Its possible to convert Apple script to Java script

    Hi,
    Please Help me anyone to do that script.
    its possible to convert below mentioned Apple script to Java Script.
    Thanks in advance.
    Help me......!
    -yajiv
    Code:
    tell me to addImageLabels()
    on addImageLabels()
              tell application "Adobe InDesign CS5"
                        set numberAdded to 0
                activate
                        set enable redraw of script preferences to true
                        set currentFonts to (get name of every font)
                        if currentFonts does not contain fontname then
                                  display dialog "The font \"" & fontname & "\" is not active on your system." buttons {"Continue anyway", "Cancel"} default button 2
                        end if
                        tell document 1
      -- get a list of unique page IDs in this document
                                  set allpageids to my getPageIds()
                                  repeat with p from 1 to (length of allpageids)
                                            set pgid to item p of allpageids
      -- loop through these, getting a list of unique page item IDs to inspect
                                            tell page id pgid
                                                      set pageitems to (get id of every page item)
                                                      repeat with i from 1 to (length of pageitems)
                                                                set pid to item i of pageitems
                                                                tell page item id pid
                                                                          try
      -- certain boxes will fail to yield a content type, whatever
                                                                                    if content type is graphic type then
                                                                                              set c to class
                                                                                              set i to id
      -- get the name of the link, i.e. the filename, subject to labelFormat (full name, first six chars, etc.)
                                                                                              set gn to my getImageName(pgid, c, i)
                                                                                              if (gn is not "Empty") and (gn is not "") then
                                                                                                         set b to visible bounds
                                                                                                         set h to (item 3 of b) - (item 1 of b)
                                                                                                         set newtop to (item 1 of b) + (h / 2)
                                                                                                         set item 1 of b to newtop
                                                                                                         set w to (item 4 of b) - (item 2 of b)
                                                                                                         if w < minwidth then
                                                                                                                   set item 4 of b to ((item 4 of b) + 0.2)
                                                                                                                   set item 2 of b to ((item 2 of b) - 0.2)
                                                                                                         end if
                                                                                                         set l to (make new text frame at beginning of page id pgid with properties {visible bounds:b, fill color:fillcolor, contents:gn, label:"imagelabel"})
                                                                                                         tell l
                                                                                                                   tell paragraph 1
                                                                                                                             set justification to center align
                                                                                                                             try
                                                                                                                                       set applied font to fontname
                                                                                                                             end try
                                                                                                                             set point size to fontsize
                                                                                                                             set fill color to textcolor
                                                                                                                   end tell
                                                                                                                   set inset spacing of text frame preferences to ((insetspacing as string) & " in") as string
      fit given frame to content
                                                                                                                   set numberAdded to numberAdded + 1
                                                                                                         end tell
                                                                                              end if
                                                                                    end if
                                                                          end try
                                                                end tell
                                                      end repeat
                                            end tell
                                  end repeat -- allpageids
                        end tell -- document 1
      display dialog "Added " & numberAdded & " labels." buttons {okButton} default button 1 giving up after 10 with title scriptName
              end tell -- InDesign
    end addImageLabels
    on getPageIds()
              tell application "Adobe InDesign CS5"
                        tell document 1
                                  tell master spread 1
                                            set masterpageids to (get id of every page)
                                  end tell
                                  set docpageids to (get id of every page)
                        end tell
              end tell
              return masterpageids & docpageids
    end getPageIds
    on getImageName(int1, cla1, int2)
              tell application "Adobe InDesign CS5"
                        tell document 1
                                  tell page id int1
                                            if cla1 is rectangle then
                                                      set imagename to (name of item link of graphic 1 of rectangle id int2)
                                            else if cla1 is polygon then
                                                      set imagename to (name of item link of graphic 1 of polygon id int2)
                                            else
                                                      return "Unknown"
                                            end if
                                            try
                                                      if (labelformat is "First six characters") then
                                                                return (characters 1 thru 6 of imagename) as string
                                                      else if (labelformat is "Base name of linked file") then
                                                                set op to offset of "." in imagename
                                                                return (characters 1 thru (op - 1)) of imagename as string
                                                      else
                                                                return imagename
                                                      end if
                                            on error
                                                      return "Empty"
                                            end try
                                  end tell
                        end tell
              end tell
    end getImageName

    Yajiv:
    I realize English is probably not your first language, but you are not really making sense. Perhaps you could use more words and write in more detail.
    It seems you already have your script in AppleScript. Why do you need to convert it to JavaScript?
    It's going to be inconvenient at best and probably not worth anyone's time.
    Just use the AppleScript.

  • How to disable the option of "Overprint [Black] Swatch at 100%" in Indesign by Apple Scripting

    Hi Friends,
    I am new to Indesign Scripting by Apple Script. As a beginner, I am trying to do some basic scripting in Indesign by Apple Script.
    My aim is to disable the option of "Overprint [Black] Swatch at 100%" in Indesign. This option is available when we go to Indesign ---> Preferences----> Appearance of Black.
    Also, if a user opens a file, in which the swatch is already enabled, then it should prompt him for disabling.
    I can make a display dialog in AppleScript. But, I am bit unsure as how can I go ahead and disable this option. I tried this below script:
    tell application "Adobe InDesign CS4"
          tell every layout window to set overprint preview to false
    end tell
    However, it is changing the view option to overprint preview.
    Appreciate your help and suggestions!
    Thanks,
    Abhishek

    tell application "Adobe InDesign CS5"
              tell the active document
                        set overprint black of document preferences to false
              end tell
    end tell

  • Install and uninstall of dmg file using Apple script in Mac 10.6 and higher version.

    Hi ,
    Could anyone please help me to write a Apple script to Install dmg file and do clean uninstall in Mac 10.6.8 and higher version.
    My requirement is:
    When i run script : it has to install the dmg file which is located inside one desktop folder say 'New Folder'
    I need to do clean unistall when i run the script: i need to delete the folder in ~/Library- locate folder say  'CPSPCSHOWSERVER'' move to trash and from Terminal type in command "rm -r ~/.CPS' to completely delte this folder.
    Really appreciated all ur help!!
    Thanks,
    KT.

    http://macfidelity.de/2008/08/30/how-to-mount-a-dmg-from-terminal-in-mac-os-x/in dex.html
    http://osxdaily.com/2011/12/17/mount-a-dmg-from-the-command-line-in-mac-os-x/
    http://hints.macworld.com/article.php?story=20030614230204397
    http://www.commandlinefu.com/commands/view/2031/install-an-mpkg-from-the-command -line-on-osx

  • CS3 CS4 CS5 backwards compatible or just backwards?

    Have just spent over a month talking with Adobe "Customer Service" - an offshore call centre whose entire capability seems to be to read from a script which says "Sir I understand your problem" - really? - "But all I can suggest is that you purchase CS5" - I had already! - "Or visit our online community".
    Over a month - I may include the thread here - including a dozen telephone calls where I was occasionally hung up on and where I NEVER ONCE spoke with a technician who actually understood my problem.
    I have client video projects stretching all the way back to Premiere CS2.
    When I upgraded from CS3 to CS4 (on PC) I was told to "start all my video projects from scratch" - that was the helpful answer from the Adobe "Customer Service" team! It appears as though the way CS4 handles native media formats is entirely non-compatible with CS3 or earlier.
    Two months ago I purchased a Mac and CS5 suite. Again, my CS3 projects are not compatible it seems. One month ago my PC died.
    I began a dialog with Adobe "Customer Service" looking for help.
    I own Production Suite or Master Suite in CS2, CS3, CS4 and CS5 - so I'm not a software pirate - and have a reasonable expectation that I should attract a certain level of support: specifically, I would like to exchange my CS3 PC software for CS3 Mac - seems like the best way to run those older projects - BUT I would gladly take any advice you can provide!!
    After over a month talking with a range of "Customer Service" people ranging from well-meaning but un-trained to straight-ahead rude people, I've been told to go buy the software somewhere else!
    Adobe CS3 for Mac ships new from $800 to $1500 from eBay.
    Boot Camp is an option since I own CS3 for PC but then I need to buy Windows and a Parallel software solution - also around $1200.
    I no longer feel like such an evangelist for IP - when this is the service you get as a Genuine Adobe Customer.
    I love using Adobe products but am disgusted at the total lack of service.
    Can anybody help?

    Going from Windows to MAC with AVI, WMV, and converted VOB's (if done) may cause some funny things to happen.
    I think I would check up what CODEC's those AVI and converted VOB's are using, and check if your MAC supports them, and also check if your MAC supports WMV.
    "basically every kind of media you can import to PP" is probably different on Windows than it is on MAC.
    Dag

  • XML Comment in Indesign using Apple script.

    Hi all,
    How to find the selected XML element is commented in indesign and get XML comment value in thru apple script. Any Ideas?
    -Jacintha

    You can have as many comments as you want so they require you to state the index of the comment in your reference.
    Assuming you have an object reference for the XML element, you would replace "associated XML element of selection" with that.
    tell application "Adobe InDesign CS3"   
        set myComments to {}
        if every XML comment of associated XML element of selection is not {} then
            set end of myComments to value of every XML comment of associated XML element of selection
        end if
        return myComments
    end tell
    if you know there's only going to be one comment then,
    tell application "Adobe InDesign CS3"
        if every XML comment of associated XML element of selection is not {} then
            set  myComment to value of XML comment 1 of associated XML element of selection
        end if
        return myComment
    end tell
    ~Mike

  • File size comparisons, InDesign CS3, CS4 and CS5?

    Hi, all.
    It seems there was a trend for several major releases where each time Adobe released a new version of InDesign and InCopy, average file sizes grew by 20% or so from the old release to the new release, at least back in the older CS days. Has this trend continued, such that file sizes in CS4 are substantially larger than file sizes from CS3, and CS5 files are substantially larger than those from CS4?
    Adobe, of course, wants to keep writing functionality that will keep the user community coming back to buy in to upgrades. The added functionality sometimes comes at a cost beyond the price tag. If file sizes are larger in a newer version, then page saves over a network or to a database are likely to be slower, and user productivity takes a hit while users are waiting for files to be saved.
    Has anyone done any testing to build the "same" page in multiple versions of InDesign to understand what the effect is on the file sizes? I'm specifically interested in the file sizes between InDesign CS3, CS4 and CS5. To be meaningful, the test page would have to be at least moderately complex, with a couple of photos, multiple text elements and so forth. By "same," the page wouldn't take advantage of new functionality in newer versions but would be saved as a native page of the current version, though the file sizes may be bloated by the new functionality like it or not.
    If you've done any testing along these lines, I'd like to hear more about it.
    Thanks.
       Mark

    The overall structure of ID's files have been exactly the same for -- as far as I can see back -- CS. No change at all, in there.
    There have been significant additions to the 'global' spaces; stuff like InCopy user data, table styles, object styles, and cross references. Each of these add a major chunk of data to each file, whether you use it or not, plus a few bytes per object (again, whether you use them or not -- ID also needs to know where you did not use them, that's why). I think these might be the main source of 'global' file size increase (a single object style in one of my files, for example, eats up a healthy chunk of 11,482 bytes).
    For the rest, all new stuff like 'span columns' is a handful of bytes per paragraph style. Tracking changes may very well double the size of text runs -- but 1 character takes up 1 byte of storage (plus perhaps some overhead of indicating its 'tracking' status). Any single measurement unit always uses 8 bytes at least (for example, the left inset for a column span -- even if it's not used, or set to 0pt).
    I think we're talking about a couple of K's here (oh -- perhaps a max of a hundred or so), in a file format that has been designed around the concept of "disk pages", each 4K big, meaning that sometimes adding one single character to a text box increases the file size by 4 K.
    Your idea of comparing the size of a file created in CS3 against the same saved as CS4 and as CS5 is certainly feasible -- I might try it some time, just to confirm it's purely the extra 'new objects' data that accounts for the size increase and to confirm my guesstimates of the number of Ks involved.

  • CS2, CS3 & CS4 upgrade questions

    Is it possible to have both CS2 and CS3 installed and functional on the same Windows machine at the same time? Same question with CS3 and CS4 and, if it can be done, are there any known issues that result?
    I need to migrate our graphics station to the newer CS3 (and eventually CS4 ... probably around the time CS10 is released), but I can't afford to lose access to projects during the much slower than normal process of getting the newer version fully ready to go (i.e., all plugins and the many custom files they use within my projects accessible by the newer version). Sorry for the 101 question ... I work in corporate video now and our facilities are way behind the curve so I have now become that way too.

    As Navarro said: Should be no problem. Be aware, though, that several of the "Edit original" and "Open in Bridge" type functions will always resort to the most modern version and these functions thus will not work fully in older versions. If e.g. you chose to "Browse Presets" in AE CS3 with CS4 already on your system, it would open Bridge CS4 and you would be able to view the presets, but could not apply them with a double-click as you would otherwise. Also expect some confusion when working with MPEG stuff. You may get warnings about missing CoDecs in Encore and Premiere or weird licensing warnings ("not included in trial version" and such...)
    Mylenium

Maybe you are looking for