Limitation of the App Scripts? By volume by number of invocations or calls...

I have a situation where I'm going to an auto attendant script with several menus and according to the chosen option, it will redirect you to the appropriate Department Routepoint. Also, the caller can call the local/long distance number that is mapped to the RPs to the Department or the Routepoint itself (for most of the internal people).

Each RP has a queue associated with. The flow of calls for all RPS is exactly the same. The only variation in the script is voicemail ext, name of the queue of the Department, guests etc. I can create a script, set all variables and when downloading in CRS Admin, can assign values to the parameters.

My question is, does the script no limitation in terms of number of calls they can handle? Which means, if I have a script to assign different parameters and if several callers call different departments, the same will triggered with different values of parameters of script, but it will crash after "x" number of calls or 'x' number of invocations?

Any ideas would be useful. Otherwise, I can copy the same script, rename and associate with his RP of the Department but if I make a change in one place, I have to change in other locations. My goal is to reuse code, to reduce to a minimum the number of scripts and create a single sophisticated script.

Thanks in advance for your comments.

Sunil

Sunil,

This should not be a problem. The only issue you might encounter would be with regard to the preparation of reports. You want to make sure that you are defining your types of appeal, after defining the routing logic you so that you can report on calls to every other Department.

Tags: Cisco Support

Similar Questions

  • My finished test of Lightroom I paid my subscription, but when I open the app it asks a registration number?

    My finished test of Lightroom I paid my subscription, but when I open the app it requires a registration number that I seem to be?

    Hi I worked it out - the problem is in fact that I had to remove the trial version of the app, I downloaded and re - download through the creative application of cloud - then he does not have a serial number. Thank you very much.

  • limits of the JSFL script element

    When I try to get the bounds of the element, element.width, element.left as well as element.top and element.height return the wildly incorrect numbers in JSFL scripts

    Thanks for sharing files. This seems to be a problem and we followed this bug internally for investigation.

    Thank you!

    Mohan

  • Limits of the blackBerry from the App on BB10?

    I currently have a Bold 9700 with OS6. I constantly get notifications to remove the apps there is not enough memory available to them. What are the limits in a BB10 environment?

    There is no such limits, install all the applications you need (but may not exceed 16 GB space )

  • volume of the app and persistent discs

    I have a clone-related persistent + pool

    now I start to use the Volume of the App and have a question

    I can use the persistent disk + accessible volume writable by uia

    or an accessible volume writable for the uia and profile persistent diskless

    accessible volume writable for the profile and persistent disk works together?

    Yes. As far as I know, manually migrate the data is the only option and I'm not aware of all the tools to automatically migrate the data into writable volumes.

  • Volumes of the App can be used without Horizon?

    Volumes of the app can be used without Horizon? It seems to be a case of using these features, not only for desktop computers. Say for R & D working with quick auto tests departments deploying the latest versions etc. Can a unique environment of vSphere be used? If so, these deployment tasks can be controlled by a PLC?

    Yes, and with other brokers. Volumes of app is also sold as a stand-alone product.

    More info in the FAQ.

    http://www.VMware.com/files/PDF/appvolumes/VMware-appvolumes-FAQ.PDF

  • How to create a default domain and deploy the app in jdeveloper using a script or code (not manually)

    Hello

    I installed Jdev using silent installation.

    Now I have some apps already created I want to create a default domain, and then to deploy apps in it through any script or ants?

    Can someone help me on this?

    Thank you and best regards,

    Vivek Pemawat

    Hi This worked for me I checked the log of the jdev, how he creates the domain and then using that I created the field

    I used the python script for deploying applications:

    Connect ('weblogic', 'welcome1 ','slc01fnw:7103 ')

    deploy (appName = ' Application13 ', path='/home/rasubra/jdeveloper/mywork/Application13/deploy/Application13_Project1_Application13.ear' target = 'DefaultServer')

    Exit()

    called using wlst.sh TestAppsDeploy.py

    Thanks for all the help!

  • Default preloader out limits the size of the app

    I have a Flex widget application that is loaded remotely when running into greater application Flex using SWFLoader. The widget is an application height and width of 100% x 100% and fills any container SWFLoader loading the application is in. Occasionally, the preloader for the widget will go beyond the limits of what the loading application set for her. In fact, it seems to take the size of Application Flex default of 500px X ~ 375px.

    What happens because I put widgets size 100% x 100%? Is the only way around that to have a width and height for the SWFLoader or the widget itself?

    Edit: That's it for Flex 3 (Flexbuilder 3, 3.5 SDK specifically).

    Could be difficult.  We do not know the dimensions of the SWF file to the first

    chassis is loaded and showing the preloader.  You can try resizing on the INIT

    event or perhaps ENTER_FRAME, but you might be better to disable the

    Preloader in the app widget or giving him a smaller size during the construction of the

    Widget SWF.

  • How to increase the control limits for the Audio Volume?

    I have upgraded my PC base unit and no longer have the output of the Speaker Volume I had before. The audio output is more silent than before with the same speakers I used. I have moved all the sliders on the control panel of the Volume on their maximum position, but still can't get enough of output to the speakers. The important thing is for my use are 'Volume Control' and 'Wave', and these are set to the maximum. Now I have a motherboard with Intel D845GERG2 Intel i845GE chipset. The operating system is Windows XP Professional SP3, as previously. The sound card is SoundMAX Integrated Digital Audio with Legacy audio drivers. I checked using Device Manager drivers and hardware to work properly. The problem is software because I can achieve the required high speaker volume if I use VLC Media Player and set the volume to 200%. With Windows Media Player, set the volume to 100% is sufficient. I'm looking to increase range parameter on the control panel of Volume as a general solution. Can you advise if this is possible? I looked at a few ideas, these courses: edit files (.inf) SoundMAX driver. Modify the registry keys concerned. Use different audio drivers (none seem to be available for my hardware). Install the software to boost the audio output (VLC Media Player should be achieve this somehow). Install alternative (rollback) Microsoft drivers. Any advice would be much appreciated.

    Just an update of my efforts on this issue.

    I revisited the audio registry settings SoundMAX for HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ \0005\Settings {4D36E96C-E325-11CE-BFC1-08002BE10318}. These are installed when you install the driver for SoundMAX Integrated Digital Audio. Changing these settings has already failed to get an increase of output audio volume. I have now found some settings of the value of these registry keys that have given me a satisfactory increase in the volume of the audio. In short, the cure for my situation was:

    The file source (wdm3516b_Cadenza.exe) driver available from the Download Center Intel is a self-extracting ZIP file. Unzip this file to a location convenient temporary store (C:\Temp)

    Use a text editor (Notepad) to edit the INF of the driver - in my case, it's "smwdmCH4.inf. Changes to this file cause the digital signature of the file to be invalid, but choose "Continue Anyway" to solve this problem during the installation of the driver. To increase the sound volume levels, the audio volume registry key value parameters that have been predefined 08 (hex) have been changed to 01 (hex). I suppose that this change dB levels produced by the SoundMAX Integrated Digital Audio.

    To install the new settings:

    Uninstall the SoundMAX Integrated Digital Audio hardware by using Device Manager.

    Restart the PC - this should give a "new hardware found" restart of the PC.

    Use Device Manager to reinstall the driver for SoundMAX Integrated Digital Audio. Do not use the automatic selections for this - run the installation process where you stored the INF driver edited file.

    Once installation is complete, a check on the properties of the device must indicate that the device is functioning properly.

    Use regedit to check that changes in the edited file driver INF appeared in the area of the Windows registry - in my case, it is HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {4D36E96C-E325-11CE-BFC1-08002BE10318} \0005\Settings.

    I will emphasize that it is NOT a recommended fix - it turns out that it worked for me. The usual caveats apply - save your original settings, or better yet, use software disk image to make a copy of your drive hard so that you go back to square one if she's going "pear-shaped" with adaptations that have been made.

  • Adobe Document Pro frozen by Java Script error.  How to completely remove the App (so that I can get a new clean version)

    I am running PS CC2015.

    I recently added Adobe Document Pro. He ran well for a short time, and I liked a lot.

    Then I did something, and I don't know what.  The next time I tried to use paper Pro, it has frozen and displayed a window saying "JavaScript error - file:\\\".

    I tried to delete the app and reload it, without success: same problem. PS closed, shut down computer, all to nothing does not.  I'm stuck with the same problem, I think that the problem lies elsewhere.

    Help!

    Bruce Shaw

    I found the solution.

    Recently, I had tried to add a few additional textures, but not him did not correctly. That's when the problem started.

    "Tonight, when I went into the menu Pro paper called" adds textures more ", I clicked on"default ". ------to see what would happen.

    Problem solved.

    Everything works now.

    Bruce Shaw

  • Cannot load sites http but https are ok - as impossible to connect to the App store

    Hi people, for the first time I have a serious problem with my Mac and 10.8.5 and I hope to find some help here.

    The problem:

    All of a sudden (no idea of what happened, why it happened) I can not open Web sites beginning with http, for example http://www.advrider.com

    The error message is: unable to connect

    However websites like Facebook, this forum etc i.e. all sites beginning with https://... properly.

    This is valid for Firefox and Safari.

    Thunderbird works fine but the I can't connect to the App store.

    The problem is that I don't know yet where to look to find the problem.

    I did some fishing (without a solution)

    -verification of DNS settings (use 8.8.8.8 and 8.8.4.4)

    -Clear cache

    -Re-install point AP

    -switch to another Wifi network (currently in a hotel and there are supposed to be two totally independent networks)

    -turned off the firewall

    n ' use a proxy

    My wife with El Capitan Mac works fine on the same network, but because I don't know what to look for, it makes it almost impossible to compare the settings one by one.

    No idea what to do?

    Post edited by: Kuhjunge - another mac works fine on the same network.

    Please read this message before doing anything.

    This procedure is a diagnostic test. It is unlikely to solve your problem. Don't be disappointed when you find that nothing has changed after you complete it.

    The test is intended to determine if the problem is caused by a third-party software that loads automatically at startup or logon, by a device, by a police conflict or corruption of system files or some system caches.

    Disconnect all devices wired except those required to test and remove all the expansion cards from secondary market, as appropriate. Start in safe mode and log on to the account of the problem.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for additional instructions.

    Safe mode is much slower to boot and run as normal, with limited graphics performance, and some things work at all, including an audio output and a Wi - Fi connection on some models. The next normal boot can also be a bit slow.

    The login screen is displayed even if you usually connect automatically. You need your password to log on. If you have forgotten the password, you will have to reset it before you begin.

    Test in safe mode. Same problem?

    After testing, restart as usual (not in safe mode) and make sure you always have the problem. View the results of the test.

  • When turn on the App Tabs?

    I checked the 'what are App Tabs?' and read the following descriptions:

    App Tabs will inform you with a blue highlight when they change.

    • If you have Gmail as a tab App, for example, and you use a different tab when a new message is received, your Gmail tab lights.

    I wonder the meaning of 'change' because after I pinned Weibo.com(largest in China's twitter-like site) as a tab App, new messages will not tab look different. So I would like to know if there is an API to do the job, or it's just the service customized for Web sites limited only by Firefox itself. Thank you!

    Quite simply, the blue highlight is caused by a change in title.
    It was a fix implemented in response to the bug "App Tabs should indicate the change in status in < title >".

    For evidence of the above, enter the code here JavaScript in the address bar and press ENTER.
    The App tab will then turn blue whenever it loses focus, until it is then regenerated.

    Brief explanation:
    The code adds an event listener to change the title of a random number whenever the tab is changed (ie. a blur of the event). The empty container sets the return value to the undefined, so the content of the document is not changed (it would be otherwise).
    JavaScript is a scripting language client (user-end) that may alter the HTML (Web site) for the duration of a single page-side (that is to say until a new page is loaded / the same page is reloaded) and is integrated in all popular browsers, as well as the ability to access through the ' javascript: ' Protocol address.

    In the case of weibo.com, you would do well to have a look at the extension greasemonkey for firefox, and either create your own script or to persuade a friendly JavaScript coder to make one for you, that changes the title whenever a new message is received.

  • Impossible to pass all the apps that require a connection

    I had this problem since the summer power on and off: as soon I to connect to update an application, the app store fails. My connection is fine and the update process starts, but closes unexpectedly after about 30 seconds telling me that I have to go to the "items purchased" (note to Apple the German translation is bad). Of course, even when I switch to the pane of purchases the problem persists. The same problem exists when trying to install all new elements it, even for free.

    Initially, I had this problem with XCode 7. I spent over an hour with telephone support from Apple to try to correct this there included removing and running traces. They let fall the ball for several weeks and when I get back in touch they had no solutlon. At some point in October, the seeming problem to resolve itself but reappeared since then and currently preventing me from updating to OS X 10.11.

    I enabled debug for the app store and tried the different options all to nothing does not. I don't see anything special except for "storedownloadd (488) deny/dev read-data file.

    Has anyone experienced something similar and managed to fix it?

    Please read this message before doing anything.

    This procedure is a test, not a solution. Don't be disappointed when you find that nothing has changed after you complete it.

    Step 1

    The goal of this step is to determine if the problem is localized to your user account.

    Select the feedback connections* and log in as a guest. Do not use the Safari connection only 'user comments' created by 'find my Mac '.

    While signed in as a guest, you will have access to your documents or settings. Applications will behave as if you use them for the first time. Do not be alarmed by this behavior; It's normal. If you need any password or other personal information in order to complete the test, save, print, or write them before you start.

    Test while signed in as a guest. Same problem?

    After testing, log on to the guest account and in your own account, disable it if you wish. The files that you created in the guest account will be automatically deleted when you log out of it.

    * Note: If you have enabled 'find my Mac' or FileVault, then you cannot activate the guest account. The login 'User comments' created by 'Find my Mac' is not the same. Create a new account to test and delete it, including his home folder, after testing.

    Step 2

    The goal of this step is to determine if the problem is caused by changes in the system of third party that load automatically at startup or logon, by a device, by a police conflict or corruption of system files or some system caches.

    Please take this step regardless of the results of step 1.

    Disconnect all devices wired except those required to test and remove all the expansion cards from secondary market, as appropriate. Start in safe mode and log on to the account of the problem.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for additional instructions.

    Safe mode is much slower to boot and run as normal, with limited graphics performance, and some things work at all, including an audio output and a Wi - Fi connection on some models. The next normal boot can also be a bit slow.

    The login screen is displayed even if you normally connect automatically. You need your password to log on. If you have forgotten the password, you will have to reset it before you begin.

    Test in safe mode. Same problem?

    After testing, restart as usual (not in safe mode) and make sure you always have the problem. View the results of steps 1 and 2.

  • How to move the ends of the lines slanted towards the limits of the purge

    Hi all

    I developed a script that deletes the page elements to the purge. To achieve this, that I collect all the elements of the page (with the exception of text blocks) located partially on the editing table, create a temporary mask and 'trim' with subtraction of Pathfinder function. However, this approach does not work with graphic lines so I'm trying to move the ends of the lines to the limits of the substantive area lost. (I guess these are simple straight lines consisting of two end points).

    screengrab.png

    I knew how to deal with orthogonal lines - it's pretty easy:

    if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
         path = theItem.paths[0];
         if (path.pathPoints.length === 2) {
              ep = path.entirePath;
              w = ep[1][0]-ep[0][0];
              h = ep[1][1]-ep[0 ][1];
              
              if (w > h) {
                   newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                   path.entirePath = newEp;
              }
              else if (h > w) {
                   newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                   path.entirePath = newEp;
              }
         }
    }
    

    This moves A1 - A2, B1 , B2, C1 , C2, D1 to D2.

    But how to treat skewed lines? How to calculate the coordinates of the point E2 and F2? Y at - it a magic formula? Or can someone point me to the right direction: for example a book to read?

    I assume this has something to do with geometry/trigonometry, but I haven't studied this kind of things at school. (I graduated from an art school - designed to draw naked models instead).

    If someone will answer my question, please do it on basic level since I'm a total noob in the present.

    Here's the script:

    if (Number(String(app.version).split(".")[0]) == 7) ErrorExit("This script can't work with InDesign CS5 so far.", true);
    
    var doc = app.activeDocument;
    var spreadBounds, spreadWithBleedBounds, gPartiallyOutOfSpreadItems;
    var ungroupErrors = 0;
    
    var originalHorUnits =  doc.viewPreferences.horizontalMeasurementUnits;
    var originalVerUnits =  doc.viewPreferences.verticalMeasurementUnits;
    doc.viewPreferences.horizontalMeasurementUnits = doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.INCHES;
    doc.viewPreferences.rulerOrigin = RulerOrigin.spreadOrigin;
    doc.zeroPoint = [0, 0];
    
    if (doc.layers.itemByName("Temporary Layer") == null ) {
         var tempLayer = doc.layers.add({name:"Temporary Layer"});
    }
    else {
         var tempLayer = doc.layers.itemByName("Temporary Layer");
    }
    
    UngroupAllGroups(doc.groups);
    
    DeleteObjectsOnPasteboard();
    ProcessSpreads(doc.spreads);
    ProcessSpreads(doc.masterSpreads);
    
    tempLayer.remove();
    
    doc.viewPreferences.horizontalMeasurementUnits = originalHorUnits;
    doc.viewPreferences.verticalMeasurementUnits = originalVerUnits;
    
    var msg = (ungroupErrors > 0) ? " Failed to ungroup " + ungroupErrors + " groups since they are too large." : "";
    alert("Done." + msg, "Trim Pages Script");
    
    //================================== FUNCTONS ===========================================
    function ProcessSpreads(spreads) {
         var spread, path, ep, w, h;
         for (var s = 0; s < spreads.length; s++) {
              spread = spreads[s];
              spreadBounds = GetSpreadBound(spread, false);
              spreadWithBleedBounds = GetSpreadBound(spread, true);
              
              gPartiallyOutOfSpreadItems = GetPartiallyOutOfSpreadItems(spread);
              
              var theItem, theMask, newItem;
              for (var i = gPartiallyOutOfSpreadItems.length-1; i >= 0; i--) {
                   theItem = gPartiallyOutOfSpreadItems[i];
                   if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
                        path = theItem.paths[0];
                        if (path.pathPoints.length === 2) {
                             ep = path.entirePath;
                             w = ep[1][0]-ep[0][0];
                             h = ep[1][1]-ep[0 ][1];
                             
                             if (w > h) {
                                  newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                                  path.entirePath = newEp;
                             }
                             else if (h > w) {
                                  newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                                  path.entirePath = newEp;
                             }
                        }
                   }
                   else {
                        theMask = CreateMask(spread);
                        try {
                             newItem = theMask.subtractPath(theItem);
                        }
                        catch (err) {
                             $.writeln("2 - " + err);
                             theMask.remove();
                        }
                   }
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function IsPartiallyOutOfSpread(pageItem) {
         var result = false;
         if (pageItem.constructor.name == "TextFrame" ||
              pageItem.constructor.name == "Group" ||
              pageItem.parent.constructor.name == "Group")
         {
              return result;
         }
    
         var visBounds = pageItem.visibleBounds;
         if (visBounds[0] < spreadBounds[0] && visBounds[2] > spreadBounds[0] ||
              visBounds[1] < spreadBounds[1] && visBounds[3] > spreadBounds[1] ||
              visBounds[2] > spreadBounds[2] && visBounds[0] < spreadBounds[2] ||
              visBounds[3] > spreadBounds[3] && visBounds[1] < spreadBounds[3]  ) {
              result = true;
         }
         return result;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetSpreadBound(spread, bleed) { // including bleed -boolean
         if (bleed == undefined) bleed = false;
         
         with (doc.documentPreferences) {
              var topBleed = documentBleedTopOffset
              var leftBleed = documentBleedInsideOrLeftOffset;
              var bottomBleed = documentBleedBottomOffset;
              var rightBleed = documentBleedOutsideOrRightOffset;
         }
    
         var bFirst = spread.pages.item(0).bounds; // bounds of the first page
         var bLast = spread.pages.item(-1).bounds; // bounds of the last page
         return [     ((bleed) ? bFirst[0]-topBleed : bFirst[0]), 
                        ((bleed) ? bFirst[1]-leftBleed : bFirst[1]), 
                        ((bleed) ? bLast[2]+bottomBleed : bFirst[2]), 
                        ((bleed) ? bLast[3]+rightBleed : bLast[3])
                        ];
    }
    //--------------------------------------------------------------------------------------------------------------
    function CreateMask(spread) {
         var unitValue = new UnitValue (app.pasteboardPreferences.minimumSpaceAboveAndBelow, "mm");
         var unitValueAsInch = unitValue.as("in");
         var outerRectangleBounds = [spreadWithBleedBounds[0]-unitValueAsInch, 
                                                                spreadWithBleedBounds[1]-8.07, 
                                                                spreadWithBleedBounds[2]+unitValueAsInch, 
                                                                spreadWithBleedBounds[3]+8.07
                                                                ]; 
    
         var outerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:outerRectangleBounds});
         var innerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:spreadWithBleedBounds, fillColor:doc.swatches.item("Black"), fillTint:30});
         var mask = outerRectangle.excludeOverlapPath(innerRectangle);
         return mask;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetPartiallyOutOfSpreadItems(spread) {
         var allPageItems = spread.allPageItems;
         var partiallyOutOfSpreadItems = [];
         var currentItem;
         
         for (var i = 0; i < allPageItems.length; i++) {
              currentItem = allPageItems[i];
              if (IsPartiallyOutOfSpread(currentItem)) partiallyOutOfSpreadItems.push(currentItem);
         }
         
         return partiallyOutOfSpreadItems;
    }
    //--------------------------------------------------------------------------------------------------------------
    function DeleteObjectsOnPasteboard() {
         var objs = app.documents[0].pageItems.everyItem().getElements();
         while (obj=objs.pop()) {
              try {
                   if(obj.parent instanceof Spread || obj.parent instanceof MasterSpread){ obj.remove() }
              }
              catch(err) {
                   //$.writeln("2 - " + err);
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function ErrorExit(myMessage, myIcon) {
         alert(myMessage, "Trim Pages Script", myIcon);
         exit();
    }
    //--------------------------------------------------------------------------------------------------------------
    function UngroupAllGroups(groups) {
         for (var i = groups.length-1; i >= 0; i--) {
              var gr = groups[i];
              if (gr.groups.length > 0) {
                   var subGroups = [];
                   for (var j = gr.groups.length-1; j >= 0; j--) {
                        subGroups.push(gr.groups[j].id);
                   }                    
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              
                   for (var k = subGroups.length-1; k >= 0; k--) {
                        try {
                             doc.groups.itemByID(subGroups[k]).ungroup();
                        }
                        catch(err) {
                             //$.writeln("2 - " + err);
                             ungroupErrors++;
                        }
                   }
              }
              else {
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              }
         }     
    }
    //--------------------------------------------------------------------------------------------------------------

    Thanks in advance.

    Kasyan

    Hi Kasyan!

    I was not trying to integrate this into your script, so you may need to adjust a little. The trick is to define a function that detects the point of intersection of two lines - and, of course, you must call it for lines that will not fail to cross the border of the page! (Otherwise, it would simply expand * any * the line upward and on the border.)

    I think it would be wise to predict a small mistake for lines that seem to run "up to" the edge of the page - I tested a line for 'x '.<= 0"="" on="" a="" line="" that="" appeared="" to="" start="" on="" 0;="" the="" control="" panel="" told="" me="" so.="" however,="" i="" didn't="" type="" that="" 0="" in;="" i="" dragged="" the="" line="" to="" the="" edge.="" apparently,="" it="" was="" *not*="" at="" precisely="" "0mm",="" but="" something="" like="" "0.001mm",="" because="" the="" script="" simply="" didn't="" "see"="" the="">

    My function comes from this page: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/ and I did not test it does of orthogonal lines

    (but of course, you could add this in exceptional cases), and it's my script extending the line, with a small wrapper to configure things.

    The function tests * any * tail against * any * other line, so if we meet the page bounding box, I get the intersection with the purge of the side area where it crosses the bbox page.

    line = app.selection[0];
    // pg size in "regular" [y1,x1, y2,x2] format
    pagebbox = [0,0, app.activeDocument.documentPreferences.pageHeight,app.activeDocument.documentPreferences.pageWidth ];
    bleedDist = 5; //
    bleedbbox = [ pagebbox[0] - bleedDist, pagebbox[1] - bleedDist, pagebbox[2] + bleedDist, pagebbox[3] + bleedDist ];
    pt1 = line.paths[0].pathPoints[0].anchor;
    pt2 = line.paths[0].pathPoints.lastItem().anchor;
    // Start point:
    if (pt1[0] <= pagebbox[1] || pt1[0] >= pagebbox[3] ||
     pt1[1] <= pagebbox[0] || pt1[1] >= pagebbox[2])
    {
     if (pt1[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt1[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt1[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt1[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints[0].anchor = intersectPt;
    }
    // End point:
    if (pt2[0] <= pagebbox[1] || pt2[0] >= pagebbox[3] ||
     pt2[1] <= pagebbox[0] || pt2[1] >= pagebbox[2])
    {
     if (pt2[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt2[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt2[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt2[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints.lastItem().anchor = intersectPt;
    }
    
    function IntersectionPt (ln1, ln2)
    {
     var ua;
     var x1 = ln1[0][0], x2 = ln1[1][0], x3 = ln2[0][0], x4 = ln2[1][0];
     var y1 = ln1[0][1], y2 = ln1[1][1], y3 = ln2[0][1], y4 = ln2[1][1];
     ua = ((x4 - x3)*(y1 - y3) - (y4 - y3)*(x1 - x3))/((y4 - y3)*(x2 - x1) - (x4 - x3)*(y2 - y1));
    
     return [ x1 + ua*(x2-x1), y1 + ua*(y2-y1) ];
    }
    
  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

Maybe you are looking for