JS CS3 dialogue Simple changing of doc from page.

This user this example is a dialog telling them that their current document from page. The user can then change the value and update the first page number. For some reason, I get an error cannot process the request because a modal dialog box or the alert is active. I put myDialog.close (); before the if statement should, so this does not stop this error?

I added not just any what control to ensure a doc is still open to identity card.

var myDialog is new window ("dialog", "From Pg" no);.

myDialog.dPgNo = myDialog.add ('panel', undefined, 'File Details');
myDialog.dPgNo.alignChildren = 'left ';
myDialog.dPgNo.myPgNo = myDialog.dPgNo.add ('group');
myDialog.dPgNo.myPgNo.group = myDialog.dPgNo.myPgNo.add ('group');
myDialog.dPgNo.btnGroup = myDialog.dPgNo.add ('group');
with (myDialog.dPgNo) {}
myPgNo.group.orientation = "column";
myPgNo.group.alignChildren = 'right ';
myPgNo.group.preferredSize = [90.15];
myPgNo.group.st = myPgNo.group.add ("statictext', undefined,' Doc your start page is :');")
myPgNo.et = myPgNo.add ('edittext', not defined, app.activeDocument.pages [0] .name)
btnGroup.btn = btnGroup.add ('button', undefined, 'Update');
btnGroup.alignment = 'right ';
}

myDialog.dPgNo.btnGroup.btn.onClick = function() {}
myDialog.close ();
var myPagestart = myDialog.dPgNo.myPgNo.et.text;
If (app.activeDocument.pages [0] .name! = myPagestart) {}
app.activeDocument.pages [0].appliedSection.continueNumbering = false; <-ESTK stops here with the error mentioned above.
app.activeDocument.pages [0].appliedSection.pageNumberStart = parseInt (myPagestart);
app.activeDocument.pages [0].appliedSection.sectionPrefix = "";
Alert ("your start page of document has been changed to" + myPagestart + ".");
}
myDialog.show ();
}

myDialog.show ();

Hi John,.

You don't need to close and reopen the window. Instead of dialog use type "palette" of the window and run the script in a persistent engine, for example #targetengine "session".

Kasyan

#targetengine "session".
var myDialog = new window ("palette", "From Pg" no);
myDialog.dPgNo = myDialog.add ('panel', undefined, 'File Details');
myDialog.dPgNo.alignChildren = 'left ';
myDialog.dPgNo.myPgNo = myDialog.dPgNo.add ('group');
myDialog.dPgNo.myPgNo.myGroup = myDialog.dPgNo.myPgNo.add ('group');
myDialog.dPgNo.btnGroup = myDialog.dPgNo.add ('group');
with (myDialog.dPgNo) {}
myPgNo.myGroup.orientation = "column";
myPgNo.myGroup.alignChildren = 'right ';
myPgNo.myGroup.preferredSize = [90.15];
myPgNo.myGroup.st = myPgNo.myGroup.add ("statictext', undefined,' Doc your start page is :');")
myPgNo.et = myPgNo.add ('edittext', not defined, app.activeDocument.pages [0] .name)
btnGroup.btn = btnGroup.add ('button', undefined, 'Update');
btnGroup.alignment = 'right ';
}
myDialog.show ();

myDialog.dPgNo.btnGroup.btn.onClick = function() {}
var myPagestart = myDialog.dPgNo.myPgNo.et.text;
If (app.activeDocument.pages [0] .name! = myPagestart) {}
app.activeDocument.pages [0].appliedSection.continueNumbering = false;
app.activeDocument.pages [0].appliedSection.pageNumberStart = parseInt (myPagestart);
app.activeDocument.pages [0].appliedSection.sectionPrefix = "";
Alert ("your start page of document has been changed to" + myPagestart + ".");
}
}

Tags: InDesign

Similar Questions

  • Simple changes PDF - in the overview, or other application?

    I need to make modifications simple PDFs on a fairly regular basis. Generally, these are only:

    -Remove a page from the pdf file.

    -Join two PDFs (one after another).

    I don't need features beyond those such as annotations, etc.

    Can I make these simple changes in preview in El Capitan? I saw a quick look at the menus options to accomplish this.

    Or y at - it simple freeware that anyone can suggest?

    Try to preview first

    The basics of the Mac: Preview app views and retouching images and PDFs - Apple Support

    See also external link

    pp-part http://www.Macworld.com/article/2863923/the-many-superpowers-of-apples-preview-a - 1.html

    pp-part http://www.Macworld.com/article/2865527/the-many-superpowers-of-apples-preview-a - 2.html

  • My current computer can handle simple changes?

    After much frustration trying to use the trial version of CS5 to test my machine, I learned that the trial software does not accept certain formats.  So, I tried to convert MPEG - 4 to .wmv.  With .wmv wouldn't follow the video with audio in the preview screen and my processor is clocked at 98% of its capacity.  Now, I don't know if it's because the trail version will not work with either MPEG - 4 formats .wmv GOLD or my computer is too underpowered to use this software for a very simple Assembly.

    I am trying to decide if I can buy and use this software to make simple changes and transitions with titles on AVCHD with my current computer.  My computer is a laptop from Sony with 64-bit, Intel Duo Core 2.2, HD 400GO, which runs at 5 400 rpm, 4 GB of ram and a mobile intel GM45 exprress chipset mobile intel graphics meida accelerator 4500M HD and 1695 MB total graphics memory max.

    Two questions:

    1. can I use this software to make simple changes on the computer that is listed above?

    2. is there a format that I can convert the video to that will work in trial software so that I can continue to learn the software in my Lynda.com video tutorials before you purchase the software?

    Robert, I remember my friend Tony Donatelli's response when I asked him how much I needed to change my my Canon 5 d Mark II memory H.264 files.

    "ALL THIS!", he said.

    Joking aside, he was telling the truth.

    You are to halfway there buddy.  Don't give up now.  Believe me, paradise awaits you and 100 virgins as well.  All you have to do is somehow convince your wife/girlfriend you need to buy a nice desktop computer who smokes.

    I picked up a used MacPro and it changed everything.  MacBooks used to smother these video files and this unit to chew threw like a glutton.

    If funding is a problem, you might consider buying the full version of Premiere ELEMENTS for what you call your simple edits and take the money you saved and apply to the purchase of a brutal desktop computer.

    I would definitely stick with the Adobe platform, however.

    These Adobe forums are incredibly helpful and I found that it is the case with the forums of Final Cut.

    Good luck!

    Matt Dubuque

  • Can I change password Firmware from another Mac

    Can I change password Firmware from another Mac

    N °

  • I want to remove my iTunes balance to change the country from the United States towards my country Jordan

    I want to remove my iTunes balance to change the country from the United States towards my country Jordan

    Only personnel of the iTunes Store can do that. Contact them at http://apple.com/emea/support/itunes/contact.html.

  • Change the calendar from celsius to Fahrenheit.

    How to change the calendar from celsius to Fahrenheit?

    Kuhlmante,

    Which subscription to a calendar that you use?

  • Firefox changed my homepage from Yahoo to the Firefox home page. Now, every time I change back to yahoo, it it changes just back to firefox. What should I do?

    I keep changing my homepage from Yahoo, but it keeps going back to Firefox Homepage each time that I open it again my browser.

    It's strange. You have a program named Advanced SystemCare? Some users have reported that it has a function of protection of homepage that you should turn off in order to change your home page.

    If that does not apply to your system, could you review this support article and see if anything here helps you: How to fix preferences that will not save.

    A little luck?

  • I changed my ISP from at &amp; t to time warner cable, I will be able to use firefox in the same way?

    I will be able to use Firefox in the same way after I change my ISP from at & t to time warner cable?

    NoScript is essential. Windows 7 firewall is good. For antivirus, etc., I'm under maximum security from Trend Micro. The price is high, but it usually substantial discounts are available. Some ISPs now offer free versions of Norton or other software, but I don't know about Time Warner.

  • Yesterday, I changed my code from Apple.  My Iphone still has my old username.  How do I change on my Iphone Apple ID?

    I changed my code from Apple.  The new ID and pw are recognized on the site Apple, but my IPhone is always prior using Apple ID.  How can I change Apple ID on IPhone?

    Hi kenfromstate College

    There are several places that you must change your Apple ID:

    Settings > iCloud > disconnect and then connect you with the ID of the new

    Settings > iTunes and App Store > type your Apple ID > disconnect and then connect you with the ID of the new

    Settings > Messages > Send and receive > type your Apple ID > disconnect and then connect you with the ID of the new

    FaceTime settings > enter your Apple ID > disconnect and then connect you with the ID of the new

    Settings > Game Center > type your Apple ID > disconnect and then connect you with the ID of the new

    NOTE: Purchases (content free is taken for granted) made with your old Apple ID will be permanently linked to this change ID of the Apple ID in iTunes and App Store will ask you to enter the old password Apple ID to update these applications, unless you remove the and re-downbload with your new Apple ID.

  • How can I change my carrier from sprint to t-mobile?

    How can I change my carrier from sprint to t-mobile? I have an iPhone 5

    T-Mobile call and tell them you want to switch from Sprint. I'm sure they would be happy to help.

    http://www.t-mobile.com/offer/switch-carriers-no-early-termination-fee.html

  • change of country from the app store without a credit card

    Hello guys,.

    Please I need help from you.

    I would like to change the country from app store without a credit card. but there is no option "None" appeared.

    If you can send me the steps to solve this problem

    Thank you

    Yohan

    Why select None when I change my payment to Apple ID information? -Apple Support

    When you change the country or the region of an Apple ID, you must provide a payment method and update your billing options. If you want to delete your payment method after you change the country or region, you can change your payment information to none.

  • Change operating system from Vista to Windows XP Home on my Satellite A200

    I want to change my OS from Vista to Windows XP Home on my Satellite A200... once I downloaded the complete drivers compatible with XP I updated my version of BIOS to be compatible, then when I started the formatting procedure I've countered a problem when I want to choose the format of the hard drive... which is "no hard drive drivers were found.

    If anyone can help please :) Thank you.

    Hello

    The problem is that you must install the SATA driver (among others) in the XP operating system!
    You will use the FDD USB external (floppy) drive or you will create a new Win XP CD using the freeware tool called nLite (google for nLite get details).

    In addition, after the installation of the SATA driver you shouldn't t format the HARD drive because it would wipe out the SATA driver and the HARD drive will not be recognized!

    Best regards

  • I changed my account from administrator to a limited account user, now I can't login as administrator

    I changed my account from administrator to a limited account user, as I had 2 accounts of users, two administrator accounts. Now I can't login as administrator. I can't find the administrator and any other accounts show that when I try to switch users.

    If you have seen that the users you listed: that's all nothing.  If your account was listed as an administrator, then it is what it is.  It does not change when you restart the system.  ;-)

    Initially, you said that you have CHANGED your limited user account:

    I changed my account from administrator to a limited account user, as I had 2 accounts of users, two administrator accounts.

    Given that, you didn't have and still two active accounts.  If your account is displayed in Mode safe (when you connect as built-in administrator) as an administrative level account - it still is.

    Was able to go in the control group/user accounts. He was the administrator, my account administrator and one guest account haven't turned on do not.

    Information about Windows XP HOME Edition and the built-in Administrator account:
    http://WindowsXP.MVPs.org/Admins.htm
    (... and how you can make it visible in normal mode again - the reason for which it automatically logs in has two components.  (1) you have no password on 'your account' and 2) you have two directors and so integrated is hidden).

    Try this (in normal mode).

    Start button--> RUN
    OR
    'Windows key' + R

    Type:

    cmd /k net localgroup administrators

    It should bring up a prompt with information.  What is listed under the:

    Members
    --------------------------------------------

    article?

    Same idea, different order...

    Start button--> RUN
    OR
    'Windows key' + R

    Type:

    cmd /k net localgroup users

    It should bring up a prompt with information.  What is listed under the:

    Members
    --------------------------------------------

    article?

  • How to change the screen from Portrait to landscape?

    I changed my screen from landscape to portrait years ago and now I can't go back.  My screen went out and I use a borrowed on the side for now, quite the hassle.  Any ideas?

    Hi DavidMortensen_907,

    • What happens when you connect your monitor to the computer?

    I suggest that you connect the monitor for which you want to change the portrait view and then go to the link thread with similar problem and try the steps mentioned, check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-desktop/switching-between-portrait-and-landscape-display/9bdea91e-3e86-4e19-9E23-97193b63e5cd

  • Impossible to change my printer from offline mode online

    Original title: get my printer online

    My printer has suddenly gone 'offline' and I can't do it online.  I ran the installer for my home network on it again, and he says it connected successfully, but it is always showing that it is in offline mode.  What should I do?

    Tahnya, salvation

    Thanks for posting your question in the community of Microsoft Windows. I understand that you have printer problem be disconnected. Correct me if I'm wrong.

    I imagine the inconvenience that you are experiencing. I will definitely help you with this.

    To help you suggest several steps to solve the problem, I would appreciate it if you could answer the following questions:

    1. What is the brand and model of the printer?

    2. you receive an error code or message?

    3. have you made any recent hardware or exchange of software on your computer before the show?

    Please follow the steps below and the links to verify the question:

    Replace a printer offline online mode:

    To resolve this problem, you need to change your printer settings of the offline online.

    a. open the start menu and click on the "devices and printers". This will open a window with a list of the printers currently installed on your computer.

    b. double-click the icon of the printer that you want to change online. The status of the printer appears in the form "printer: Ready" or "printer: offline.".

    c. click on "printer: offline" and the menu of the printer. Click on "Printer" in the menu bar and uncheck "Use printer offline." This action will change the printer from offline to online mode.

    For reference:

    Solve printer problems:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Troubleshoot network printer:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-printer-problems

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

Maybe you are looking for