[CS3][JS] endBaseline

Can anyone shine some light on how 'endBaseline' is different to just 'baseline'?

> The point is if you are trying to fit a text frame to its contents exactly as would happen if you did fit Frame to Contents on the last frame of a story.
No problems, I fully understand. The objective I described is the solution: you need to find a normal character in the line that is not shifted in any way and use that character's baseline value.
> Granted, a subscript will only introduce a small error, but it will nonetheless be an error.
I agree, but only in the circumstance where you use the baseline value of the shifted character instead of a 'normal' character in the line.
I think for the most part we are saying the same thing with regards to how this conversation started. If you get 'myTextFrame.lines[-1].baseline', it actually returns the baseline of the first character in the line. If that character is subscripted, superscripted or otherwise baseline shifted, then the result will not be the exact baseline you are after.
I have a script which fits story frames (like Fit Frame to Contents) and I use the following handler to ensure I've got a character in the line which is not baseline shifted in any way. One thing to watch out for, however, is when
i every
character in the line is shifted in some way, then the handler will fall back to returning the value of the lowest baseline for the line, to ensure the returned value doesn't make the frame breaks change:
>function hGetBaselineOfLine(theLine)
] app.findTextPreferences = NothingEnum.nothing;
app.findTextPreferences.position = 1852797549;
app.findTextPreferences.baselineShift = 0;
var myNormalCharacters = theLine.findText();
if (myNormalCharacters.length != 0)
]] return myNormalCharacters[0].baseline;
] else
]] var myBaselines = theLine.insertionPoints.everyItem().baseline;
]] myBaselines.sort();
]] return myBaselines[myBaselines.length - 1];

Similar Messages

  • Adobe Bridge CS3 windows error

    Hi,
    When I open Bridge cs3 on its own after a few seconds the window banner comes up. Adobe bridge has encountered a problem and needs to close.We are sorry for any inconvenience. The same happens if I try to open bridge from within Photoshop cs3
    I can still work in the programme ok and move the windows error aside, I would like to fix the problem, Tried to debug but the programme just closes.
    I use windows xp pro with all the latest updates that are available.
    have any others experienced this problem and how to fix it.
    Thanking you in advance.

    Mikep500 wrote:
    This is a copy of the message that comes up.
    No messageto see, but you can check your Startup Scripts in Bridge preferences. Mine are like this:

  • Text Wrap options not showing in InDesign CS3

    Using InDesign CS3 on a Mac 10.4.  I've had this problem for a couple of months now and it's getting past the point of annoying.  When I open my text wrap options pallete it's blank even when I expand options.  I can see the text wrap icons in my header panel, but I no longer have options to change the right/left/top/bottom margins.  Just a general "add wrap" and "remove wrap".  Is there any way I can get my pallete back?  I've tried defaulting my tools, but still it does not show up.  I don't know what to do to get it back.

    Did you try resetting preferences? While pressing Shift+Option+Command+Control, start InDesign. Click Yes when asked if you want to delete preference files. If you don't get the message about deleting preferences, you weren't fast enough.
    http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WSa285fff53dea4f86173837510 01ea8cb3f-6d1e.html
    Ken

  • I am unable to open raw files from my Canon T1i in Adobe Camera Raw of my version CS3 of Photoshop.  I have tried to update my ACR by downloading version 4.6 from the Adobe website but I am still unable to open raw files, just JPEG.  Is there a way to use

    I am unable to open raw files taken on my Canon Rebel T1i in my version of Photoshop CS3.  When I import raw files into Bridge they come up as patches with CR2 on them and when clicked on, a notice comes up stating that Photoshop does not recognize these files.  I tried to update my Adobe Camera Raw by downloading version 4.6 from the Adobe Website, but when I clicked on the plus-in, I got another message that Photoshop does not recognize this file.  I spoke with a representative from Canon who said that I could not update CS3 and that I should subscribe to the Cloud.  I would prefer to use my CS3, if possible.  Can anyone advise me what to do?

    The T1i was first supported by Camera Raw 5.4 which is only compatible with CS4 and later
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Some options:
    Upgrade to CS6
    Join the Cloud
    Download the free Adobe DNG converter, convert all T1i Raw files to DNGs then edit the DNGs in CS3
    Camera raw, DNG | Adobe Photoshop CC

  • Double-click/Drag-&-drop Photoshop files opens application but not file or I get a message saying that some files in Application Support are missing and I have to reinstall. (Photoshop CS/CS2/CS3)

    This is most commonly due to installing Photoshop CS/CS2 <i>before</i> doing an archive and install of Mac OS10.3 or OS10.4.<br /><br />One solution is to reinstall Photoshop 7/CS/CS3 after you have installed Mac OS10.3 or OS 10.4.<br /><br />If you have Photoshop 7 and 8(CS), the easiest way to reinstall Photoshop (without disturbing the original installation) is to install to your desktop. After the install is done just trash the Photoshop folder on the desktop.<br />Note: This will only work with Photoshop 7 and 8(CS) but not with 9 (CS2).<br /><br />Photoshop CS2 you must delete the Photoshop CS2 folder. If you have any 3rd party Plugins or presets remove them from the folder before deleting. Just placing the folder in the trash will not work it must be deleted. After reinstalling CS2 you can now put all 3rd party Plugins and presets back in the new folder.<br /><br />---------------------------<br />Another solution courtesy Anne Shelbourne<br /><br />Open your Previous System folder. <br />Find "Adobe Unit Types". <br />Copy it into: <Your current system Hard Drive>/Library/ScriptingAdditions/<br />Then reboot your Mac.<br /><br />---------------------------<br />However, if you happen to be running a non-English version, like Photoshop CS CE or Photoshop CS ME, it appears the missing file does not get installed. You would need to install and delete the international English version first.

    The problem you got into is a known problem after updating to Tiger. It is a small 4K file that gets trashed with the update. It is called the Adobe Unit Types. Both Photoshop and Photoshop Elements need this file to function.
    One way to get it back is to reinstall Photoshop, the other is to add this file again.
    You can get the file from here http://www.dd.se/Tips/bildbehandling/downloads/AdobeUnitTypes.zip
    It is only 3,7 KB big.
    You put the file you download here:
    [hard disk] /Library/ScriptingAdditions. If you don't have a Scripting Additions folder, you create it.
    As you trashed Photoshop, you need to completely deinstall it to be able to reinstall it.

  • PhotoshopNews: Adobe Photoshop CS3 at a glance!

    http://photoshopnews.com/2006/12/14/adobe-photoshop-cs3-at-a-glance/
    Even more content out there now on the home page of PhotoshopNews.com

    I haven't been able to download CS3 yet, but the Martin Evening pdf (thanks for the link!) has what looks like a piece of great news buried in it:
    "For example, before you first had to create an empty new document with the exact pixel dimensions before you could place an image (such as a raw file) as a Smart Object. With Photoshop CS3, you can now place a raw capture file as a Smart Object layer in a single step."
    If I understand this right, it means that the functionality of the old Dr Brown Place-a-Matic script is now available from Aperture. We can -- or this makes me hope we can -- send a RAW from Aperture to PSCS3 for editing, and then Place the same image, perhaps twice, as a Smart Object, edit away, and when we Save get the whole edited image back in Aperture without going through the Finder.
    I used to use this (from Bridge) all the time to double-expose RAW shots: adjust the sky to one exposure and the ground to another, masking to get both into the final image, all without messing with the pixels of the RAW image. I've missed it. Whoopee.

  • Do I need to install CS3 on Windows 7 64 bit before installing CS5 Upgrade?

    I am replacing a graphic designer's Windows Vista laptop with a Dell Precision T5500 desktop.  Do I need to uninstall CS3 from the laptop and decommission the serial number?  Then do I need to install CS3 on the new desktop before installing the CS5 upgrade?  I was told I needed to decommission the installation, but I don't remember having to do that with other installations.  Thanks in advance!

    You should definetly deactivate any software before uninstalling. But you don't have to install CS3 in order to install CS5. Just have the serial number handy for verification. That said, depending upon the user's needs, you might want to leave CS3 available.
    Bob

  • My harddrive crashed.  I got a new hard drive, and attempted to port my CS3 design software onto my new hard drive.  It says it cannot work and I must uninstall and reload the software.  I registered the software and have the serial, but cannot find the o

    I bought the design premium in 2007 and can no longer find my original software.  I need to uninstall and reinstall but again can't find my software, but all applications are in my backup drive. Any help?

    Julia,
    Here is a download site which goes back to CS3:
    http://technolux.blogspot.co.nz/2011/02/adobe-direct-download-links-less-akamai.html#more
    Or you may use this one, (t is crucial to follow all the initial steps precisely):
    http://prodesigntools.com/tag/ddl
    There are known issues with Yosemite, if that is the OS, but according to this site, someone has made Yosemite work with almost all CS/CC versions.
    http://roaringapps.com/apps?index=a
    For a specific CS3/Yosemite issue, namely CS3 crashing on opening under Yosemite, this solution,
    1) Open System Preferences > Java
    2) Wait for the Java Control Panel to load
    3) Open Adobe Illustrator (while keeping the Java Control Panel window open)
    has been given by Allycs in post #10 in this thread:
    https://forums.adobe.com/thread/1610653
    1) Open System Preferences > Java
    2) Wait for the Java Control Panel to load
    3) Open Adobe Illustrator (while keeping the Java Control Panel window open)

  • [JS CS3, Win] Saving InDesign using app.activeDocument.save

    Hello.
    I am having problems saving an InDesign document using Javascript.
    My aim is to have a box in the document where I will type the filename and path where I want the InDesign file to be saved (eventually this will be generated from a datamerge).
    I then want to run a script which will read the contents of the box and then save the document to that filename or location.
    At the moment I have:
    //SaveText.jsx
    //An InDesign CS3 JavaScript
    //Saves the document to the provided path
    //get contents of the FileNameBox box on the document
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    //now save
    app.activeDocument.save("/"+ varFileName+".indd");
    //alert (app.activeDocument.filePath);
    When I run the script (with "Hello" in the FileNameBox) the file changes name on the top bar of InDesign to "Hello.indd", but (when I run the commented out alert at the end) the file is not actually saving anywhere.
    If I close InDesign and then open it the file is listed under "Open Recent" on the menu, but clicking it does nothing - again the file doesn't exist.
    Does anyone have any ideas to help me from tearing my hair out?
    Where is my file saving? (Or, if it isn't, how can I make it save!).
    Thanks in advance for any help you can offer.

    var myFolder = new Folder("~/Desktop/Test");
    if (!myFolder.exist) myFolder.create();
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    app.activeDocument.save(myFolder.fsName + "\\" + varFileName+".indd");
    alert(app.activeDocument.filePath);

  • Photo gallery in DW CS3

    Can someone tell me how to make a photo gallery in DW CS3? I
    mean a site with thumbnails that are linked to larger images,
    preferably all thumbnails on one site, not the filmstrip system. I
    read that there would be a gallery option in DW, but I cannot find
    it in the help, nor in the books I have. Thanks

    Nobody???

  • Adobe bridge and CS3 I have down loaded trial version...

    two problems--when i down load my pics- jpeg&raw- from EOS5D camera into adobe CS3 bridge i only get jpeg images not raw--my zoom browser does it!
    also when i double ck on thumbnails in BR i get raw processing--when i then go to photo shop by cking -save objects-when images opens up in phot shop i can not make any color adjustments--I have wasted 4 hrs with adobe techs--They had me remove adobe CS3 4 x and reload--problem still exists--is there adjustments in BR that affects this situation..?
    br carmen-i have vista operating system

    Vista has a problem with Canon cameras, not Bridge's fault. Copy the images directly to the hard drive. Check MSFT for any updates...
    The "Save Object" is for making Smart Objects and from the sounds of it, you are unfamliar with the concept? You need to double-click the Workflow options in Camera Raw and uncheck the Smart Objects options...then images will open as images not Smart Objects.

  • Adobe Bridge CS3

    Hello, All
    I recently upgraded to Adobe Photoshop CS3 for serious image manipulation and realized Bridge would (Should!) solve some frustrations with iPhoto's organization characteristics (such as its inability to sort named filmrolls alphabetically other than by drag and drop). But I still want to use iPhoto as the primary application to view, slightly modify, create slideshows and email images, because sometimes Photoshop is overkill.
    Bridge allows, in Preferences, to specify the application to open images, and defaults to Adobe Photoshop CS3. After browsing and changing the application to iPhoto, and navigating to an original photo in iPhoto/Library/Originals/FolderName, and then double clicking the image in Bridge, it opens the iPhoto application but then fails to open the image. The error message displayed is "the following file could not be imported. The file is in the iPhoto library," and then the path to the file is also displayed.
    Well, of course the file is in the iPhoto library because that's what my Mac defaults to import all photos with (or did in the past, and I might change that).
    So, if you have beared with me this far, my question is -- does anybody know how to make Adobe Bridge 3 open images in iPhoto properly? Obviously, I'm missing something, and would appreciate your help. Thanks.
    MacBook, iMacG5 & iBookG4   Mac OS X (10.4.9)   iLife6, Canon iP6600D, Sony DSC-H2

    You can use Bridge to view the Originals folder of your iPhoto library but you can't do any editing, moving, renaming, etc. as that's the same as Tampering with files in the iPhoto Library folder from the Finder. A big NO-NO. But you can view them and their metadata.
    Bridge is primarily a browser with metadata capabilities associated with an editor. And, as PhillyPhan pointed out, is exclusive from iPhoto.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    MBP 2.16Ghz; G5 Dual Core 2GHz, 2G RAM ea, 250G HD; G4 Dual 1Ghz, 1.5G RAM;   Mac OS X (10.4.9)   22" LCD, 710G FW HDs, Canon: SD700IS/i850/LIDE 50, Epson R200, 30G iPod, 2G Nano

  • Adobe Photoshop CS3 Image Processor not converting files to sRGB Profile

    I have been experiencing a problem with Photoshop CS3 Image Processor no longer converting profiles to sRGB.   It converts all of the files from Camera Raw to JPEG, but not sRGB as well.  I used to be able to batch convert an entire folder of RAW images to JPEG, sRGB through the Image Processor.
    My Photoshop CS3 Working Space is Adobe RGB (1998).  I need to convert an entire folder of images selected in Bridge to sRGB working space in order to publish a photo album from one of the on-line publishing companies.  I can open each individual Camera Raw file in Photoshop and convert each to JPEG, sRGB, but this takes a tremendous amount of time.
    The following procedure has worked for me in the past, but for some reason no longer works:
    I select the images in the desired Bridge CS3 folder.  Upper tool bar, "Tools" > "Photoshop" > "Image Processor".  In Image Processor:
    Section 1 - ""Process files from Bridge only (11)"  Whether or not I place a checkmark by "Open first image to apply settings", it makes no difference in the outcome.
    Section 2:  "Save in same location"
    Section 3 - "Checkmark by "Save as JPEG, quality 12".  Also a checkmark by "Convert Profile to sRGB"
    Section 4 - Checkmark by "Include ICC Profile"
    I replaced my iMac one month ago and reinstalled Photoshop CS3, but this Image Processor problem had been occurring even with my old computer.
    Not sure if you need this information:
    I'm currently on Mac OS X Version 10.6.4
    Processor:  2.93 Ghz Intel Core i7
    Memory:  8 GB 1333 Mhz DDR3
    I don't know if it's related,  Photoshop CS3 on my old computer was running in Rosetta.  I don't know if it's running in Rosetta now, the name does not appear when Photoshop boots up.  How do I get it to run in Rosetta again?

    Heh heh heh.  It's always true that we find the answer just after making public our problems, which in turn we did after trying to find the problems ourselves for hours.
    Thanks for following up with the answer.
    -Noel

  • Adobe Bridge CS3 not opening Photoshop Image Processor

    I selected one, four, and multiple pictures in Bridge to reduce the file size of jpgs. I went to Tools > Photoshop > Image Processor. Nothing happened. Photoshop did not open. That got me to thinking that sometimes while I am in Photoshop Bridge won't open either. Any ideas on resolving issue of "Bridge not opening Photoshop Image Processor" would be greatly appreciated.

    Hello Curt Y, Everything is checked in the "Startup Scripts," including Bridge (twice) and Photoshop (twice). Not sure why duplicate entries but there are.
    If you mean that you have two of the same versions (both CS3) in there that indicates there is something wrong with your install
    If you have any suggestions regarding being able to access the Image Processor to resize pictures and such without first opening Photoshop, I'd greatly appreciate it. If not, the work around will have to suffice.
    My first goal would be to reset the preferences for both PS and Bridge and then try again
    see also this KB document, section preferences reset:
    http://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html
    And inhere also info on how to retrieve your path for cache to manual delete it.

  • What is it about this markup that breaks DW CS3 Design View Editing?

    Folks:
    I'm attaching very simple --and apparently completely valid-- markup that generates the text shown between the markers below:
    ------------start----------------
    yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda badda.
    ------------end----------------
    As you can see by examining the file, it contains only an span enclosing text and spaces, and some following breaks.  This file passes DW validation: no errors or warnings.
    If I open this file in DW CS3 Design View, select and delete the last word, "badda", the entire text --every "yadda"--  is also deleted.  All that text is really gone -- if I immediately save the file and re-open it, there is no text content at all, just the span pair,  spaces, and the trailing breaks.  This is completely repeatable.
    When you edit this file, do you get the same result?
    The attached file is a cut-down, simplified version of a production file that exhibits this issue. (That file also passes validation.)   When I delete single  words,  entire content paragraphs disappear.   So this is not just a point of curiosity.  I need to figure out how to fix the production code and avoid this problem in the future.
    What is it about the attached markup that causes this issue?  I've fooled around with this code quite a bit and the best I can figure out is that DW is confused when both the start- and end- span tags are followed immediately by a line break.  Inserting a space in either place makes the issue go away.   But the production code doesn't have any occurances of this pattern. And, anyway, line-breaks have no significance to html, just for source-code formatting, right?
    Am I missing something incredibly obvious?
    TIA
    hen3ry

    Nancy O:
    Thank you for your response, which gave me  valuable clues to understanding the issues.   (Specifically, it led me to re-read and understand better the nitty-gritty of the HTML4 specs,  section 7, "The global structure of an HTML Document", especially 7.5.1 The BODY element.)
    I believe you are saying --in sum--  that to be reliably edited in DW, each source file must comprise a syntactically correct and complete HTML Document. 
    I am attaching a second file, "badcode2.html", modified substantially as you suggest.  It passes the DW validator, the validator.w3.org test, and the www.totalvalidator.com test.    No errors or warnings. 
    I do this:   Launch DW, open this file, choose Design View if necessary, select the final word of text, "badda", and activate Edit-->Cut (or Delete).   As before, all the other text is deleted as well. This is repeatable. 
    It seems to me this sample code satisfies your general principle.  Could I be misapplying the three validation tests?  Or that passing these tests does not assure the document  is syntactically correct and complete?   Can you recommend other tests? 
    I'd like to add the following two points as a matter of background and a bit of niggling: 
    --I'm aware  that complete HTML pages must contain <html> , <head>,  and <body> tags, although the HTML4 specification seems to say <body> tags are optional.   All my production pages, as served, contain these tags.   My underlying design is a php template with individual content files incorporated by inclusion.   There may be only one set of <html> , <head>,  and <body> in  a  page. The  "outer" template code provides these tags, and individual content files cannot contain a nested set -- so they must be "bare" markup.   Is DW able to support this design, in which "bare markup" files are seemingly unavoidable?    Is there a mechanism analogous to DW Design-Time Style Sheets to provide virtual existence of these tags so "bare markup" files can be successfully edited?  I've looked for such a mechanism but not found one.    Or some completely different method?   
    --You specify the inclusion of <p> or <h1> tags within the  body.    Is there some special significance of <p> or <h1>  with respect to stable editing in DW?  My reading of the HTML4 spec indicates that a single block element is the minimal requirement for body content. Either of these tags qualify, right?   But so does <div>, and that's what I use in my current example.    Am I misunderstanding something? 
    Bottom line,  I'm looking for a pragmatic solution for my problem:   Once in a while, among hundreds of  structurally similar "bare markup" pages I edit in DW without any problem,  I lose data.   If inserting an additional tag into all my content include files eliminates these occasional problems, I'm  willing to do that, as long as:  (1) There is an arguable technical basis for the addition,  (2) the added tag does not  produce anything visible on the served page, and (3) the validators don't flag the extra tag.     
    Suggestions, please! 
    Thanks, 
    hen3ry

Maybe you are looking for

  • Since the apple ipad update I cannot send email from my ipad

    I cannot send out emails from my Ipad or my Iphone message says,  cannot send mail a copy has been placed in your outbox.  the recipient "    "  was rejected by the server,  I get this message on both ipad and iphone help

  • Problem with Java after System Upgrade to 10.5.7

    Hi, I am facing problem with Java after having run Software upgrades. Here is the whole story. I recently moved to iMac 10.5.6 from PowerPc 10.4. On this new machine I was having problem running a 3rd party application, which requires JVM. As this ap

  • Can't send a html file for review

    I am a beginner with Dreamweaver. I have created an index home page and wanted other people to review and critique the page, but when i e-mail the index.html file it opens incompletely and without content in their browsers. Seems it will only open co

  • My links don't work when I combine another file with the pdf

    My internal bookmarked links don't work when I combine another file with the pdf. The external links continue to work fine, though. This doesn't make any sense to me at all ... but I'm hoping one of you kind folk can help?

  • How do I backup my iTunes to an external hard drive?

    This was advice given by Chris (#4735) "You can use any backup program and back up the entire iTunes folder. Start -> All programs -> Accessories -> System tools -> Backup to create a backup. Then Start -> All programs -> Accessories -> System tools