Can we run script at runtime?

Hello,
Can we run script at run time? I mean, I have writtern a script which reduce the font size by 2 pts in certain text frame when charcters are more than 100. I can able to handle this, only when the text frame is already has more than 100 charters. means, If that text frame is already more than 100 chars and then click on the script then only i can get the desired result.
I want like this way, if apply the script certain text frame, Then i start typing on the text frame.. Automatically reduce the font size when charcters reached more than 100.
Hope you guys understood my question? I wanted to get the script result at the runtime.. is this possible at Indesign? I will apriciate your help..
Thanks,
Shyam

Can we have chance to written timer logic at Javascript?
This can be done by sending a script from Bridge to InDesign, through BridgeTalk and using Bridge's scheduleTask() method.
Here is an example:
#target bridge
var myScript = 'CreateBridgeTalkMessage()';
app.scheduleTask(myScript, 10000, true);
function CreateBridgeTalkMessage() {
    var bt = new BridgeTalk();
    bt.target = "indesign";
    var myScript = InDesignScript.toString() + '\r';
    myScript += 'InDesignScript();';
    bt.body = myScript;
    bt.send();
function InDesignScript() {
    alert(app.documents.length + " documents are currently open in InDesign. This script is triggered by Bridge every 10 seconds using scheduleTask method");

Similar Messages

  • Can we run script logic at the time of preparing reports.

    Helo Everybody!
    I am new to SAP BPC.
    Can we run script logic at the time of preparing reports.
    Thanks & Regards,
    Satish.

    If you mean, "Can we run script logic at the time of preparing reports" is equivalent to entering data into the report and sending it to the database, then yes, you may run logic as Marcel indicates.  Defualt logic is ALWAYS run for ANY and EVERY set of data that is sent via an input template from the field.  You may also run logic when posting a jOURNAL entry as well.  But be careful....if default logic attempts to perform to MANY or COMPLEX calculations, the time it takes to complete the process may not be in expectations with the users plans.  There is a fine design balance required when planning to run logic at the time of input, as opposed to running in a package or at specific times during the day.
    Hope this helps.

  • How can I run scripts in CP 8 on a timely bases.

    In CP 8 I want a script to run every second automaticaly, how can I do this?
    The reason for this is that I want the application that I build to check for the GeoLocation every second, so that the arrival at a location that is entered as a variable  can trigger an event (Go to Slide...).
    Now I have the cpInfoGeoLocation checked on Enter of the slide and on Click of a button. But would like it to happen automaticaly.

    Actually ... I had a great discussion with Suresh and the engineering team shortly before the release of Adobe Captivate 8 about just this topic.  The need to call a script on repeating basis is a huge need, and thanks to the great work of the engineering team - it was included in Captivate 8.  Here's how you do it - High level:
    1. Create a slide that you wish to loop on. (In your case this should be a 1 second slide.
    2. On EnterSlide event, store the current frame (cpInfoCurrentFrame) in a variable (call it whatever you like, startFrameSlideN should work)
    3. On Exitslide event, call a script - either an Advanced Action or a Shared Action that uses goToFrameAndPlay with the variable you used for the start  frame + 1 - the trick here is to set up this script to use decision points in sequence that ask your questions - if any of those conditions are met - call a goTo - navigation command and exit the slide loop.  If none of the decisionpoints are met, then simply let the final else (Only the final else) be the goToFrameAndPlay command that returns us to the start frame +1 of this slide.
    Now in earlier versions of Captivate (7 and below) this would not work. Because it would be interrupted and simply pass on to the next slide after one failed loop through all of the decision points.  But now this will loop infinitely - so be very sure that you include a  navigation button to let the user escape the slide loop - or you'll get permanent pause if the conditions are never met.
    I'll blog about this next week here: http://blogs.adobe.com/captivate/
    You could use this for some of the following (certainly loads of other things too.): 
    1. loop on a slide while comparing GPS to make a self-popping trigger when the learner walks / drives into a gps matching zone
    2. PUSH messaging.  Give cp a location where messages are stored - then if you add text to that messaging online text - it will get pushed to your application when the loop occurs.
    3. Dynamic update of course content - loop on a slide and load any variable
    Tons of other stuff i'm sure.
    --Allen

  • How can I run script every 10 minutes

    Hello ,
    I just wondering if oracle application server has a way to run a normal java class,servlet or JSP for every (for example) 10 minutes.
    I mean I want to automate a java class for a spesific time like running a script on UNIX using CRON JOB
    Regards

    Mr. user510124,
    Please try to be as specific as possible. Mr. Raghavendra has given you a very good solution, which you can use. Other possible solution would be to schedule it with crontab (Unix) or using Oracle Grid Control.
    Regards,
    Martin

  • Terminal - Already have root access - can't run script

    Hello everyone!
    Any help would be most appreciated!
    I am attempting to install RUSH (a render queuing program for our post-production environment) on fresh 10.6.2 machine. I've already enabled the root account, and when I su'd to root I used the command "su - root" to make sure that I wasn't pulling over any attrib. from my non-root account.
    I am trying to run the install script "install.sh" but whenever I use the command "./install.sh" I get an error "This script must be run as root
    ". I don't see why it doesn't work. The permissions are all 777, and I made sure the script was executable.
    Anyone have any advice as to how I can get this fixed?
    Thanks!!!

    what do you get for the following commands:
    id -u
    echo $USER
    echo $LOGNAME
    What I'm wondering is how the code you are installing has decided you are NOT root. Is it looking at your username and expecting the spelling 'root', or is it looking at your User ID, and expecting '0'.
    I generally just use the following to become root without needing to actually enable root logins
    sudo su -

  • Can diadem run scripts in diadem

    I have a script writtem in Diadem that uses config files to load the data and then add it to a report. It then exports the report in a pdf format. I would like to run this script with labview so I can automate this when new log files are created.I have used the report template VI but I have csv files not signal files plus I want to be able to export the reports automatically

    Hi chandler,
    Don't give up on me just because you've tried the DIAdem Report.vi before and it didn't do what you needed.  Like I said, this example tricks the DIAdem Report.vi into doing things it wasn't designed to, like passing a CSV file path and calling a VBScript that can create a multipage report.
    The "DIAdem Report Script.TDMS" file is not a data file but rather a parameter transfer file from LabVIEW to DIAdem.  The DIAdem Report.vi does NOT have a data file path input, so this is how I'm tricking it into using one-- the VI writes all the info LabVIEW knows and the reporting DIAdem needs to know into this "DIAdem Report Script.TDMS" parameter transfer file.  Then when the "DIAdem Report Script.VBS" file is called, the first thing it does is loads the "DIAdem Report Script.TDMS" file and reads off those transfer parameters.  In this case what is being passed is just the file path of the data file-- in your case a CSV file.
    The DIAdem Report.vi DOES have an input for a REPORT file path, and if you wire up a file path to a VBScript file to that VI input, it will launch DIAdem and run the VBScript you wired up.  If that "DIAdem Report Script.VBS" then loads the "DIAdem Report Script.TDMS" file to read off the transfer parameters, then clears the Data Portal and loads the desired CSV data file (that was passed in the transfer parameter TDMS file), THEN calls your reporting VBScript with ScriptStart(), you should have what you want.
    This is a non-obvious architecture, but it is robust,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Adobe Photoshop cc 2014 I can't run scripts in html5!?

    I'm having some trouble migrating into the new html5 interface development. I immediately jumped from cs6 to cc 2014 and while I do realize that the extension builder for the latest cc suite has not yet been implemented yet. I really need to get used to this now. I've been able to get the panel up and buttons displayed; but, when I try to press the button to execute a JavaScript file like:
    var docRef = app.documents.add(120,220,72.0,"New Document", NewDocumentMode.RGB);
    It does nothing, I've tried the:
    alert("This is an alert message");
    and that pops up an alert message; but, when it comes to everything else, I can't seem to get it.
    Most of the tutorials I've searched for:
    A Short Guide to HTML5 Extensions | Adobe Developer Connection <-- CEP 4.0
    I can't figure it out! I am new to this and I need quick assistance on how I am able to do this.

    Thanks for the reply, I tried that but i wasn't able to get it to work. I also tried to see if l could using the
    function functionName()
    and I was still unable to.
    Silkrooster wrote:
    I haven't tried it yet, so i could be way off. But since you assigned it to a variable I would say it won't do anything until to call that variable. I would assume there must be a show command or similar that is needed for it to display.
    My experience is with actionscript and javascript but still I lean towards basic. I don't feel comfortable enough to say I am any higher yet as more experience is needed in my opinion.
    So feel free to take my advice with a grain of salt.

  • Cron job : how to run scripts as cron job

    Hi friend,
    Sorry one very small question ..
    Can someone tell me how can i run scripts as cron job .. on HP UX.
    thanks
    ashish

    Hi Ashish,
    open one telnet session.
    crontab -e
    then give the periodicity day and time
    like below
    05 00 * * 1-6  /usr/local/bin/database_backup.sh
    and now create the script file with the command or script to execute.
    Regards
    Ashok Dalai

  • Run script alarm question for iCal

    I have a script that I have been able to set as an alarm in iCal to change the times of events on various days.  People subscribe to this calendar and I would like to imbed the script as an alarm in the subscribed calendar.  Can't get it to work.  Here is the message I am getting right now when I refresh the subscribed calendar...  There was an unexpected error with the request (domain CalCalendarStorePersistenceErrorDomain / error 1 / description 'Alarms that open files or scripts must include a file path.').  As far as I can determine it does have a file path!  Does this error mean that the script should have a file path?  I've tried the
    set theFile to POSIX path of (script name) command in the Applescript, but I'm not convinced I have it right.  Can you run scripts that reside on the local machine by activating them through subscribed calendars?
    thanks,
    dan

    Found the problem: The run_maintenance script couldn't be completed without user action (because of the dialogue), so was giving iCal an error.
    Solution: I've set another script that simply launches the run_maintenance script as the alarm.
    So there are 4 players in this daisy chain: iCal, a script to launch the reminder script, the reminder script, and Maintenance!
    Inelegant, but it works.

  • HT4759 can sign into icloud but won`t let me in . says wont open because of long running script . any ideas

    Can sign into icloud but wont let me in . says wont open due to lond running script . any ideas thanks

    Restart your PC and try again.

  • How can I run a continuous interactive update script?

    Hi,
    I've written an interactive update sql statement that will need to be run several times. Typing @f:\folder\file.sql can get time consuming and boring after a couple of times of inputting the data.
    Is there an easy way to write a procedure that will run the script until you tell it to stop?
    Thanks
    Jen

    The script prompts the user to enter an academic year e.g. 01/02, a student reference number e.g. 20000001, a prior attainment figure, a course suitability figure, an 'other' figure and a baseline figure. These values are updated into the relevant fields using an update statement within the script.
    Yes I am using sql+ and have tried using the / function but all that happens is the update statement runs again not the actual @f:\folder\filename.sql;
    As for knowing when to quit the script, there would have to be some sort of loop.
    Example (Pseudo code)
    Prompt user to run the script, answer Y or N
    Do
    run script
    while answer to prompt is Y
    I have a feeling that the above loop would have to be written in PL/SQL.

  • How can I run a SQL script file...

    How can I run a SQL script file from a location on my computer without providing the whole path?
    Is there some way I can set a "Working folder" in SQL Plus??
    Thanks!
    Tom

    You can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
    scripts.
    I would like to use another directory than the oracle/bin...
    How can I do this ??
    Hello,
    U can do this by this way:
    Save odm_script.sql file to the default Oracle
    directory i.e. Oracle-Home/bin and Run following command
    through SQL Plus.
    SQL>@Script_Name
    I hope this will resolve ur problem.
    Regards,
    Omer Saeed Khan.

  • How can I run a script from path?

    Hi all
    How can a illustrator script be run from a path by double clicking the script file not from illustrator menu->scripts.
    thanks in advance
    THAMIL

    You can modify the script to use COM.  For example, when the script is run in AI, there is an assumed application object - you can just use the members of the Application object without having an explicit Application variable.  To do this in a standalone javascript, create a Illustrator.Application object:
    var app = new ActiveXObject("Illustrator.Application");
    var activeDoc = app.activeDocument;
    You would do something similar for any object that would otherwise need to be created with new.  You can get a list in the the registry - HKCR\Illustrator.*
    Note that .length and collection[i] don't work when you do this.  Use .count instead of .length.  You need to use Enumerators:
    var textEnum = new Enumerator(doc.textFrames);
    for (; !textEnum.atEnd(); textEnum.moveNext()) {
        var txt = textEnum.item();
        txt.contents = "text";
    You also have to use WScript.Echo() instead of alert().
    Phil

  • On XP SP3 can't run plug-in, get IE script error without running IE, click Yes or No, nothing more happens

    I am running XP SP3 and FF 3.6.18. I have been having trouble opening PDFs in FF but not in other browsers. FF tells me to update my Adobe PDF plug-in. I click in the FF list to update, go through the procedure and when I click on run I get the following message: "Internet Explorer script error," although I am not running IE and I have no other applications open or running other than Avast anti-virus. The pane gives me two options to the question "Do you want to continue running scripts on this page?": Yes or No. After clicking on either, the pane disappears, but nothing further happens. I have then downloaded the plug-in again, but when trying to run it I get the message: "Only a single instance of this application can run." I have tried downloading the plug-in to a different folder but get the same message. I have also turned off Avast with no change in the above. Now no PDFs open in FF. What to do? Thanks.

    Thanks for your response...
    I can wait.  After all, it was by waiting for the release of the 10h version after the 10e version sabotaged my flash installation, that I was eventually able to at least get Firefox up and running flash again...
    It's just frustrating to think that the folks at Adobe can't come up with a better product testing cycle so they are unleashing these problems on end users systems...
    I recognize that there may be some sort of issue with my particular system registry.  If so, I wish I knew what it was...but flash releases are the only installations I ever have any difficulty with...All of the other software I run updates without failing....sad to say...
    Perhaps I will try running a home edition version of secedit (See here)http://support.microsoft.com/kb/313222 instead of the clean or repair install...I'll let you know what I decide and how it works out...
    Anyway, thanks for the input..

  • Can't access icloud due to long running script

    keep getting this error message when logging on to icloud to access my email:
    can't access icloud due to long running script
    And if I do get logged into icloud and try to open the email application I can't open my email or any other applicationii.
    HELP

    Welcome to the Apple Community.
    Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard
    Entering iCloud email settings manually in Tiger

Maybe you are looking for

  • Error while loading  0Plant master data in PSA

    Hi, i am trying to load attributes master data for 0PLANT, but in PSA i get the following error: <i><b>'Record 1 :Plant CU : No sales organization found; Local currency cannot be checked'</b> .</i> We are not using SD module and so no sales organizat

  • I am a computer idiot. HELP

    My house has wireless through a Linksys router.  Everything was working fine until this Christmas.  I bought my sons new laptops (WiFi enabled).  We can't seem to hook them up to the wireless network.  I know our security password, but I think the se

  • I can't sync my photos from my iMac IPhoto to my new iPad Air.

    I checked the albums to sync in iTunes and it says it is importing, but the albums don't appear on my iPad.  They did appear on iPhoto on my iPad, but I want them on my iPad Photos. App as albums.  I deleted iPhoto on my iPad and still nothing appear

  • Some Logic instruments/software synths didn't install...

    Did a full install of Logic Studio, literally everything, all locally stored on my MacBook Pro's hard disk. But it appears a few essential items didn't install, i.e. Hybrid Bas, some of the samples for the EXS24 library, etc. Thoughts? Other than tha

  • SPI communication with 93LC46 EEPROM

    Hello awesome NI readers, I've been trying to communicate with my 93LC46 EEPROM device via SPI but haven't had much success. I am using the NI USB-8451 to interface with it.  The 93LC46 device is active high for chip select so I used the "General SPI