Possible scripting bug

I have a script that searches and replaces the characters <br> with \r\n
It works fine in cs3 - cs5.5
In cs6 the script inserts 2 new lines (one for the\r an one for the \n)  This seems like a bug as \r\n should result in a single new line (unless I'm missing somethimg)
Mike Cardeiro
Editor/Animator/Compositor                 
D4 Creative Group - Philadelphia, PA    
215-483-4555                
Resume | samples                       
http://www.michaelcardeiro.com/resume/

It sounds like you need to convert the linefeed to Windows-style.  Insert this before you start writing lines:
txtFile.lineFeed = "Windows"; //convert to Windows linefeed
Or you can determine what kind of linefeed is in the document and then use that as a basis for conversion:
if (txtFile.lineFeed === "windows") {
    newLine = "\r\n";
} else {
    newLine = "\n";

Similar Messages

  • Script bugs for Oracle8i Sun system

    No Sun Platform forum so posting here,
    let me know if there is a better place.
    I have found script bugs that I fixed
    for the Oracle8i sun enterprise server.
    1) dbora - used for startup and shutdown
    of database, calls dbstart and dbshut.
    2) dbstart - script contains errors:
    "/PL\/SQL" does not exist in the svrmgrl version output information,
    they would be better off storing the version info in a file somewhere during install, like /var/opt/oracle like they do other files.
    Must have changed the output of that program for 8.1.
    My fix above checks for the 'Oracle8i Enterprise Edition Release' output.
    Let me know if someone would like to get
    a copy of my take-off scripts.
    null

    Yes I would like a copy .... thank you!

  • CS6 scripting bug / Problème scripts d'action CS6

    Bonjour, suite à mon passage de la CS4 à la CS6, mes scripts d'action ne marchent plus.
    Ce script par exemple :
    Hi folks, going from CS4 to CS6 made my action scripts bug, especially those using pathfinder :
    divide / ungroup / default /  trim / ungroup / copy / paste in front
    Ces actions effectuées une à une donnent un résultat normal mais conduisent donnent une série de messages d'erreur une fois enregistrées dans un script :
    These actions do work normally when i perform them separetly but fail as soon as i record it in a script. Does anyone has an idea?
    C'est la même chose avec ou sans fond, avec ou sans contour. Ce même script fonctionne très bien sur CS4. Les raccourcis clavier sont les mêmes.
    HELLLLPPPPP!!!!!

    Bonjour, n'ayant jamais été confronté au problème, je suis allé regarder si la question avait été traitée en anglais.
    Mylenium a proposé une explication sur l'accès à certains ports du système.
    En fait pour lire une vidéo, Photoshop a besoin de créer un accès à ce fichier, en interne, si ces ports sont inaccessibles (bloqués par une appli tierce, antivirus, firewall (ou pare-feu) ou occupés par d'autres applications), cela peut échouer.

  • Scripting bugs and anomalies in Acrobat Pro XI

    I've downloaded the trial version of Acrobat Pro XI and starting testing it out with various scripts and actions. The results are far from good, I'm afraid.
    Here are some of my findings, so far:
    1. The Action Wizard is very cumbersome and un-intuitive. It took me several minutes to figure out how to change the default setting to a specific folder, and I still can't find where to select the input file types to be processed. Also, what's the relation between the "Default option" and the Add File and Add Folder buttons? Very strange UI decisions there. I don't care about panels and dividers, but I do want the actual commands to make sense*.
    2. Another very bad decision is moving the Save command to a different section. What's the point of making it just another "tool" in the list? If you want to use it, you'll want to use it at the end of the process, not somewhere in the middle... And as it stands now, if you don't add it explictly, the changes are not saved at all.
    3. After running an Action, some of the files remain open in the window. I was looking for a Close File command, but couldn't find any such thing. Is this a bug?
    4. I'm running a script that processes some files. After finishing, the files are automatically saved and overwritten, even though I haven't added that command yet to my script. Very serious bug!
    5. After running some scripts and actions, working with hidden files, I've tried to access app.activeDocs. The result was an infinite loop of this error message:
    After a while I had to close down Acrobat from the Task Manager.
    I must say I'm very disappointed with this release, so far, and would not recommend anyone to upgrade to it.
    * Speaking of commands that don't make sense, what's the point of the Document JavaScripts command in the Action Wizard? All it does is open that window... This doesn't make sense at all in an automated action. It should have given you the option to automatically embed a piece of code in a file, not let you do it manually.

    Hi there,
    Your feedback is interesting as this is the very first time we receive some negative feedback about Actions in Acrobat XI.
    First of all what do you mean by "what's the relation between the "Default option" and the Add File and Add Folder buttons" ?
    If don't have the time to go through the help nor documentation here a brief answer:
    - Default option allows the author of an action to specify the behavior and settings for the command. In the case of Add File and Add Folder it will drive user running the action about the type of location the file(s) should be retrieved from: a scanner, cloud repository, a specific folder, etc. This is a bit of improvement over Acrobat X, but not a significant change in the behavior.
    I hope this is what you were questionning about.
    "Another very bad decision is moving the Save command to a different section"
    While this may not be convenient for you, I don't think it's enough to state that it's been a very bad decision since most users like it. It's also more flexible and more powerful. It makes it possible for instance, to save a document with a different naming convention at different points of the action which is an important improvement for some users. I am sure that after you've played with it a little bit more you will agree with that.
    "After running an Action, some of the files remain open in the window"
    Files that have been loaded by the Action playback should be closed, unless that have something special. Otherwise it could be a bug.
    " I'm running a script that processes some files. After finishing, the files are automatically saved and overwritten"
    It can only be because the JavaScript contains instructions to save the files, or the Action does. Otherwise it would be a bug and I'd be curious to know more about it as Acrobat is VERY robust about this.
    Please provide the files in question I'll be happy to spend time debugging the case.
    "After running some scripts and actions, working with hidden files, I've tried to access app.activeDocs. The result was an infinite loop of this error message:"
    This is out of my scope and will ask around me how it's supposed to work. Hopefully we'll get an answer from the script folks quickly.
    Please share files and way to reproduce the issues you meet, considering that you are the first person to provide such negative feedback there might be some misunderstanding somewhere.
    Best,
    Luc Leroy

  • Grep scripting bug?

    The following grep search works fine from within Indesign (finds all prices that don't have the "€" symbol at the end):  ((\d+)?(\.?))+(\d{1,3}),(-)?(\d+)?(?!(.*)?(€))  If I try to translate the same search expression into a script, it doesn't work anymore:  ((\\d+)?(\\.?))+(\\d{1,3}),(-)?(\\d+)?(?!(.*)?(€))  How could this be possible? Am I doing something wrong or is it a bug of the software?  Any suggestions would be much appreciated  Thanks in advance

    CS 5.5 win7
    works here!? perhaps a mistake in scriptimplementation?
    app.findGrepPreferences=app.changeGrepPreferences=null;
    app.findGrepPreferences.findWhat="((\\d+)?(\\.?))+(\\d{1,3}),(-)?(\\d+)?(?!(.*)?(€))";
    toFind = app.activeDocument.findGrep();
    alert(toFind.length)

  • I am having a scripting bug.

    I picked this project up from a friend, trying to solve a bug he is having but I can't figure it out.
    The project is built around scripting which as it turns out, I don't know that well. Whenever you select the slideshow and then hit the menu button, it brings you back to the menu. Then, if you hit the menu button again, it brings you back to the last still you were viewing. If this project was built without scripting I could figure it out but I'm lost.
    Here is the log from the actions of my problem. The italicized text is the actions from viewing the slideshow and the bolded text is what happens after I hit the menu button and encounter the bug.
    User activated: Special Features button
    Executing Pre-Script: Special Features pre-script
    1 mov GPRM 7, 2
    GPRM 7 register changed: 2
    Default button selected: Button 2
    SPRM 8 (Highlight Button) register changed: 1024
    Jumping to Menu: Special Features 2 - Button 2
    SPRM 8 (Highlight Button) register changed: 3072
    SPRM 8 (Highlight Button) register changed: 2048
    +User activated: Button 3+
    +Jumping to (null): (null) - KFJProduction_StillFrame.jpg+
    +SPRM 6 (Title PGC) register changed: 1+
    +SPRM 4 (Title Number) register changed: 5+
    +SPRM 5 (VTS Title) register changed: 1+
    +SPRM 7 (Part of Title) register changed: 1+
    +SPRM 3 (Angle Number) register changed: 1+
    +User action: Next chapter+
    +Jumping to (null): (null) - Joe_PrivateEye.JPG+
    +SPRM 6 (Title PGC) register changed: 1+
    +SPRM 4 (Title Number) register changed: 5+
    +SPRM 5 (VTS Title) register changed: 1+
    +SPRM 7 (Part of Title) register changed: 2+
    +SPRM 3 (Angle Number) register changed: 1+
    +User action: Next chapter+
    +Jumping to (null): (null) - FataleandPlantman.JPG+
    +SPRM 6 (Title PGC) register changed: 1+
    +SPRM 4 (Title Number) register changed: 5+
    +SPRM 5 (VTS Title) register changed: 1+
    +SPRM 7 (Part of Title) register changed: 3+
    +SPRM 3 (Angle Number) register changed: 1+
    *User action: Menu*
    *Jumping to Script: Main Menu loop point*
    *Executing Script: Main Menu loop point*
    *1 Jump Main Menu 1::Scene Selction Button(Loop) if (GPRM 7 = 1)*
    *2 Jump Special Features 2(Loop) if (GPRM 7 = 2)*
    *Executing Pre-Script: Special Features pre-script*
    *1 mov GPRM 7, 2*
    *GPRM 7 register changed: 2*
    *Default button selected: Button 2*
    *SPRM 8 (Highlight Button) register changed: 1024*
    *Jumping to Menu: Special Features 2 - Button 2*
    *User action: Menu*
    *SPRM 6 (Title PGC) register changed: 1*
    *SPRM 4 (Title Number) register changed: 5*
    *SPRM 5 (VTS Title) register changed: 1*
    *SPRM 7 (Part of Title) register changed: 4*
    Can anyone help me?

    It isn't a bug... it is working exactly as it should do. This is a well known feature of DVDs, in that the menu button also acts as a resume button if there is resume info stored by the DVD player. To get that info stored, you only have to view a track. Since a slideshow is a special case of a track, there is resume info stored when you view it.
    This is nothing to do with your scripting, or anything except the DVD specifications. All discs will work this way.
    Where did you expect the second menu press to take you? To a different menu? In order to do that you have to have a button on your first menu that takes you to the other.

  • Thinkpad S540 possible BIOS bug concerning WOL

    I have had a Thinkpad S540 for a few months, and have it installed as dual boot Windows 8.1 and arch linux.  After completely shutting the machine down from linux I found that the battery would be down to around 70% charge after three days unused, and decided to investigate this problem since it was not reasonable for a new battery to lose charge at anything like this rate.
    By chance I came across a piece of information concerning the issue of disabling WOL (Wake on LAN) on the network interface, since I had seen one report that by default WOL is enabled and this requires power to be going to the network interface even when shut down in order to be able to respond to magic packets to start the machine up when it is shut down.
    First I checked the BIOS WOL setting and found it was set to "AC only" by default. So I changed it to disabled. This machine has the latest available BIOS version 1.54.
    However on investigating this after rebooting in linux I found that 
    # cat /sys/class/net/enp3s0/device/power/wakeup
    enabled
    # ethtool enp3s0 | grep Wake-on
    Supports Wake-on: pumbg
    Wake-on: g
    So WOL was still enabled despite it being set to disabled in the BIOS!
    I learned that I can make sure that in arch linux the WOL setting can be changed to set to disabled after bootup by using a udev rule:
    # cat 70-disable_wol.rules
    ACTION=="add", SUBSYSTEM=="net", KERNEL=="enp3s0", RUN+="/usr/bin/ethtool -s enp3s0 wol d"
    Then rebooting the machine I checked the WOL setting and it really is disabled now:
    # ethtool enp3s0 | grep Wake-on
    Supports Wake-on: pumbg
    Wake-on: d
    # cat /sys/class/net/enp3s0/device/power/wakeup
    disabled
    So I then ensured that the battery was 100% charged and shut down the machine and left it two and a half days - rebooting this morning the battery was still at 100% charge and no longer discharges unnecessarily when the machine is switched off,  so this is a clear indication of a bug in the BIOS for the WOL setting - it is still enabled despite the BIOS saying it is disabled!
    How do I report this to Lenovo so that they can fix the BIOS and release a new one that is working?
    I am aware of other users with different Thinkpads who seem to have the same problem, so this may be more widespread an issue than just on the S540.  
    It is also not just an issue with the battery running down when fully shut down but will likely also be a problem for a machine in suspend mode since the network interface may be consuming a watt or so of power when in suspend, which will again run the battery down at an unacceptable rate.
    I cannot imagine any use case where it would be necessary to have WOL enabled on a laptop that is mostly going to be used mobile - so having the default setting to AC only enabled, and having a BIOS bug enabling it when it is explicitely disabled is a serious problem.

    Anyone running windows in the same laptop can check the same issue of battery drain due to WOl being enabled by default - in the Device Manager under the network card, opening the settings menu for the ethernet wired card the default for Wake-on-LAN on my computer was set to enabled. This can be changed to disabled, and you may need to also disable the setting for Wake on Magic Packet. Also in the Power Management tab it is possible to uncheck the settings for "Allow this device to wake the computer" and "Only allow a magic packet to wake the computer"
    In my laptop these were all set to enabled by default.

  • Possible code bug causing crash on Wine/Linux

    As I am running Linux, I don't expect support as such but thought I would offer a possible contribution to the beta program as follows:
    When starting Safari under Wine (an implementation of the Win32 API) on Linux, I get the following debug message:
    DIB_GetBitmapInfo (44): unknown/wrong size for header
    What I understand this to mean is that the Windows function GetBitmapInfo is being passed a dodgy parameter.
    This is followed by a crash for me, but I guess on Windows, is quietly ignored.
    I have seen a report on CodeProject regarding an identical crash caused by a coder setting the biSize member of the bmiHeader (BITMAPHEADERINFO) element of a BITMAPINFO structure to the incorrect size. In the example given, it had been set to sizeof(BITMAPINFO) rather than sizeof(BITMAPINFOHEADER)
    e.g.
    bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFO);
    instead of
    bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFOHEADER);
    For any devs. interested as to whether there may be a bug, the call stack generated by Wine, showing the offsets from the base address of coregraphics.dll (loaded at 0x6b000000) is as follows, with the crash actaully occurring at '=> 1'
    Backtrace:
    =>1 0x6b262e97 in coregraphics (+0x262e97) (0x0033ed38)
    2 0x6b0f9da4 in coregraphics (+0xf9da4) (0x0033f31c)
    3 0x6b1e0fff in coregraphics (+0x1e0fff) (0x0033f4bc)
    4 0x6b1d19ee in coregraphics (+0x1d19ee) (0x0033f578)
    As I say, I'm not expecting any feedback on this - I'm just being neighbourly I also fully accept that I may be completely wrong in my assessment of the issue.
    Dell Inspiron   Other OS  

    There was an even earlier build than the two mentioned.
    Talk about "early revisions" I guess so, and it doesn't look like there will be a unified version tomorrow.
    I recall AYM had a note about video performance and in that instance, the build on the DVD was never than what was on the hard drive and within a week or so disk drives carried the "new, improved" video on disk as well.
    There may be other changes that go hand-in-hand other than build, too. Did they look at the Boot ROM and SMC Version of the systems?
    Boot ROM Version: MP11.005C.B00
    SMC Version: 1.7f6

  • Possible Tab Bug?

    The current bug: Adding an additional tab below another will cause the tab to looked messed up. The work around suggested was to create a page (with new tabs), publish it as a portlet underneath a main tab. Then you will visually see tabs underneath tabs.
    The new problem you get with this work around is your content underneath the sub-tab will not show up the first load. You have to click on another tab, then back to the previous tab to show the content.
    Another weird thing I ran across having to do with regions and published folders. I found that you cannot set a corrent percentage within regions when folders are added to regions.
    For instance; Under a tab, divid a region into two regions. The first region make 5% and the second 95%; now when you add your (folder) portlets underneath both regions you will see when viewing it, that it will show up 50% and 50%. If you take out the folder portlet on region 1, and add a application portlet; everything shows up fine.
    I have come across varies things like this, but I will start posting the errors and possible work arounds.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>The new problem you get with this work around is your content underneath the sub-tab will not show up the first load. You have to click on another tab, then back to the previous tab to show the content.<HR></BLOCKQUOTE>
    I noticed this also. (in 3.0.6.7.2 on NT).
    What's funny about this is that this is exactly the same as a bug with sub-tabs in the EA release. Maybe the data structure of a sub-tab and a page in a tab is very similar...
    null

  • Foreach syntax + generics, Possible compiler bug?

    I'm encountering an odd problem trying to use generics and the foreach (colon) syntax. The code in question:
    for (Iterator<String> it = col.getParameterNames().iterator(); it.hasNext();) {}
    for (String paramName : col.getParameterNames()) {}col is an instance of an inner class of the class whose method this code snippet is from, getParameterNames has the signature:
    public Set<String> getParameterNames();
    The first line, using the Iterator<String> explicitly, compiles fine. The second line, when present, raises the compiler error:
    found : java.lang.Object
    required: java.lang.String
    for (String paramName : col.getParameterNames()) {
    I cannot seem to reliably reproduce this situation in other (simpler) classes I write, but this one in particular seems to trigger it. Is it possible this is a compiler bug, or might there be something I'm doing incorrectly that I'm missing? Are my expectations about how the second line should work incorrect? It seems to in other circumstances...
    javac is 1.6.0_01. Any ideas?

    Here is a quick update, I'm more inclined to think of this as bad behavior now.
    This code compiles:
    public class Test {
    Vector<InnerTest> inners = new Vector<InnerTest>();
        public class InnerTest {        
           public Set<String> someSet() { return (new HashMap<String,String>()).keySet(); }
        public Test() {
            for (InnerTest it : inners) {
                for (String s : it.someSet()) {        
    }however, the following does not:
    public class Test {
    Vector<InnerTest> inners = new Vector<InnerTest>();
        public class InnerTest<P> {        
           public Set<String> someSet() { return (new HashMap<String,String>()).keySet(); }
        public Test() {
            for (InnerTest it : inners) {
                for (String s : it.someSet()) {        
    }Again, the problem might be with my expectations (I haven't gone through the specifications yet with this in mind), but I can't fathom how or why the unused parameter would make a difference in that method's tpye matching.

  • Scripting  bug in the background?

    Hi
    A few weeks ago I read a post by Alan_AEDScripts about Killing windows (palettes) and  that
    seems to be true. I´ve  been testing some scripts and  I found that Functions are also keept in memory even after the function ends
    This is a simple window (dialog) tester  with 10 buttons.
    function dummyWin(){
        var win = new Window("dialog","Dummy Window",undefined);
        for(var i = 0 ; i < 10;i++ ){
            win.add("button",undefined,"Tester");
            win.children[i].onClick = function(){win.close();}
        win.show();
    dummyWin()
    Before I run it After Effects memory allocated is
    and  after I run tester script 20 times After effects memory increases in almost 3 megs.This is more visible with windows that has more features and have to be open and close a lot of times.
    It seems to be that the same thig happens with ScriptUI Panels
    I have a more complex script that when a I run it it increases  almost 2 megs to the memory allocated by AE  every time I run it .I tried  a lot things but unfortunately memory keeps increasisng  
    Maybe I am the only one who is experiencing this issue.if not this is serius bug that
    should be solved right away.
    All tests were done in AE CC. Please give it try
    Sorry for my English

    Hi
    A few weeks ago I read a post by Alan_AEDScripts about Killing windows (palettes) and  that
    seems to be true. I´ve  been testing some scripts and  I found that Functions are also keept in memory even after the function ends
    This is a simple window (dialog) tester  with 10 buttons.
    function dummyWin(){
        var win = new Window("dialog","Dummy Window",undefined);
        for(var i = 0 ; i < 10;i++ ){
            win.add("button",undefined,"Tester");
            win.children[i].onClick = function(){win.close();}
        win.show();
    dummyWin()
    Before I run it After Effects memory allocated is
    and  after I run tester script 20 times After effects memory increases in almost 3 megs.This is more visible with windows that has more features and have to be open and close a lot of times.
    It seems to be that the same thig happens with ScriptUI Panels
    I have a more complex script that when a I run it it increases  almost 2 megs to the memory allocated by AE  every time I run it .I tried  a lot things but unfortunately memory keeps increasisng  
    Maybe I am the only one who is experiencing this issue.if not this is serius bug that
    should be solved right away.
    All tests were done in AE CC. Please give it try
    Sorry for my English

  • Possible Keyword Bug

    Okay,
    I think I have found a possible bug with keywords, or maybe just an incositancy. It's kind of a messy situation so I'm hoping someone can help me out or maybe point me in the right direction to send this feedback to Apple.
    I had a bunch of jpeg files from my older cameras that had already been tagged with keywords (in the IPTC keyword field I believe). Once I imported all of these into Aperture I stripped the keywords from all the images. That worked fine.
    Before I get into the actual issue let me give a little bit of information on my Aperture library layout: I have folders created by year, then 1 project per month. So I have something like this:
    2002
    01 Janurary
    02 Feburary
    2003
    01 Janurary
    What's weird is if I create a new smart album at the folder level, the keywords listed in the search box are appropriate (only those actually added to images). However if I click on Library and create a new smart album (so that it searches the whole library) it lists all of my current keywords, plus all of those that I had removed (from the original files).
    Anyone else run across this? Anyone know how to fix it? It's just a minor inconvience, but it does make it a bit of a pain to have a whole ton of keywords to select from in the search box (most of them no longer having any images associated with them).
    Also I have searched for images that match the old keywords and it doesn't find any.
    Thanks,
    Mark

    She suggests..
    "Go to Window > Show Keywords HUD, and see if they are there. If so, you should be able to delete them from there."
    Hopefully, they will then disappear from the Library list.
    if not, it does seem like a bug.
    Message was edited by: notorious

  • How It Was Fixed (Possible Software Bug Not Hardware): Getting the iMac Screen/Menus Garbled and/or Yellow Circle Before Getting Into Finder Issues?

    Hi. Possible fix done to my late- 2009 iMac's screen/graphics issue that may work God willing, hopefully for most [In my case it sometimes had that yellow circle that appears before it goes to the Finder but mostly it was a messed up desktop and menus (unreadable mostly) after months, prayers and weeks of fixing it; recommended to be read entirely first coz' it's a bit complicated (like a lot of subplots). If uncomfortable to try coz' it involved a GPU stress test, contact your authorized Apple service center for their advice]. I had an iMac (late 2009) screen garbling a few hours ago (was weeks ago when it resurfaced until it got worse that it's at every boot on Mavericks):
    †        I booted to Snow Leopard USB external (my back-up OS) drive then run the first    person shooter at redeclipse.net. I set everything to max, including the display, resolution and graphics setting with fullscreen and v-sync on. I then refreshed it which brought it back to normal (I then tested it's stability with GPUTest 0.7 with Furmark for 15 minutes). * if the display options have been set to max before, bring it back to the default then refresh and then max it again Possibly any games that's has the graphic settings (or more advanced) of Red Eclipse could work (other free ones are Xonotic and Open Arena which are based on Quake 1 or 3s engine I believe).
    Optional but not recommended (have warrantied if that's still available or have it repaired at authorized service centers):
    If that doesn't work, review articles and videos on how to open an Intel iMac and get an iPhone/iPad/another way to get to the 'net ready for research (I opened mine very carefully on the right side with a cutter with blade extended far prying it carefully then I inserted a flat end, sturdy plastic used for mixing epoxy then removed the cutter carefully to let the plastic mixing tool do the prying) to see if the cable connected to the logicboard which is on top of, is connected (mine was detached but I'm not sure if the adjusting and tilting of the screen overtime for 2 & 1/2 years, detached it) then do † above again.
    It could to be a software problem, a possible Apple ATI driver bug that takes overtime to surface (2 1/2 years it resurfaced because this started in my case after upgrading to Lion when Apple coded things mostly from the ground up. Snow Leopard didn't have this problem). 
    Thank you for your time. Have a great upcoming sunday mass/great upcoming weekend. I hope this helps.
    God bless, Rev. 21:4, Matt. 16:18

    Does an external display also act in a similar manner as the internal one?
    Some earlier Intel-based iMacs had graphic processor card issues; not sure what
    the symptoms of the majority of them were, but some had odd patterns, others
    went black, and some would range from OK to totally unusable. Among others.
    So there is a chance the graphic processor may be going out; or just the circuitry
    that controls the backlight. An inverter may be weak or other circuit to the display
    could be wearing out.
    http://www.apple.com/retail/geniusbar/
    If you have access to an Apple Store with Genius bar, they can perform some kinds
    of diagnostic tests there even though the computer is out-of-warranty; that may be
    of help to narrow down the cause of the symptoms you've noticed. They may not be
    able to repair it, however, at an Apple Store; as it is rather old by today's standard.
    An Apple Authorized Service Provider could do repairs and testing on older models
    the Apple Store's Genius and other may not be set up to handle due to vintage.
    Find an Apple Authorized Service Provider
    Visit an Apple Retail Store
    There is a country locator page to help find either of the above in regions outside
    of the US & Canada, not sure how the above links would work; and it appears my
    bookmarks to the country locator page may not be accessible now to post here.
    You may be able to get an idea about what kinds of parts support the display
    function by name by looking into an iFixit.com repair guide for your iMac series.
    Hopefully the parts supporting the display are the reason it is dimming down, as
    a graphic processor failure likely would exhibit other behaviors than just dimming.
    PS: I see you've added content to your thread after I'd started working on this
    & the answer likely is a hardware repair; professional testing is worth the time
    and you seem to have at least one other thread on the same topic....
    Good luck & happy computing!
    edited 2x

  • Possible "unlock" bug

    Greetings.
    I decided to post this here, as I dont have developer access for bugreporting site.
    Using "The new iPad 3" with latest iOS 7.1.2
    I found a strange bug by accident. I can repeat it, although it doesn't always work out.
    Here it goes: When I turn my iPad on from black screen to start screen and slide unlock
    bar like this (Finnish language set)
    If I stop there (correct spot changes and not always the same) and then flip iPad, so
    screen turns automatically (up and side both works).
    This will result so, that unlock bar is stuck and I can't open iPad anymore. Not without turning
    power off and then back on. This problem came with 7.0+
    Would be intresting to know, if this is known thing and can others repeat this with other
    iPads?
    Thanks for your time.

    I would suggest getting a copy of wireshark and see if the browser is behaving, I have seen
    lots of issues where the server is closing the connection and Safari still tries to send more data, which
    violates the RFC. You would also notice lots of tcp connections being opened possibly as well if the
    site finishes loading. I have been trying to use Safari exclusively for a while, but somehow I always end up in Firefox. Hopefully they will have most of the gotcha's under wraps soon, but until than their is always
    Firefox.

  • Possible Liquid Bug: Moving data into e-commerce layout

    Liquid will not seemingly pass any data from outside an e-commerce layout into an e-commerce layouts is intentional or a bug.
    If you create an include place it in a template then try to pass any data ie assign into any ecommerce layout it does not work.
    If you need more help with reproducing this let me know.

    What I have is a gloabal.inc this contains liquid that I would like to be used across a site ie url manipulations date manipulations and many many more. This is inside a head.inc placed at the very top of the template pages.
    What this means is that the global.inc gets rendered first before anything else. You can then run liquid return results and then use it over and over with a simple {{myResult}} tag almost anywhere on a site. It works great, it is simple, fast to implement and has many applications. I can even create a library of .inc liquid files and can place their include's at will in global.inc and then access variables across a site to add and remove functionality. (Of course this is dependant on what you want to do and if it really needs to be global of course.)
    I get that it is dependant on the way BC loads but if that is the reason then the ecommerce must render before the page template. Maybe it does, maybe there is another reason. If it is possible then it would be great to have working.
    Is there other ways to get the result I want yes. But is it as simple, as fast and as easy to implement, add and remove no. If there is a better way I am all ears.

Maybe you are looking for