Question - script (starter)

Hello

I am new to Java in general and particularly in InDesign scripts.

I would like to know, how do I get the page number of the current page in the document.

That is, if the user running the script while working on page 123, I wish the script to be able to recover the number to store it in a variable.

Thank you!

myPageName = app.activeWindow.activePage.name

The choice of the variable name is flexible

Trevor

Tags: InDesign

Similar Questions

  • Report Question script

    Hi all

    I have it here question script report.

    I report I need to generate from Jan - 2013 as part of Dec-2013. I can manually update the period and the year and generate it, but I need one file per month. So for example for January 2013, I need Jan13.txt and February 2013, I need Feb13.txt.

    Can we create a script to report that generate files from separate output for each month?

    or should I create a separate report for each month script generate separate output file?

    Thanks in advance

    One report script is unable to create several files in a single run.  You can be...

    1 create 12 report files and call them separately

    2. create a report file, use a subvar and then call 12 times, changing the subvar between tracks

    3. create a report file and use a script to cut output upward in files.  grep or equivalent makes this kind of thing a relatively trivial task

    Abandonment of report and by using a script to calc DATAEXPORT scripts can be an option; You can create multiple files from a script unique calc like that.

  • new here... question to start with

    Hello world...

    New to the forum and glad to hear things with Dreamweaver.

    A question to start with... How does a program Dreamweaver so that it automatically reformatted in different browsers (sizes).  Is it still possible?

    Cheers...

    Twingi

    How does a program Dreamweaver so that it automatically reformatted in different browsers (sizes).  Is it still possible?

    It is certainly possible.  Tell us what you mean by 'formatting automatically' and we will tell you how to do it.

  • Questions laptop starts to really frustrate me

    First off I hope by specifications, which means laptop and I am posting this in the right place. I have read many places Q & A with my questions, and today I took my laptop at Best Buy/Geek Squad to fix these problems, but after an hour away, I still have problems.

    I have a HP Pavilion dv7 Notebook PC with Windows 7 Home. It's about a year. Here are the problems.

    (1) after a cleaning, done by Geeksquad, I just noticed that my cyberlink youcam no longer works. It appears that it does not detect a camera. This unit is integrated. After talking with the guys at GeekSquad today, he couldn't understand and suggested I send my laptop in 2-4 weeks people elsewhere to go inside and see if it's a hardware problem with the camera. This is covered by my tech support. The YouCam worked the last time that I used it, before the last 'clearing '. I downloaded the latest driver and see no other choice but to send everywhere where it should go. Anyone had this issue and know how to deal?

    (2) I can't access my host/router settings page. I type in the 192.168.1.1 and it gives me an Internet Explorer cannot display this page. The GS guy suggested was my routers fault, he couldn't give me hard real answer as to why or what was going on. Once again, before the last cleaning, I could access my router home page. How is it that my laptop is to connect to the router and has access to the internet, but I can't get on the home page. Am I missing something? I ran one configsys/all in the cmd window and ensured that I got the good IP, what I'm doing. I have reset the router. I unplugged for 30 seconds. Nothing. It is a Netgear, dual band, about 2 years. I am considering buying a new router and see if it's the problem. If the clues as to what is happening with this problem?

    (3) my last question is that I can is no longer possible to connect to my wireless printer. A few days ago when I tried scanning to my laptop. He could not find the computer. When I looked on my printers and devices page, I saw that he had listed the HP wireless printer. The printer showed that it was connected to my router. My laptop is connected to the same router. I uninstalled the printer and reinstalled on my laptop, but now, it is not listed in the printer and peripheral page. When I do a search for the printer, it comes back with nothing. When I type in the information, it is still not connect. Once more, the guy of GS had a definitive answer to why it happens. It seems that his only solution was to get a new router because he suspects that the router is the problem.

    I am extremely frustrated at this point because I'm not very tech savvy and with these 3 things stacked on me at the same time, well, I'm pretty angry. Here, the community can provide any help would be greatly appreciated. If I need to provide more details in regards to the laptop, printer or router, please let me know. Frankly, I just want to get these issues out there as quickly as possible and I'm just fed up looking around for answers and everything else tonight. I hope someone can give me an idea as to what might happen. Heck, I just like to know what the problem. There are so many components of a computer, I don't even know where or what to look for. Thank you all.

    Hello Force95b.  I understand that you have had some problems since having your laptop cleaned by Geek Squad.  I'll answer each question individually for you.

    1) there are many things that could cause the webcam to stop working.  It could be the software (corrupt drivers, a problem with YouCam or similar) or it could be a hardware problem as a failure.  To determine exactly what the problem is you will need to try a few steps.  Fortunately, I made a detailed post on this exact error (webcam not detected).  Take a look at my son (here's a link) and try to proceed as I pointed out.  Be sure to view the results for me to review.

    (2) that this problem occur more wireless, wired, or both?  If you are able otherwise to connect and use the internet I don't think you have a problem with your router.  It is probably just a parameter that must be changed.  You said you have a double router broadband.  Have you noticed your twiced wireless network in the list of networks when you connect?

    (3) what model is the printer?  I think that your wireless printing problem and your problem of router above are part of the same problem.  Thus, the resolution of the problem with the above router will be necessary before taking action on this issue.

    In order to start work on questions 2 and 3, I have a suggestion.  If you are able to access the configuration of the router, wired or by another PC, you must change some settings.  First of all, make sure that your router is only using the 2.4 GHz frequency.  HP printers are not fond of dual band wireless and the frequency of 5 GHz specfically.  You must also make sure that your router communicates on the two channels one or eleven.  Once you have changed these settings turn off the printer, the computer and the router and reactivate them all before you test the feature.

    You'll also want to completely uninstall/reinstall the printer.  I will provide you with detailed measurements.  Try the following.

    1. Remove the printer from devices and printers (However, it looks like it's already gone).
    2. Simple left click on "Document of Microsoft XPS writer."  If you look at the top of the window you should now see "properties of the print server.  Select this option.
    3. Go to the tab "drivers".
    4. Remove HP printer/fax drivers you have here.  Remove driver and driver if package you are prompted.
    5. After the removal, click OK to close the window.
    6. Click the Start button, go to all programs and then in your printer folder.
    7. Uninstall the printer via the uninstall program located in the folder.
    8. After uninstalling, restart the computer and download the latest drivers for your HP support printer
    9. Install these drivers and restart the computer.
    10. Check the features.

    I hope it's useful.  I'm waiting your answer to my questions.  I wish you a nice day!

  • PowerCLI script start vm and check the boot

    Hello

    I try to do a powercli script to start the virtual machine and check when the (windows) operating system is completely open and ready.

    How can I do?

    Maybe this helps...

    Start-VM - VM - runAsync

    $vm = get - vm

    Start-Sleep - seconds 20;

    $vm | Get-VMQuestion | Game-VMQuestion - version - confirm: $false;

    do

    {

    Start-Sleep - seconds 5;

    $toolsStatus = $vm.extensionData.Guest.ToolsStatus;

    } While ($toolsStatus - not "toolsOK");

  • Question about starting EM when there are several homes

    (Oracle 11 GR 1 material, Windows XP SP2)

    Hello

    As an exercise, I have two databases in separate, houses called db_1, and db_2.

    When I try to start the EM console, I get the following message:
    emctl start dbconsole
    OC4J Configuration issue. E:\Oracle\app\Private\product\11.1.0\db_2/oc4j/j2ee/OC4J_DBConsole_OrahostB.john.local_dbcasid not found.
    I set the ORACLE_SID correctly to DBCASID, but he is looking in the wrong directory. I set ORACLE_HOME, but that has not solved the problem.

    I can start the service using the Windows Services Console successfully, but I would like to know if it can be done using EMCTL and if so, how.

    Question: How can I tell emctl how I want it to look at?

    Thank you for your help,

    John.

    Published by: 440bx - 11 GR 2 on 8 Sep, 2010 11:04 - deleted some jive "junk" in the text of the code

    By setting variable named PATH.

    It must contain the path of the correct ORACLE_HOME in the place of leader bin directory into the PATH variable.

    Concerning
    Anurag

  • Newbie question: script to pause between loops

    I am a newbie Designer, graphic in Flash who knows only the basics of action scripts. I want an animation to get to the end, wait 'frozen' on the last image for an amount of seconds I specify, and then play from the start. However, when my animation is coming to the end, it plays back without waiting for (logically, since I have not introduced a script in time interval). How can I specify this time interval? What script to use and on what image should I place it?

    Thanks in advance for your help

    Hey Mosh,

    By default, the playhead on your main time line will start to play without any instructions. In fact he 'loop' without any outside help unless you decide.

    If you want to be sure that your animation plays everything you need is "play()" or even "this.play ()" but the result is the same. "This" is referring to _level0 if you did put a trace on it.

    So, replace your "gotoAndPlay (1)" by "play()" on the first frame
    and
    on the very last remove frame the "gotoAndPlay (1)" as you now order this action on the service call back within the "executeCallback()".

    I know it says "play()" in the service that has been created, which is fine, but you can change that to ' gotoAndPlay (1) "if it helps you to understand a little better.

    Everything we do here is establishing the function at the beginning and he put back in action when we need it. It does nothing until we call in the last picture with:
    intervalId = setInterval (Thi, "executeCallback", seconds * 1000);

    The "stop()" function on the end does what it says on the Tin. It stops at the playhead dead in its tracks and then the head of reading waiting for something to tell him to do something else. That is why the statement "intervalId.

    So in summary what we do here is paste an object into 'intervalId"that says"the trigger executeCallback() function"after" seconds * 1000 "(the 1000 is used here because Flash works with milliseconds) has passed. And why that said this is because we spent the 3 parameters to the setInterval() function. That's why > this, "executeCallback', seconds * 1000<. strange="" though="" why="" you="" dont="" need="" to="" include="" the="" "()"="" right="" after="" "executecallback".="" but="" hey="" it="">

  • MAXL script start &amp; Stop application

    Hello all-

    Is there a way to start and stop the application via the MAXL script? Should what command I use to achieve this?

    Thank you

    MAXL

    change the application database app.db load

    change the database unloading app.db application

    More info here:-http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/altapp.htm

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Hello. I have several questions on start using the iTunes U.

    We want to create the official account of our University (it is not the official request yet) and we would like to ask a few questions at the beginning.

    (1) the future into account our Universioty will we have the opportunity to add teachers accounts to this account of the University so that they could view their cruises as part of our Univesty?

    (2) the University must pay any amount of money to be a member of Itunes U?

    (3) overall how Itunes U functions once you have the University added?

    (4) how students and teachers can be added?

    (5) is there than no limitation language in which cruise is displayed?

    Looks like you're asking on the iTunes U Public Site Manager. Your best bet is to contact your Apple account manager or the seller. If you do not, contact AppleCare. Only Apple can provide canonical answers to posted questions.

    To help you prepare for the conversation with someone from Apple, I offer you my non-canonical answers:

    1. Admin Site Manager at your University will be able to link accounts at school.
    2. I don't believe it.
    3. ITunes U teacher accounts will be all deleted limitations and able to publish courses on the iTunes Store U see http://help.apple.com/itunesu/instructor/#/itu16F92805-A89F-4DCA-9BF7-8B6AC9F563 6 d for more details.
    4. I believe that unlimited (or "reasonable number").
    5. Published courses can be in any language. If you browse through the store, you will find courses in English, Spanish, German, Japanese, thai, Russian, Chinese...

    For more information on Site management, see its help:

    http://help.Apple.com/iTunesU/SiteManager/

  • Question thread started...

    I know it's a little off topic, but not really because I can't find older threads that I started.

    Usually, I go to "activity" under my profile and can see all of my sons.  I noticed that only the last three threads are coming.  How can I see all the discussions that I started?

    Thank you.

    Click on your avatar and select "content".

  • Question: when starting my 1 CCC database ~ I get, this installation package could not be opened... why?

    at the start of my 1 CCC database ~ I get, this installation package could not be opened... why?

    Please see the bottom of page for your support needs.
    http://CCC.CCCIS.com/pages/support/4.php

  • I have these questions on start up. First-error loading C:\ Windows\32\cqahgvb DLL

    On startup, I get error loading C:\ Windows\32\cqahgvb DLL

    The specified Module could not be found.
    Driver cure
    There seems to be an error during the installation, please re install the application.
    Can you please help!

    Hi bowtieone,

    1. did you of recent changes on the computer?

    2 when was the last time it was working fine?

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • Questions, getting started with Phonegap Adobe

    Hello

    I am really new to app relatively new building for java programming, but have a little knowledge in html and css.

    I managed to create a html, css, js page and tested with Phonegap Adobe.

    Issues related to the:

    1. what I need to integrate and use cordova-plugins when you build the application or the application may be just a file html, css and js?

    2. when I created all the resolutions for different devices, how will I be able to implement different html, css, js files for the different devices?

    3 do I have an Apple pc, when you create an application with Phonegap Adobe iOS to iOS devices, or I can build in an environment windows for all devices?

    4. What are the benefits to register, an Adobe Phonegap account?

    1. the app can be just a html, css and js folder except the splashscreen plugin (and the statusbar plugin, if you want to scale well on iPad). In addition, you need graphic icons and screens start and of course a config.xml file with the configuration name and id, icons/projections and a couple of general preferences

    See the Build Phonegap Docs

    PhoneGap Build | PhoneGap Docs

    2. you do not implement 'dimensions' for all devices. Similar to Web design (where you really don't know what size the user opens and will scale to the browser) you just create something in "liquid design", which is supposed to evolve with the different screen sizes and resolutions.

    Also, make sure you look a bit on the html element meta for 'window'

    3. you can build in Windows, iOS, or Linux (or any other OS) when using Phonegap Build. However, iOS apps cannot be published if you have a Mac (whether physical or in the cloud)

    4. the benefits are that you can have several apps at the same time in your account, and the size of each max is more important than in a free account. The benefits of Adobe are obvious: they get your money.

  • Creative cloud questions on start

    Since the update of my iMac to El Capitan on start up I sometimes get this message...

    Adobe Creative Cloud is necessary to solve this problem. However, it is missing or damaged. Please download and install a new copy of the creative cloud of 'http://www.adobe.com/go/adobecreativecloudapp'.

    Why is this happening? Its onset 4 times in the last 2 weeks. Thank you guys!

    iMac 27 "late 2009-3.06 GHz Intel Core 2 Duo 12 GB memory

    Hello

    Please remove Creative Cloud app and Adobe Application manager using the-

    Install the cloud creative app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

    Let us know if this helps!

  • customer display script starts with the auto-login to user...

    Hello

    for demonstration purposes, we use some very cool stuff...   Transmitter receiver on our demo-workstation locking USB-Xylock (http://www.ensuretech.com), what the host automatically in Windows journal, if it goes near the work station. Please could you help us, we would like to have connected to the customer at the view with its user and password directly. You have found an opportunity to do in a script so far? Please let me know,

    AAW

    View customer supports the command line parameters... you can give him past/username also with who.

    Please see the manual for that!

    Blog: http://communities.vmware.com/blogs/dommermuth

Maybe you are looking for