JSX in CS5 assistance request

I have a javascript (coded by Dave Saunders) that has been of great benefit to me over the past few years. It has worked without changes with InDesign CS2, CS3, and CS4 (Mac and Windows). This helpful tool allows me to position an InDesign window where I want it on my screen. Next the script is run to create a default data file. Finally, when the script is run again, it repositions the active window to match the location of the window defined in the default data file.
This morning, it will not run in InDesign CS5 (7.0.3). It merely beeps at me when I invoke the script via the script panel or the assigned KB shortcut.
The script worked with CS5 pre-update (7.0.0).
The script stil works with CS4 (6.0.6) on the same system.
System:
Mac OS 10.6.4
InDesign CS5 (7.0.3)
Will any script guru out there be able to assist me with making this work again in CS5?
// JavaScript Document
//DESCRIPTION: Resets active window size or uses front window to set default size.
// Check for WindowDefault.txt; if present use it to set front window
// if not, use front window to set it after checking with user.
myPath = app.activeScript;
myParts = myPath.toString().split("/");
myParts[(myParts.length - 1)] = "WindowDefault.txt";
myNewPath = myParts.join("/");
mySettingsFile = File(myNewPath);
// Before proceeding, check that there is a front window
// If not, offer user the chance to delete the current settings
if (app.windows.length < 1) {
if (confirm("No window is open; would you like to delete the settings file?")) {
  // User said yes; check that it exists
  if(mySettingsFile.exists) {
   mySettingsFile.remove();
} else {
if (mySettingsFile.open("r")) {
savedBounds = mySettingsFile.read();
  mySettingsFile.close();
myBounds = savedBounds.split(",");
  for (i = 0; i<myBounds.length; i++) {
   myBounds[i] = Number(myBounds[i]);
  app.windows[0].bounds = myBounds;
} else {
  if (confirm("Settings file is missing. Use current front window to set default?")) {
   // User said: go to it.
   new File(mySettingsFile);
   mySettingsFile.open("w");
   mySettingsFile.write(app.windows[0].bounds);
   mySettingsFile.close();
Thanks!
-mt

10.8.2 broke a lot of stuff, report this to Apple.

Similar Messages

  • "iPod Setup Assistant " request always pops up upon mounting mono 20gb ipod

    Just installed 30gb ipod & itunes update onto computer running Windows XP - no problems. I also have a 20gb mono on the same computer (updated itunes and ipod updater as well). Restarted computer. I signed on as the only one using the PC, launch itunes, mount the 20gb ipod. The system does nothing for about 20 secs. then the ipod is shown (as it always does). No problem adding songs to libary or transfering to ipod w/20 gb (except the inital delay). The problem is, behind the itune window a window pops up "iPod set up assistant" with the name of the ipod I just mounted. Window ask me if I want to auto sync my files (I click off the check mark - because I do not keep music on computer otherwise this would wipe my ipod clean). I cancel out, but each time I mount the ipod I get the same pop up "set up request". Any ideas what is going on and how to stop this (so that I some day do not make the mistake of hitting OK in place of cancel)?
    I have read the posting below but it falls short of answering my question.
    Thank you in advance.
    "How do I set up another iPod in iTunes when I already have an existing iPod/iTunes combo on my computer?"
    Answer:
    First things first, lets get your iPod up and running with the correct firmware:
    Begin by throwing away the disc that came with your iPod. The software on it is more than likely out of date anyway!
    Download the latest iPod firmware from HERE and install it on your computer (by double-clicking the installer icon).
    Go to Start > All Programs > iPod > iPod Updater > etc and run the updater application.
    When the pop-up box appears, connect your iPod and select the RESTORE option.
    When instructed, disconnect the iPod from the PC and connect it to the AC adapter to complete the process.
    OK, now you need to decide 'how' you want to manage your music. You have a couple of options:
    Using the existing iTunes installation on your PC
    If you want to use the same library and iTunes installation, then you can just re-connect the iPod to the computer via the USB or Firewire. iTunes will launch and ask you to register the iPod. To manage your music, you now have two further options. You could either:
    Use 'Auto-Synch' to transfer the entire music library and playlist selections to your iPod.
    OR
    Use the 'Manual Synch' option to manually drag and drop the songs and playlists that you want on to your iPod.
    OR
    Set up a 'Master' playlist which contains all the songs you like, and then set the iPod to automatically synch to that.
    Using a new iTunes installation (Requires windows XP)
    If you want to keep your new iPod music completely seperate from the original iTunes library, then you can install another instance of iTunes. To do this, you must:
    Create your own XP user profile.
    iTunes should be accessible using this log-in. If not, then download and install the latest version of iTunes. This can be obtained HERE. (Note: When swapping between User IDs, you should not use the 'Switch User' option. iTunes really doesn't like that!)
    Once the iTunes install has completed, you can begin adding your own music. Your music files will be automatically added the the newly created iTunes folder which can be found at C:\Documents and Settings\[User Name]\My Documents\My Music\iTunes\iTunes Music.
    If you want to keep all the music on the hard-drive in the same place (and minimise the possibility of having multiple versions of the same song everywhere), then you can change the settings in iTunes so that all music is derived from the same location. To do this, go to Edit > Preferences and select the 'Advanced' tab. You can then change the iTunes Music folder location to something like C:\Documents and Settings\All Users\Shared Documents\Shared Music.
    20gb mono wheel with 4 buttons at top   Windows XP  

    To all of those who viewed question but did not have an answer the following is how I resolved my issue. FYI. In the end, although the "Setup..." window came up, it was in fact stating that I did not have the music file within my iTunes. How I resolved the issue was to first click OFF the check mark that advised me that iTunes would automatically update my songs. I did not change the name of my iPod (since it was the correct name). Clicked next and then Finish. This resulted in the window going away and the "Music Store" file appearing within iTunes. The "Setup..." box does not come back up.

  • CJ20N Project Builder Validation Programming - Assistance requested

    This is a how-to request.  I am trying to validate user entry at save time in the CJ20N Project Builder (Project Systems).   The desire is to enforce that the project, wbs, and network company codes are all the same prior to saving a NEW project. 
    The problem I am having is on the scenario in which a user creates a new project by copying an existing project or standard template.  If the user changes the company code on one or more wbs before saving it,  the wbs table in abap memory prior to saving does not reflect this change.  The table is called CJ_BUF_PRPSxxx99999999 where xxx is the client number (mandt).
    Thus any attempts to loop at this table to validate the company code against the parent project are futile.
    I have contacted SAP on this  issue and they insist that it is not a bug.  I need an alternate solution.
    Any help would be appreciated.

    I solved this problem myself by stepping through the debugger between the user exit and the actual save routine.  I was able to find the correctly populated internal table to loop at.  It was called PSTAB.

  • Assistance request for lost mobile

    Can you give assistance on locating a lost mobile? I can provide necessary documents for validation and procedures.

    We..the Users (this being an User-to-User Forum) or even Nokia can't do anything in this regard.
    Refer THIS

  • About CS4 vs CS5 - a request for information

    First my setup:
    Sager laptop NP8760
    CORE i7 820QM @ 1.73Ghz (both cores)
    ATI MR HD 5870 (1 GB)
    Ram: 8192MB DDR3 1333 (2 DIMMS)
    2 SATA 500GB WD hdd
    Win 7 64bit
    What I want to hear about, is given the hardware and that its 64 bit win 7... How different will I find CS5 encore to be.
    I've been working with CS4 on the same hardware for about a month.
    It sounds like CS5 Premier has a significant change with the new rendering engine, but what about Encore? Has it aquired some new and better way to grind avi into mpeg2?
    My usage is as an event videographer still in the learning phase in all respects.  Although I have finally developed some familiarity with the Adobe CS4 Production set.  And have been an off and on user of Photoshop, premiere, encore and Illustrator going back to the version where CS had no number following it.
    Its really hard to tell from the online descriptions that adobe has posted, although it appears they have put a good effort into trying to describe what to expect.  It isn't enough for me to understand what I might find better or worthwhile about CS5.

    John T Smith wrote:
    64bit (required for PPro CS5) means better use of more memory
    Your ATI graphics card does not allow hardware MPE in PPro
    Encore is still 32bit, since the "core" is licensed from Roxio, and they are still 32bit
    You might want to check http://ppbm5.com/ to see if there are any laptops like yours, and where they rank
    MPE ?... is that hardware acceleration?
    And what is the end result of not allowing MPE?
    I couldn't make much sense of the tightly woven pages at you citation... looked like it make take some serious pondering just to get started with that
    My laptop had 2 choices of vid card... the other one was `Nvidia Quadro FX 2800M 1gb Gddr3'  I didn't know enough about how to read the specs to make an informed choice... but shy'd away from Nvidia due to experineces on a P4 running winXP -pro where I reall couldn't even run encore CS4 without major problems... begining with having to turn hardware excelloration off.
    Would that card make a serious difference in working with PP and Encore?

  • CS5 feature request - audio import?

    Does anyone else think a feature request to add an "ask" option for PREFERENCES-AUDIO-DEFAULT TRACK FORMAT would be a great idea?
    I'm constantly having to switch between stereo and mono etc when importing different types of files from different camera types etc. A pain.
    Paul.

    Paul,
    Not sure exactly what you are looking to do here. One can set up a default Sequence layout, and that will be what is initially shown, with New Sequence.
    My default is 2 Mono, 4 Stereo and a DD 5.1 SS Master. If I know that I will have a Sequence with more SFX Mono Tracks, I just bump that count up, when doing New Sequence. Same of Stereo, if I know that I will have, say more Music Tracks.
    Are you saying that you'd like "floating channel-counts" for Tracks, so that they could be either Mono, or Stereo? If so, I do not see that happening.
    If you are asking for maybe a Click+drag on Audio Tracks to rearrange them, like many DAW programs, that would be different. Though I use the PrPro method of Create/Delete Tracks, to get the order/arrangement that I need, the Click+drag is not a bad idea, and many have filed that Feature Request, including myself, though I am comfortable with the current method, and can easily live with it.
    Can you clarify a bit more?
    Thanks and good luck,
    Hunt

  • 1820M Unit failure-urgent assistance requested

    Hey guys I have a serious problem! I hope someone can help me! I have recently purchased the 1820M sometime late last year. It was working fine, then, it began to freeze during start up and I would have to re-start the computer, two to three times before it would boot up and work properly. Since that time, I have been experiencing sound drop outs during play backs, that would last for maybe 1-2 seconds. Now, during a session last night, there is completely no sound coming from the unit. I am using Nuendo 2 as my recording software. On the patchmix dsp screen, I could see that there is audio there, all of the meters are moving and showing sound, but there's no music coming from the outputs. I haven't done anything different since my purchase and installment, the unit itself stopped working!
    Could anyone please give me immediate help!!!!!! I am loosing moneys daily because my studio is out of service due to the problem at hand.
    You can contact me here, on this forum, or email me at [email protected], or [email protected]
    Thank you for your immediate assistance!

    Hey,
    The first thing I would suggest is to Restore Defaults in Patchmix (if you right click on the E-MU icon in the taskbar you can see this option).
    Also check in Device Manager to ensure that the E-MU card is correctly recognised and there are no conflicts...you could also check for IRQ sharing.
    Ensure you've installed the latest drivers and Patchmix updates.
    In the Output Assignment Window in PatchMix, can you check that you have Mix or Mon selected againest the output where your speakers/monitors are connected.
    If you don't have the correct Session (that matches the sample rate of your file) loaded in PM then this may also be a problem..you would see 'activity' but wouldn't hear anything.
    ATB,
    ~Jen~

  • CS5.1 Requests inserting in drive D:

    Hi!
    After a BSoD and total re-install of everything (Win8.1), such as CS5.1 and Lightroom, when starting window pops up asking to insert into drive D: and then offering three choices (we use the German version) of repeat, cancel and ignore.
    Hitting any of those fields 10 times starts the program normally.
    Drive D: is usually for a chip card.
    What can I do to get rid of this message?
    Thanks,
    Alexander

    Hi,
    Does the folder c:\users\my profile\downloads folder belongs to your new local accout or the original live account?
    If it is the original live account, then I would suggest you access\look for the files with your original live acocunt, after you login with that account, copy the files to C:\Users\Public folder, folders\files under the public folder will be accessable
    to other user accounts in system.
    Yolanda Zhu
    TechNet Community Support

  • ICal assistance request

    On my IMac I'm running O/S 10.6.2, Safari 4.0.4. ICal was configured to open upon boot-up. Recently, ICal has been opening and immediately the multi-colored little spinning disc replaces the mouse pointer and I cannot proceed with any type of action such as, open an event, open the file or help menu, nothing. If I pull up Finder for example, my mouse pointer returns and it along with all other programs function normally. ICal is functioning too, in the sense that the month, date and year are current, but I cannot move within the application due to the little disc. I have reviewed the forum content and the Apple site help and tried some proposed solutions.....so far nothing worked. Can someone give me some assistance so I can begin to use my ICal again? If one prefers, you can use my direct email, [email protected] or [email protected] Thanks in advance, Joe

    Click here and fill out the form if you haven't already done so.
    (54793)

  • Connection Configuration Settings Assistance Request

    Contribute CS5/Version 6.0
    IIS 7.5 (Server 2008 R2)
    Active Directory (Server 2003 R2)
    Windows 2008
    Hello,
    I hope someone can help me.  Does anyone use Contribute with external authenication with Active Directory?  We just recently migrated out Website from an old server (MS Server 2003 R2/IIS 6) to a newer server (MS Server 2008 R2/IIS 7.5) and we can not seem to get Contribute to work.  We have been able to successfully make a connection but it will not allow us to edit let alone publish.  We had it working in IIS 6 but there seems to be a problem with IIS 7.5 authenication and authorization with Contribute.  All the settings and configurations are identical to our old server including authentcation and NTFS directory (folder/file) permissions.  As the Webmaster, I successfully made a connection and can use Dreamweaver CS5 seemlessly except I can no longer delete files from our production server with it but I can live with that.  If anyone out there is set-up like us then I would greatly appreciate your help by sharing your configuration settings in IIS and Contribute.  Thank you.

    Unfortunatley this is a, 'it depends' question. If your business requirements are such that you need to easily change a configuration via standard tools, e.g. you're hosting an Azure web site, then config file is a great choice. If you have an architecture
    where the settings differ depending upon a user login then a database might be a good solution. If your architecture uses security zones then the less you put in a less secure zone the better. Sorry, but, "it depends" is the best I can offer.
    http://pauliom.wordpress.com

  • Final Purchasing Decision Assistance Requested

    Greetings. I had difficulty finding the appropriate section to post this, so I hope I am not out of bounds, posting here.
    I am in need of some serious pre-purchasing advice and hope that some of you can help me reach a rock-solid decision.
    Here is my dilemma. My current G5 system is outlined below. I was going to purchase an 8-core Mac Pro, but decided that was overkill. The Quad-core, I have determined, is more than sufficient for my needs. Now I am considering downgrading, even further to a maxxed-out 24” iMac.
    First, permit me to list my main uses of my machine, beyond the ordinary, everyday tasks. I do a bit of work in Photoshop CS3. I just purchased a Sony HD camcorder, so I will be upgrading my copy of FCE2 to FCE4. I am running an Internet radio station, so I utilize a program called MegaSeg, used in conjunction with Nicecast and M-Audio Firewire Solo. That’s just about it.
    So, here are my questions. If I get the iMac, I will be limited to 4GB of RAM (due to the cost of the 8GB upgrade), will have the Radeon HD 4850, as opposed to the HD 4870 in the Pro, but will have a slightly faster processor. Additionally, the iMac will allow me to keep my 30” HD Cinema display, which would be great when running the station and working in PS or FCE, but will the HD 4850 card be up to the challenge of driving both monitors effectively?
    By going to the Quad-core Mac Pro, I can get up to 8GB of RAM, the better video card and of course, much greater expandability in the future. I plan to keep this machine at least 3 years, for certain and hopefully, longer. The down-side, using only the 30” monitor (yes, I know - poor, poor pitiful me).
    One major concern is noise. My G5 is without a doubt the loudest computer I have ever owned. During the slightest task the fans kick into overdrive and it sounds like a helicopter is landing on my desk. When I record in Garage Band, you can hear the fans in the background. Yes, I realize I could put the box on the floor, under my desk, but that seems sacrilegious. lol. I have not heard any complaints about noise with the new machines, so I’m hoping that is not an issue. Any experiences to the contrary, I would appreciate hearing about.
    The bottom line is this: $3400 for the Mac Pro vs. $2600 for the iMac, configured the way I would like them.
    I fully understand that this is a personal decision, but I have always received sound, intelligent input on these forums and would appreciate any feedback anyone might wish to offer.
    Thanking you in advance for your assistance and my apologies if I have posted in the wrong forum.
    Cheers,
    Frank
    Message was edited by: Guppyman®

    *Unimpressive? you can add the ATI 4870.*
    Valid point.
    *HD? I always get the smallest, and replace it (use as a backup clone). 1TB drives are $99-139.*
    Well, on OWC under Digilloyd's specials, which is referenced in the "Mac Performance" link you provided, (of which I read every word of), they range from $130 to $170.
    *You say you won't/can't buy 3rd party RAM and hard drives, which are CIP/DIY, and also want to cut price. These are MEANT to be upgraded! by the end user. And look at photos. Easy and made for 5 yr old to do.*
    Well, I would and I can - but I'm not a DIY kinda guy and in my world, whatever can go wrong will. I'm more of a unpack, plug-in and start using kinda person.
    It is almost impossible to figure out how much I would actually save by doing it myself, but if could save me $500, I could spring for the internal Blu-ray player I have been drooling over. That would fit nicely with my new HD camcorder and allow me to play through my Sony LCD-TV. I guess it's time to sit down with a spread sheet and figure out what I would actually save. Your points are ALL valid.
    Well, it is a workstation.
    *That is why the Mac Performance link is in there, well written and "english." (I too use to get headaches reading specs, just like when I learned 3-dimension geometry 45 yrs ago.*
    Excellent piece that every Mac user should read. Simple to understand. No "geek-speak."
    *If you look at MacRumors forums, some people are more than happy with 2008 and even prefer it to the new model*.
    I will do so.
    *I just don't want you saying you can only upgrade to 8GB RAM when you can, and then say "but I don't do that kind of thing (hire the local Mac kid from high school).*
    Understood.
    *Can't be louder than a fan. Is that a requirement, or "oh, good, I can live with that" because if you want silence, then you can't use a computer, and you would need to invest more into silent SSD hard drives.*
    I don't expect silence, but I also don't expect the sound of gale-force winds. lol. You have to hear this machine to believe it. It's ludicrous.
    *Personally, I prefer the Specials over even new. Tested, reliable, and often come better than spec shown.*
    lol. Well as hard as you have tried to help - now I;m more confused than ever. I will have to take a long hard look at configuring my own machine.
    I appreciate your kindness, very much. - Frank

  • Local router blocking incoming remote assistance request

     I have a user who recently moved. they received new equipment from their ISP. I use to be able to make remote assistance connections to their computer using a popular system center configuration manager remote tool. Now i can't get past the handshake when i try to connect. If he has split tunneling enabled would the new router block incoming traffic? I know by default most of the router's firewall will block all incoming traffic (if enabled). does this apply to VPN traffic?

    Hi, if the VPN terminates on an IOS router, then the split tunneling does not "block" anything. It simply decides which traffic is sent through the tunnel and which traffic is sent in clear text (as in Internet traffic). 
    If the router has ACLs on the outside interface, that could be blocking the traffic (even VPN traffic). 
    Make sure the desired traffic is part of the split tunneling rule and that if there's an ACL, it allows the traffic to pass.

  • SQL Query re-write assistance requested

    I am needing to know the best way to go about re-writing a bad query at my workplace that needs to run at TOP performance due to very large amounts of data that will be run through it.
    I have simplified the data and table to the following mock example:
    ID SEQ_N IND
    1 1 Y
    1 2 N
    2 1 N
    2 2 N
    3 1 N
    I need a query that returns each ID, as well as the maximum SEQ_N for each ID. The tricky part is that if there is a "Y" in the indicator (IND) column, then use the maximum SEQ_N for those. If there is no "Y" indicator, then use the maximum SEQ_N for the "N" indicator column. So given the above example data, the query executed would return the following results:
    ID MAX(SEQ_N)
    1 1
    2 2
    3 1
    I hope that makes sense.. The query we have running currently creates a string and gets the maximum from that. The inner part of the query looks like the following:
    select id, max(decode(IND,'Y','1',0') || to_char(SEQ_N, '0000000009')) from table
    And the outer query selects from this (using a substring and to_number) to get the sequence number back.. So we have a decode, to_char, substr, and to_number in order to get the job done - this is very expensive; there must be a better way!
    Thanks in advance!

    Or:
    SQL> with t as (select 1 as id, 1 as seq_n, 'Y' ind from dual union all
      2    select 1 as id, 2 as seq_n, 'N' as ind from dual union all
      3    select 2 as id, 1 as seq_n, 'N' as ind from dual union all
      4    select 2 as id, 2 as seq_n, 'N' as ind from dual union all
      5    select 3 as id, 2 as seq_n, 'N'from dual)
      6  select id,max(seq_n) keep(dense_rank first order by ind desc,seq_n desc) seq_n
      7  from t
      8  group by id;
            ID      SEQ_N
             1          1
             2          2
             3          2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Profit center assistance requested

    We originally set up cost center 957 pointed to profit center 956.  On May 28, we changed it to point to profit center 957.  The problem is that the original costs posted to cost center 957 are updated to profit center 956.
    How we can fix the history for this year?
    Regards,
    Murali

    Hi,
    The changes to the cost center are prospective in nature and will not affect the document already posted.
    For already posted document, you have two options:-
    1. to reverse the document and repost again
    Or
    2. To make manual repost in profit center accounting. (9KE0)
    Regards,
    SDNer

  • Assistance requested in configuring VLANs

    I have VLAN A with Server A1, Server A2, etc. on it.
    I have VLAN B with Server B1, Server B2, etc. on it.
    I need Server A1 (on VLAN A) to see Server B1 (on VLAN B) only ? no other devices.
    While there may be multiple ways to accomplish this, I?m hoping that you can provide me with the best way/s (i.e.; how to configure this on the switch or any other ways). Please note that I am hoping to avoid installing a second NIC in Server A1.
    Thanks in advance.

    Hi
    Are the L3 vlan interfaces on the switch or on a router. Assuming they are on a switch
    access-list 101 permit ip host "server A1 ip address" host "server B1 ip address"
    access-list 101 deny ip host "server A1 ip address" any
    access-list permit ip any any
    interface vlan A
    ip access-group 101 in
    Couple of things to note
    1) The above access-list allows server A1 to only talk to server B1 and absolutely nothing else.
    2) There is a permit ip any any at the end of the access-list to allow other server traffic.
    HTH
    Jon

Maybe you are looking for

  • VO extension error invalid index error

    Hi all i am trying to extend my VO for a seeded oracle page i tried to search the forum and used a couple of soultions but i was not able to resolve the issue the error i am getting is as below Exception Details. oracle.apps.fnd.framework.OAException

  • Changed printers, now can't print wireless from laptop

    Hi. I changed to a HP printer from an Epson. Now I can't print wirelessly from my laptop through my Airport Express. I get a message that the printer is offline. Went to the HP site & got latest drivers. And there was an Apple update for the HP. I ca

  • I cannot install Adobe Creative Suite 6 Design & Web Premium - Student Version

    I purchased a Student Version of Adobe Creative Suite 6 Design & Web Premium. It will not download even though I have the product code, serial number and student ID number. Can anyone help?

  • BPC integration with My DB

    Hi All, I need urgently to know how to integrate BPC with My DataBase. I can't find form where i can input my data to BPC dimensions and build my comapny structure before entering my fact tables and my monthly transaction Thanks In Advance

  • Unbilled information structures in IS-U for BW

    Hi! I am doing the configuration in IS-U for getting data for unbilled revenue reporting, simulation documents... My problem is, the information structures needs BILLRUNNO field, that exist into the table, however, when I want to select the character