Making the artboard that is farthest to the right the active artboard

Hello everyone! I am trying to figure out if it is possible to make the artboard that is farthest to the right in a document the active artboard. The artboards unfortunately are made in a random order otherwise I would just select the last one that was made. Thanks in advance!

Quick example, go through all artboards and test it's rect right edge
var ab = app.activeDocument.artboards;
var winner,maxR = 0;
        for (var i = 0; i < ab.length; i++) {
            var rect = ab[i].artboardRect;
            var r = rect[2];
            if(r >= maxR)
                maxR = r;
                winner = i;
alert(maxR+" at "+winner+" name:"+ab[winner].name);

Similar Messages

  • The news is making the activation issue seem like a SMALL number of people

    One articles title is "Some iPhone customers put on hold"
    - http://news.com.com/SomeiPhone+customers+put+onhold/2100-1041_3-6194446.html
    A quote from that article:
    ""There are a small percentage of iPhone customers who have had a less-than-perfect activation experience. We're working hard to resolve any issues quickly," Natalie Kerris, an Apple spokeswoman, said via e-mail."
    Another article :
    Piper Jaffray: 500,000 iPhones sold over the weekend
    - http://news.com.com/8301-107843-9738446-7.html?part=rss&subj=news&tag=2547-10403-0-5
    #### If they sold 500,000 iPhones this weekend and they say 2% of the people are having some issues. . . . that is 10,000 people . . . (If my math is right)
    That sounds like a LOT!
    (The iPhone itself, ONCE it's working has been terrific, but the activations woes stink!)

    #### If they sold 500,000 iPhones this weekend
    and they say 2% of the people are having some issues.
    . . . that is 10,000 people . . . (If my math is
    right)
    That sounds like a LOT!
    Statistically, it like a pimple on an elephants a--!
    Look at it another way. 3 million phones built. There will be between 30,000 - 150,000 phones with internal problems. A lot of phones, yes! But out of 3 million!!!
    So people need to put perspective on the issues.
    ajm

  • TS3694 I was making the update for my iphone 4s . then he stops. My phone in this time is in the recovery mode and do not take the firmware to open my phone, please can u help me to recover my phone. My current  ios 6.0.1. plese send me some thing that is

    was making the update for my iphone 4s . then he stops. My phone in this time is in the recovery mode and do not take the firmware to open my phone, please can u help me to recover my phone. My current  ios 6.0.1. plese send me some thing that is useful

    Thanks for that 'sberman' - because my iPhone is backed-up to my work computer (only at this stage) I have had to call our IT Department in Adleaide. (4 times this morning). The last guy managed to get the phone into 'DFU Mode' - no more recovery mode screen - (kind of 'asleep' perhaps) from my understanding of same. I am awaiting a call again from IT so they can get my computer to actually recognise my iPhone on the C Drive. This also happened to  one of my colleagues in Newman (WA). She got so frustrated with the whole process that she bought another phone the next time she was in 'civilisation.' She hasn't had any problems since. (Cross fingers).
    Thanks again, Sandra2474.

  • Got help fixing my youtube problem, now that is working.  In the process of making the fix, lost my aol set up. Re installed it, but cannot access the icon. How do i get my AOL back?

    Got help fixing my youtube problem, now that is working.  In the process of making the fix, lost my aol set up. Re installed it, but cannot access the icon. How do i get my AOL back?

    If it's an application, it should be in the Applications folder. If in doubt, double click on the hardrive icon to open it up, then press Command+F (find) and in the window that comes up for what you want to find, type in AOL and it should appear. You can either drag it to the Dock for easy access or make an alias of that, and drag that alias to the Dock. Oh, and just so's you know, this forum is for Desktop macs only. We may be able to answer your question about a MacBook Pro. Same kind of animal, but different breeds.
    good luck
    John b

  • My Itunes software, when activated, cuts off 3" of the right portion and 1" of the bottom of the screen. Everything available in this section of the screes is not available, making the software practically unusable. Has this happened to anyone out there a

    My Itunes software, when activated, shows an image on the screen of the normal itunes image except that about 3" of the image is cut off on the right side of the screen and about 1" of the bottom. All functions shown work. Any function in the part of the screen that is not shown, is not available, making the softwave almost nonfunctionable. When I upgrade, this is usually resolved, until it starts happening again. Since I currently have the latest version of Itunes, I cannot try this solution, which is only temperary anyway. Can anyone help me?

    Could you post a screenshot of the display for us please, bili?
    Save the screenshot in an image file, start a new reply here, and use the wee camera icon at the top of the reply window to insert the image file into the reply.

  • Automatic batch creation while making the UD

    Hi Gurus,
    Due to a customer need, I want to create the batch number for a good's receipt while making the UD, is that possible in a way other than using transaction MSC1N?

    Hello Max,
    What I have understood is you need not to create batch number while posting the MIGO document and need to fire the batch number at the time of performing UD? If it is so then here is the solution:-
    You can meet the requirement via so many ways but according to me the easiest way is, follow these steps.
    Step:01 Copy the movement type 101 (use Trx OMJJ) create Z01. Where you need to select the option "No Creation" in the field "Create New Batch" in the entry level control.
    Step:02 Use this movement type while creating GR, (change the std setting for GR against PO for trx MIGO)
    Step:03 For movement type 321 - TF quality to unrest change the settings for the "Create New Batch" field from "No creation" to "Automatic / manual without check"
    I think these will be enough for your requirement.
    If there is any query pls revert.
    Regards,
    Shyamal

  • Photoshop crashes when I try and save for web and devices. Making the image size smaller does not help.

    I'm trying to make a lopping .gif from an animation that I made. It's 147 total frames. It's crashed about 6 times now every time I either try and Save for Web or even just save the document on my desktop so in case it crashes I can reopen PS and recover it. Making the image size smaller (original size is 1920 x 1080 with resolution 72) does not help, it still makes the *ding* error when I attempt to save. I made the image more than half of the original size and the Save for Web box actually came up that time, but when I tried clicking save it said there was an error and PS crashed without warning.

    Look at the crash report for your Photoshop crashes see what they show

  • Windows PC User Making The Big Switch To Mac OS X & MacBook 2.0GHz

    I'm from the Philippines. I've been a Windows PC user for around 10 years. I figured it's time to replace my old Pentium III 500MHz/Win98SE with a newer system to keep up with highter system requirements set forth by newer applications.
    The features I looked for include portability, performance, connectivity (built-in WiFi & Bluetooth) and value (not too expensive). I'm initially leaning towards getting another Windows XP-based platform because Windows-based apps are readily available here and getting tech support for the Mac would be a little prob. Also, I just can't afford to leave behind some applications that are somehoew inexistent in the Mac world, but the mere thought that the PC world would soon be shifting to Vista kinda turned me off. Nobody wants to buy a new notebook that would suddenly become obsolete in just a few months or so.
    However, everything changed when online research led me to Apple's homepage (www.apple.com), where I discovered Mac's latest wonder: the Macbook. I heared about the Mac OS X's reputation for stability and performance. They say Macs are less prone to worms & viruses too since most of these things were designed specificically to infect Windows-based platforms. Looks like this is it for me. I'll be getting a MacBook 2.0GHz soon.
    I must admit that what primarily attracted me to the Intel-powered Macbook is the fact that it could now run two operating systems thru "Boot Camp" or Parallels For Mac. Two applications that would give me the capability to run Mac OS X and Windows XP on a single platform. It's like having the best of both worlds.
    For me, this is really great news but I still have questions though. The Macbook is a new release, so I'm still iffy about purchasing it as new technology is notorious for having many annoying quirks and kinks that need to be smoothed out.
    My question is... What are the PROS and CONS of using BootCamp and Parallels respectively? Is Parallels better than the other? Which one would you recommend? Should I decide to install both, will there be any hitches?
    I won't be upgrading for the next 5 years or so. The notebook will likely see some heavy use for Medical Transcription work and maybe occasional gaming (mostly flight sims). This would be my first Mac purchase so I better do it right the first time. So if you have any comments, feedbacks, suggestions... kindly post it here.
    I'll be making the big switch soon.
    Rich

    I'm running Parallels on an iMac 2.0 GHz, and I absolutely love it! I expected all sorts of glitches and found virtually none. The only drawback I know if is that it treats your USB 2.0 ports like USB 1.1. Otherwise, my Windows XP virtual machine inside of Parallels doesn't seem to know it's not on a PC; it runs smoothly and much faster than on my previous 1.5GHz PC with 1.0 GB RAM. I've loaded Quicken for Windows, MS Office, Norton Anti-Virus, Adobe Acrobat, and several other Windows Apps with no troubles at all. I'm telling you, this software (Parallels) is amazing. I feel like I literally have two computers now.
    I would recommend that you have 2.0 GB of RAM, because while you're running Parallels, you have 2 OS's operating at the same time. But the ability to switch back and forth between the two OS's, share files, cut and paste - well, it's simply awesome, and well worth any extra cost.

  • How can I create a long employment form without making the form widget drag?

    How can I create a long employment form without making the form widget drag?

    Sorry Sachin, I mean that I created a simple form on the page from the widget and started adding fields to it. The more fields I add the slower the delay becomes in creating a new field. Even when I try to select and drag or move an item, there's a huge delay and sometimes the program feezes,  loose what i've done and have ot restart.
    I'm doing an enployment form that has more than 20 fields, at least, and I need to be able to build the fields in separate categories, like Education, Past Employment, etc... quickly without delay issues.
    I can probably send you a snap shot of what I'm talking about if I cna post it or attach it here..?
    ~Andy

  • HP G85 All in one - Making the printer Wireless preferably with Airprint

    I am running XP on an HP towerand connecting the Printer using  a USB - USB cable.  I would like to make this excellent printer wireless to print from my HP laptop.
    But also to use it to print from my iPad2 without the hassel of emailing  an iPad document to myself to collect it on the Tower and then print. I believe It would be necessary to make the connection Airprint compatible 
    I wondered if anyone had solved this problem. 

    I fully agree with this complaint.  Curiously, I have faced similar problems like him.  Frequently, I have seen the messages like "paper jam ", "Cartridge missing" while there wasn't any paper jam and genuine brand new cartridges were already installed.  My experience is worse than his.  I could hardly use it for more than one week!  What is worse the wireless operation could never be achieved. Now this printer is lying discarded. 
    It really beats all logic that why should one not be able to scan a document (say -- to save the image on the hard disk for possible future use) even if there was so called paper jam or missing cartridge? 
    Also, it is virtually impossible to delete any job once you have clicked the button print.  The printer would keep on retaining the job, making the printing of other jobs impossible,  unless perhaps you uninstall it and then re-install!  Why can't HP find a solution to this problem?
    I join his sentiments that I would refrain from buying any HP product in future.

  • Aperture 3: Deleting raw files and making the jpeg my new master-

    Aperture 3 has made some great strides in making the following possible ( I posted this originally in 2007):
    What I'd like to do is shoot everything in raw + jpg, and then keep the raw files only for the important shots.
    I really like having the option of raw processing, but the storage demands are very heavy. If I could just make a selection of photos in a roll, and have a command to delete any unneeded raw files from the selected photos, while keeping the original jpgs as master, that would be great.
    Also, it would be great to be able to manipulate a raw file, and then when I'm satisfied with the image, to render a high-quality jpg from that raw file & make the jpg the new master, and then delete the raw file to free up disk space.
    Basically, I want the raw file safety net for everyday images, without gobbling up gigabytes of disk space <<<<<
    With Aperture 3, I can finally change the master to the jpg file, which solves part of the problem. But I still want to be able to manipulate my raw file, and render a new high-quality jpg master.
    Why don't Aperture / Lightroom do this? To me at least, it seems an obvious feature.

    I had a chance to talk to product managers from both Apple & Adobe about this at PhotoPlus Expo in NYC a couple years back. Both seemed receptive, but here we are - years later - no progress.
    I think part of the problem is that there's a purist mentality about RAW files. One should always shoot them - and then keep them forever- after all- they're your negatives!
    But what about event photography? Or weddings, as you pointed out? It makes no sense to burden your workflow & backup system with 4GB of RAW files of people grinning into the camera. Once the adjustments have been made, the RAW files are just a ball & chain on your data management. And let's not forget, once you really know what you're doing, your jpegs should be good most of the time anyway.
    I want RAW files as a safety net for errors in exposure and white balance. Once I know I have good photos, I don't need the safety net anymore- at least not at the price of all that hard disk space and transfer time for online backup. Of course, for my fine art stuff and important documentary work, I'll always keep the RAWs permanently. But not for routine parties/events.
    You put your finger on the problem with re-importing jpegs as a solution. You lose your metadata- rankings/album memberships, etc. This is no solution!
    What I want is simple, and it would be immediately useful to countless photographers:
    1) Let me batch-delete RAW files when the jpegs are ok.
    2) Let me do adjustments on my RAW file, render out a high-quality jpeg, and make the jpeg my new master.
    Whoever does this first - Aperture or Lightroom - that's the product I'll use.

  • What else must I do to force data entry other than making the field required in LC 9 Forms Designer?

    I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient.  What else must I do to enforce data entry within required fileds?
    Thank you,

    There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
    // form1.page1.subform1.tf1::exit - (JavaScript, client)
    if (this.isNull) {
      xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
      xfa.host.setFocus("form1.page1.subform1.tf1");
    Steve

  • Hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the

    hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the help

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • Making the window blink

    Hi,
    I'm working on a Messenger-client-application. The gui is pure swing. I've got two questions that I can't seem to find answers for in the API.
    1) When a message arrives I want to notify the user either maximizing or even better making the minimized window blink. How do you start the blinking? is it some kind of window-event?
    2) I'm also using scrollpanes. How do I set the scrollpane to always display the buttom part of it's contents? This way I won't have to scroll down every time a message is appended to my JTextArea-outputarea.

    Yeah, I figured I should probably post my findings even though it's to a question that's old.  Hadn't seen anyone post an workaround that functioned at all.
    I will note that with some digging in Process Viewer, it seems that a second copy of the iTunes.exe file is launched as a sub-process, performing some intensive operation, then quitting.  It's this process that's grabbing attention.  I'm not sure what it's doing, but it's probably related to library management, or some such.  It seems to have a distinctive pattern - during "work", it launches about once every 20-30 seconds, processes for about 5 seconds with heavy CPU load, then quits.  The launching of this process apparently grabs focus.  It sounds like something in the launch code of iTunes grabs focus even though it will end up doing background work.

  • Making the move to vista

    I am making the move to VISTA on my primary development machine.  I develope in LV 7.1 8.0 and 8.21 concurently.  Is there any issues to be aware of?  Many clients will still run the software on XP and a few on 2000.  Will daqMX and Labview compiled programs work seamlessly.  I would like to hear about similar experiences so I can mentally prepare for the troubles ahead, or not if we are all lucky.  I gave it 6 months.  I have not found any issues yet but have not distribudet my code to cilents either.  Have I made a mistake?
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

    On three machines it worked one client it did not. I will try setting the compatability, do I do this with the vista machine and send it with the mode already set.  There is no daq and the 8.21 runtime is on the machine.  I dont know what could be different on the client machine.  the code which froze was purly user event, no daq, no tool kits, no communications, no analysis in this part of the code.  Are there some visual effects or something else which could have been set by my vista PC that some XP boxes cant handle.  The code does load and begins to execute but hangs on this popup vi.  Very weird.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

Maybe you are looking for