TextCompo.js     script problem-question

I am trying to use this script to join broken text. ie... individual letters in each text frame joined to make one word. The script works and puts all of the text in a single text box but there is a linefeed/ cr character between each character making it appear as verticle text
L
i
k
e
t
h
i
s
I want it to be
Like this
I tried changing the following code
if ( obj.typename == "TextFrame" ){
tx += obj.contents + CRcode;
to
if ( obj.typename == "TextFrame" ){
tx += obj.contents;
but that makes the script crash

Error 2: y is undefined.
line 31
=> newTx.top =y;
Here is the script
// TextCompo.js
// http://www.pictrix.jp/ Umezawa
// 05.2.27 11:44 PM
if ( documents.length > 0 && activeDocument.textFrames.length > 0)
var SelObj = activeDocument.selection;
var CRcode = String.fromCharCode(13 );
st = 0;
tx = "";
for ( j = SelObj.length - 1; j >= 0 ; j--){
obj = SelObj[ j ];
if ( obj.typename == "TextFrame" ){
tx += obj.contents + CRcode;
// tx += obj.contents; <=here is what I added
if ( st == 0 ){
st = 1;
x = obj.left - 100;
y = obj.top;
tx = tx.slice( 0, tx.length - 1 );
var newTx = activeDocument.activeLayer.textFrames.add();
newTx.contents = tx;
newTx.top= y;
newTx.left= x;
i = 0;
for ( k = SelObj.length - 1; k >= 0 ; k-- ){
if ( SelObj[ k ].typename == "TextFrame" ){
selTrng = SelObj[ k ].textRange;
selChat = selTrng.characterAttributes;
newPara = newTx.paragraphs[ i ];
newChat = newPara.characterAttributes;
newChat.size = selChat.size;
if ( ( newChat.autoLeading = selChat.autoLeading ) == false )
newChat.leading = selChat.leading;
newPara.textFont = selTrng.textFont;
newPara.paragraphAttributes.justification = selTrng.paragraphAttributes.justification;
i++;

Similar Messages

  • Firefox 31.0 - slowness and script problems for using websites

    Since Firefox 31.0 is released, some technical problems of slowness and script problems to use
    websites have been noticed from mine. Sometimes it needs up to some minutes to load a website
    and sometimes there are error messages for an unanswered script.
    pemigabo123

    Hello FredMcD,
    thank you for your message.
    But your answer to my question at support.mozilla.org is not helpful,
    although it is a professional technical answer from a Top 10 Contributor
    from mozilla.
    It seems that there is a permanent unfixed problem always if a new
    version of mozilla is released. After all fixed problems of the earlier
    version of firefox, there is no problem at all.
    But if I am already working with the non-problem earlier version of
    firefox, then suddenly the problems of error messages, slowness and
    script errors are appearing, and if I have looked for the actual version
    of firefox, there was signed a new version and now I have known,
    aha a new vesion of firefox was released and it needs up some time
    for every new version until the error problems were fixed.
    Maybe it is combined with the plugins like flashplayer or shockwave.
    But a professional version of firefox should not sign up error messages,
    because of plugins, while working with these plugins.
    Another answer from another support.mozilla.member was for an
    overload problem, because of opening some windows of firefox.
    But to open many windows of firefox was already no problem with the
    earlier version firefox 30.0 or earlier, until the error messages are fixed.
    The same unfixed problems are since firefox 25.0 up to 30.0, but I was
    wondering for how long version 30.0 was actual in practical working.
    And since version of firefox 31.0 was released the same problems
    of error messages, slowness and script errors were appearing.
    At the moment it seems firefox 31.0 works alright.
    But only the following time shows if it works without error messages,
    slowness and sript problems or not.
    In hope to give a helpful answer to yours
    kind regards
    pemigabo123

  • Few problems/questions! (cover flow, album art...etc)

    Ok I finally added my songs to my new IPOD (replaced my old one) and this is my first Ipod with video, color...etc. Its the IPOD Classic 80 GIG.
    Well I am having a few problems/questions:
    ---Why when I hit "Get album art" does it ONLY get art for my videos? It doesn't get any for all 1,500+ songs! Is it because they aren't downloaded from Itunes? If so then why does it do it for the movies then? They aren't from ITunes either!
    ---With Cover Flow I updated the Album Art myself and have about 700 songs with art now. But I have two problems.
    1. It won't display all 700 songs under Cover Flow!
    2. It won't show them in order by song name! Can I change that?!? If not then how is it showing them by? What do I need to change?
    ---Are there any other video types supported besides that on Mpeg4 and that other weird type? If not why not? Its a pain to have to convert everything. Its almost not worth having this video IPOD if you have to go through sop much effort just to watch 1 stupid video. I mean I spent more money on extra programs now for music and videos then I did on the IPOD almost.
    ---Is there any way to transfer your music from one IPOD to another? I know some people say you can't but why? What about people like me who have music ripped from our own cds and NOTHING from ITunes? Its a REAL pain having to rerip all the cds, put them back on, rename all the songs, fix all the info...etc. Its taken me 4 days now. Apple needs to think about a "IPOD TO IPOD" music transfer kinda program.
    ---How do you get pics on the IPOD without having to keep them on your PC? I notice it has to SYNC them every time I have it plugged into the PC! But if I tell it NOT to sync pics anymore then they won't stay on the IPOD if turn that option off and unplug the IPOD. Theres got to be another way to add them.

    Assassin X wrote:
    ---With Cover Flow I updated the Album Art myself and have about 700 songs with art now. But I have two problems.
    1. It won't display all 700 songs under Cover Flow!
    2. It won't show them in order by song name! Can I change that?!? If not then how is it showing them by? What do I need to change?
    Cover flow on the ipod can only be done (as far as I know) on Album by Artist Name. On iTunes you can change it around
    Assassin X wrote:
    ---Are there any other video types supported besides that on Mpeg4 and that other weird type? If not why not? Its a pain to have to convert everything. Its almost not worth having this video IPOD if you have to go through sop much effort just to watch 1 stupid video. I mean I spent more money on extra programs now for music and videos then I did on the IPOD almost.
    Try using freeware, heres an excellent video converter for iPods:
    http://www.videora.com/en-us/Converter/iPod/

  • I keep getting error messages that a script "may have stoped responding", The script in question is "contentAreaUtils.js".

    I just updated to FireFox v3.6.8, after using v3.5 successfully for many months. With the new version I keep getting error messages that a script "may have stopped responding", The script in question is "contentAreaUtils.js". My OS is Win2k SP4, with 253,424 KB RAM.
    Is there a known fix. If not, is there an easy way to revert to FireFox v3.5 ?

    Attached is an image of the error message.

  • Saved File Groups Issue in Bridge Center - script problem?

    Hi all,
    I tried posting this in the Bridge forum with no replies. After browsing through this forum I'm wondering if this is a script problem?
    I have the CS2 premium, and use all packages. The problem I have is saving and retrieving files in the 'Saved File Groups' of Bridge Center. I can save Photoshop files no problem, but the idea is to be able to save other files from open applications in the group and then to recall them later. I can save Illustrator files with others in a group but only Photoshop files open, and it ignores the saved Illustrator files.
    With my InDesign files, it does not even recognise them as files to be saved. I can have a file open, click on "Save open files into a file group" and it will come up with a little box saying there are no open files to save!
    OS - XP sp2. Bridge 1.0.2
    If this can be helped with scripting, please explain clearly, I am a graphic designer and no very little indeed about scripting.
    Your help would be appreciated.
    Thanks,
    Thysje Arthur

    Hi,
    Do you mean that Windows displays “Network Shortcuts” folder when you click “Browse” icon? If so, please check if you configure the default local file location to the “Network Shortcuts” folder. You could refer to the image below to find the option of the default
    local file location.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Can send me recent real time sap script interivew question?

    Hi any one plz send me the real time sap script interivew questions... or mail me on [email protected]

    Hi,
    Please check the links,
    http://www.sap-img.com/sapscripts/faq-for-sap-scripts.htm
    FAQ on Scripts
    If this data isn't enough, then you can search for SAP script interview questions in SDN, you get more results.
    Regards,
    Hema.
    Reward points if it is useful.

  • When I try to go to icloud I get 'script problem' and cannot enter. Could someone please advise me what to try. Thanks.

    When I try to go to ilcoud I get 'script problem' and can't enter. Please advise what I should try. Thanks.

    I use e-trade and a couple of times, years back, I found them behind the Java updates.
    So, now I install new Java platforms on my backup disk and test the streaming data on that first because I know it will be over-written that evening with my nightly backup.
    Of course, since I began doing that there hasn't been a problem. Do the same with printer driver updates.
    Anyway, call ScottTrade and howl! Tell them how many Macs are out there and why aren't they in Apple Developers Program?

  • OS X Lion - JAVA SCRIPT PROBLEM

    I recently updated from Snow Leopard to OS X Lion. Now I seem to have a JAVA Script problem. Where do I start fixing this issue. I have checked updates etc etc but it seems to be updated. However, when I login to my web site backend, I have a problem. Any advice please?

    Would you please write some more details? explain the problem and what web site backend you use. Thanks.

  • IMOVIE08/IPHOTO08 TRANSFER PROBLEM QUESTION... HELP HELP HELP!!!

    IMOVIE/IPHOTO TRANSFER PROBLEM QUESTION... HELP HELP HELP!!!
    much like the email above, i am having trouble importing movies --all taken with my same nikon camera and uploaded to iphoto-- from iphoto08 to imovie08. i did a software update today and half the movies i wanted from iphoto, somehow, ended up on imovie. not the half i need to work with, by the way. just came back from christmas with the family. the first time my dad has seen my son. the first time my wife has seen my dad. lots of pictures. my dad wants copies. i got great ideas about making him a DVD... in imovie, i choose, "import movies", follow the steps, create a new event AND... no movie clips show up in my new event... BUT, when i click "mac HD" on my desktop and go the "imovie events", i see the movies is just supposedly imported to imovie as files and can watch them. doesn't help me much when trying to create a movie to send to my dad. no video is played in imovie. HELP HELP HELP!!! i went so far as to trash my 15 movies from iphoto because i thought perhaps the computer was seeing them as photos and not movies. right now my vacation movies are on my desktop. how can i get them to show up in imovie and start my project? HELP HELP HELP!!!

    I think you have set your iPod to an option which everytime you connect it to itunes, it will delete all songs on it and replace it with songs currently in your library. What you need to do is click on the ipod on the sidebar, and on the bottem of the new page click the tick box that says "Manually manage music and video". That way you can delete old songs from your computer and they will stay on your ipod everytime you connect it. Hope that helps ^_^
      Windows XP Pro  

  • 5610 problems/questions

    Okay, i have a 5610, firmware v9.4, and i have the foll problems/questions...
    1) The calender and alarm systems sometimes refuse to work. In the calender, i put reminders, but often it never gives any alarm, even though i have set it to alert me at such-and-such time. The alarm too, simply doesn't work at times. any solutions?
    2) On starting the phone, while updating the library, the phone temporarily gets hanged. After about 5 minutes, its back to normal, and the library is updated, but in those 5 mins i can't do anythinh. any solutions?
    3)On connecting my cell to the comp, i usually use memory storage mode, to access the memory card in windows explorer, cuz its faster than pc suite. afer disconnecting, my phone often says "not enough memory on phone. update cancelled", referring to the music player library update. any solutions?
    4)In menu>steeings>security>security level, what do the options do, i've not noticed any difference...

    security level is to either set passwords for start up of phone ,keypad locks,lock code for phone this enable you to put a pin on the phone where if it was to get stolen the person would need a pin the activate the phone with another sim in it
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • PLEASE report what you've already tried when posting problems/questions!

    A lot of threads have a common theme:
    (1) The first post describes a problem, or asks a question.
    (2) The second (or third, or fourth) post suggests doing or trying something.
    (3) The next response, from the original poster, says "Oh, I already tried that!"
    Please, when describing a problem or asking a question, be reasonably detailed about the scenario, what you did, what results you got, WHAT YOU'VE ALREADY TRIED, etc.
    Vague undetailed problems/questions, not describing the N steps you've already taken to try to resolve it, etc. just waste time and bandwidth all around!
    Doug

    Hi Doug;
    If we are going to start of list of things NOT to do when posting a question, the one I always think is the absolute silliest is when they say I am having trouble with an application and never ever tell up what application they are talking about as if we have a crystal ball which is going to tell us what mythical application it is. Well it turns out generally my crystal ball is foggy just then so I have to ask what are you talking about here.
    Allan

  • I keep getting adobe script problems. I have 3.6.13 version and have never had this problems with prior versions

    I can't find a solution to the adobe flashplayer that is associatied with Firefox. I keep getting script problems and am asked to either continue or ignore the problem. I've been a long-time user of Firefox and have never had any problems with Firefox or any associated programs (plug-ins) and so this is a surprise to me. I checked the version of the flashplayer and find that I have the most current version; so I'm not sure what's going on.

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • MSI 925XE BIOS 1.3 to 1.4 Upgrade problem/question

    Hi,
    Today I upgraded my board from BIOS 1.3 to 1.4 (successfully, *phew*). The BIOS page on the MSI site states that it fixes some problems, but nothing related to temperature sensors is mentioned:
    http://www.msi.com.tw/program/support/bios/bos/spt_bos_detail.php?UID=635&kind=1
    Now the actual problem/question is that with BIOS v1.3 my full load temp was roughly 65 degrees celcius (3.4GHz LGA775 CPU). Now with v1.4 my full load temperature shows up as 47-48 degrees celcius.
    This of course doesnt seem like a bad thing at first, lower temp = good, but I cant help but wonder whether the temperature was being inaccurately shown in 1.3, or whether it is being shown wrongly now with 1.4. A drop in full load temp of about 18 degrees celcius sure raises some questions.
    If anyone knows anything about this, Id appreciate any feedback. Also if there is some kind of tech support email address that MSI has (I couldnt find one on the site), could you please pass it to me, thanks.
    I didnt post my entire system specs because really all the other components are irrelevant, I didnt change the setup in any way other than the BIOS. If I needed to post some addition info, tell me what it is, and I will.
    Thank you.

    Sorry that I didnt reply for a while. Busy weekend. Anyways...
    What kind of chassis cooling? When as I said the case is open right now cause Im still experimenting with everything, so really its like no chassis at all for now. What kind of fan do I use with the XP-120? Its a quiet fan, I cant seem to find the box. If Im not mistaken, its the green version of this:
    http://www.thermaltake.com/dcfans/led/thunderblade120.htm
    And finally... Yes of course I was able to fit the XP120 on the motherboard, how else would I be running the comp hehe? BTW, I wouldnt necessarily recommend it to others though, the installation was very problematic. But still, its possible.

  • I;m no longer able to use the Penn State ANGEL system (I teach on line) for my email and intead get messages about "script" problems.

    Question
    I'm no longer able to use the Penn State ANGEL system (I teach on line) for my email and instead get messages about "script" problems

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • [JS][CS3] Script deployment question

    Hi everyone,
    I am currently writing scripts in a corporate environment (~30 users), and I'm contemplating the easiest and most efficient way of deploying the scripts. We have a couple of scripts already with the users that are located locally on their machines. As time goes on we'll be writing more and more scripts and updating the existing ones as necessary.
    My current inclination is to stop saving the files locally on the individual machines and instead put a shortcut to a shared server folder in the scripts folder instead. In my testing it seems to work fine without any significant delay, and it automatically populates all of the files in linked folder. I basically want to be able to make sure that users are always launching the most up-to-date code and that any future scripts can be easily deployed without me walking around to everyone's desk (or worse, e-mailing instructions and hoping for the best).
    Are there any downsides/performance issues to this approach? It's a strictly desktop environment, so I don't have to worry about laptop users who are not connected to the network. Is there an alternate way that would be smoother?
    Thanks!

    We've tried it both ways. On our 12 InCopy machines (OSX), we have a symbolic link from /Applications/Adobe InCopy CS5/Scripts/Scripts Panel/ to a shared folder. This works great as long as our file server doesn't go down, and all sorts of other things would break horribly. And the User scripts folder is still available for any machine-specific customizations.
    For our 4 InDesign machines, we decided that was a little too much risk. So instead we have a script, copyScripts.jsx, that just copies scripts from the file server to the Application scripts folder. So everytime there is a change, we go around to those 4 machines and run copyScripts. This works OK.
    It's a little bit of a pain but it also insulates us a bit from bugs, and it means that whoever is using InDesign can decide to not update the scripts if they are in the middle of something critical. They can choose to defer taking the script updates.
    I think if we had to do it over, we probably wouldn't bother with the copyScripts mechanism. The centralized shared folder works pretty well. But it's not so annoying that we've gotten rid of it. And for 4 machines, it's not a huge burden.
    Also, there are some questions of development. If it's convenient to do development in the ESTK, having the shared folder means you cannot just rightclick in the Scripts panel and choose Edit Script. Or if you do, then any changes you save as you are developing the script are instantly available to everyone, potentially breaking their work if there are problems, or if there is debugging output ,etc., etc. So you need to make sure you do a development in a different place. Just something to keep in mind.

Maybe you are looking for

  • How to create new layers in captivate?

    Hi, how to create new layers in captivate's timeline? Regards, krishnaraj

  • Record Center Archival Strategy/Best Practise

    I am familiar with record center but I would like some guidance on how to do some of the things. Scenario : We have 4 site collections, 2 site collections are containing team sites which are built for different departments and one site collection is

  • Frm-30457

    FRM-30457: Warning: Maximum Length ignored for character-datatype subordinate mirror item DATA.FIELD2. This has really been bugging me. If you try to have a field use synchronize it is very very picky about it. Suppose you want to have char field2 be

  • Signing in

    When I sign in, my browser shows, "cloud.acrobat.com/convertpdf" and the screen remains blank.  Any thoughts?

  • Struts Support: Parsing Portlet JSP File failed

    I've manually edited a my .portlet file to contain a strutsContent element (copied from the struts.porlet in the JSR 168 and Struts Support sample). When I run my portal I get an error message: java.lang.RuntimeException: Didn't find TagInfo for tag: