JavaScript, script working almost help returns something weird

Hi scripters,.

I work almost Javascript Variable to inDesign who kindly gave to me (see below) I know very very little JavaScript and I almost got this job I just need help.

The script returns the size of the document and the unit of measurement to a variable, but my goal was to get the unit of measure to be abbreviated (IE; Mm mm)

It works, but it also returns a weird thing in front of mm (NaN).

Screen Shot 2016-01-04 at 12.54.43.png

function toTitleCase(s) {  
    return s.toLowerCase().replace(/\b\w/g, function () {return arguments[0].toUpperCase()});

function getPageDimentions(page){  
    var width, height, bounds, units, abbr, decPlaces;  
    // function presumes that normal pages  
    // i.e. same vertical and horizontal and no page shape transformations  
    decPlaces = 3;  
    units = toTitleCase(page.parent.parent.viewPreferences.horizontalMeasurementUnits.toString()); // If you forgot to include the toTitleCase function then remove the method  
    abbr = UnitValue(units);
    bounds = page.bounds;  
    height = bounds[2] - bounds[0];  
    height = myRound(height, decPlaces);  
    width = bounds[3] - bounds[1];  
    width = myRound(width, decPlaces);     
    return height + " x " + width + " " + abbr 

Any help would be greatly appreciated!

Scott

Hi Scott,.

you have not provided the script. And some closing hooks are missing as well.

However, the point is, that you use:

abbr = UnitValue(units);

Instead of:

abbr = UnitValue(units).type;

like Marc suggested this other thread.

Uwe

Tags: InDesign

Similar Questions

  • JavaScript script works correctly on all web browsers outside Firefox (the script no longer works correctly updated after FF).

    Hello

    script work correctly on all web browsers. Unfortunately after (probably) last update Firefox stopped handling with it.

    Script is part of the popular based on MyBB forum (http://www.mybb.com/). I put a screenshoot below, which should easily show how the script worked.

    http://screenshooter.NET/data/uploads/UG/TG/Dyre.jpg

    After clicking on any icon (e.g. "BOLD" 'B'), it shows "[undefined = undefined]" and then clicking on shows no effect.

    Errors of "Console of WWW" after clicking on icon:
    TypeError: mnu is undefined - line 641
    TypeError: tag is undefined - line 1163

    I posted here the problematic script:
    http://pastebin.com/D8HmLEKK

    Best regards!

    See [939971/questions/939971]

  • Script working but need help tweaking

    Add-pssnapin VMware.VimAutomation.Core

    # Set the user name and password
    $cred = get-VICredentialStoreItem - e:\powershell\cred2 file


    # Configuration connecting to VIServer
    to connect-VIServer-Server $cred. Home - user $cred. Username-password $cred. Password

    # Set the Date time and name of the file
    $date = get-date
    $datefile = get-date - uformat ' %m-%d - %Y '
    $filename = "E:\Powershell\Stage_patching_list_" + $datefile + ".csv".

    # Create list of servers to patch
    $report = @)
    Get-file DOSSIER0, Folder1, Folder2, Folder3. Get - VM | %{
    $vm = $_ | Get-View
    $row = "" | Select name, State, status, host, CPU_Allocated, RAM_Allocated, LastReboot, LastPatchApplied, restarted, questions
    $row. Name = $_. Name
    $row. State = $_. PowerState
    $row. Status = $vm. Summary.OverallStatus
    $row. Host = $_. VMHost
    $row. CPU_Allocated = $_.numcpu
    $row. RAM_Allocated = $_.memorymb
    $LastBoot = [System.Management.ManagementDateTimeConverter]: ToDmtfDateTime ((get-WmiObject win32_operatingsystem-ComputerName $row..)) LastBootupTime name))
    $row. LastReboot = $LastBoot
    $LastPatch = get-WmiObject Win32_QuickFixEngineering - ComputerName $row. Name |? { $_. InstalledOn} | Sort installedon | Select - last # 1 | FT hotfixid, installedon
    $row. LastPatchApplied = $LastPatch
    $row. Restarted = "YES/NO".
    $row. Questions = "YES/NO".
    $report += $row
    }

    # End of the Session on the server
    disconnect-viserver-confirm: $false

    # Creat file separated from Coma
    $report | Export-Csv $filename - NoType-Force

    # Create the e-mail message
    $server = "mail.xata.com".
    $port = 25
    $to = 'somebody @somewhere.com'.
    $from = Server@somewhere.com
    $subject = "list of servers to patch of scene.
    $body = "If you please see the attached file. TEXT TEXT TEXT TEXT.
    $message = New-Object system.net.mail.MailMessage $from, $to, $subject, $body

    # Create SMTP client
    $client = New-Object system.Net.Mail.SmtpClient $server, $port

    # Try to send the message
    try {}
    $message. IsBodyHTML = $true
    $attachment = new-object Net.Mail.Attachment ($filename)
    $message.attachments.add ($attachment)

    # Send message
    $client. Send ($message)
    }

    # Catch failed message
    catch {}
    "Exception caught in CreateTestMessage1():
    }

    The script works when I run it manually (comment out the snap) but I see errors of authentication on the cli. Especially the "Get-WmiObject: access denied." (Exception from HRESULT: 0 x 80070005 (REFUSAL of E_ACCESS)) "error. However the CSV fills all information as if there was no error at all. We would like to have this race on a scheduler for our patch dates. I wonder if the mistakes that showup in powerCLI will prevent a scheduled task to complete? Also is there a way to fix those problems, we run the script as a user with local administrative privileges on the servers the script controls. I tried - authentication 6 - enableallprivaleges and a crowd of other google answers. None of them have corrected the problem. However its confusing that it always returns the correct information.

    Is there a better way to do it? Is there a cleaner way to encode the script? Is last question possible to change the output of "Get-WmiObject Win32_QuickFixEngineering. - ComputerName $row Name |? { $_. InstalledOn} | Sort installedon | Select - last # 1 | "" hotfixid ft, installedon ' of '.

    \\Server\root\cimv2:Win32_QuickFixEngineering.HotFixID="KB2624667",ServicePackInEffect="SP3"to something a bit more readable like "Latest Patch = KB2624667"? We don't need the service pack information.

    I've tinkered with that many other scripts into a workable script that does what we want, I wonder if there is a way to clean. Thanks for looking and taking the time to answer.

    I dug a little deeper, and it seems that the InstalledOn property is different on a Windows 2008 host compared to a Windows 2003 or Windows 2008 R2 host.

    This led me to the following code.

    # Create Server List for Patching $report = @()
    foreach($vm in Get-VM){
        $row = "" | Select Name, State, Status, Host, CPU_Allocated, RAM_Allocated, LastReboot, LastPatchApplied, LastPatchDate, Rebooted, Issues
        $row.Name = $vm.Name
        $row.State = $vm.PowerState
        $row.Status = $vm.ExtensionData.Summary.OverallStatus
        $row.Host = $vm.VMHost
        $row.CPU_Allocated = $vm.numcpu
        $row.RAM_Allocated = $vm.memorymb
        $row.LastReboot = [System.Management.ManagementDateTimeConverter]::ToDateTime((Get-WmiObject win32_operatingsystem -cn $row.Name).lastbootuptime)
        $lastPatch = Get-WMIObject Win32_QuickFixEngineering -ComputerName $row.Name |
            where {($_.psBase.properties["InstalledOn"].Value).Length -gt 0} |
            Sort-Object -Property {
                if($vm.Guest.GuestId -eq "WinLonghornGuest"){
                    $_.InstalledOn
                }else{
                    [datetime]($_.psbase.Properties["InstalledOn"].Value)
                }
            } |
            Select -Last 1    $row.LastPatchApplied = $lastPatch.HotfixId
        if($vm.Guest.GuestId -eq "WinLonghornGuest"){
            $row.LastPatchDate = $lastPatch.InstalledOn
        }
        else{
            $row.LastPatchDate = $lastPatch.psbase.Properties["InstalledOn"].Value
        }
        $row.Rebooted = "YES/NO"    $row.Issues = "YES/NO"    $report += $row}
    $report # End the Session on the Server
    

    If it is a Windows 2008 Server, the date is there in clear text for Windows 2003 and Windows 2008 R2, to use the trick of PSBase.

    On the Sort-Object, I use a codeblock to set the sort value, and in there, I can test what OS we are dealing with.

    In the same way I fill the $row. Property of LastPatchDate.

  • Whenever my google instant not working, and I type something,... something called * research * starts to download using my download manager! English help

    Whenever my google instant not working, and I type something,... something called * research * starts to download using my download manager! help

    See also:

    Create a new profile as a test to see if your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If this new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • Does anyone know why these garbage Adobe CC is not open on weekends? We all sit and wait for these people to return to work to help us to fix their JUNK?

    Does anyone know why these garbage Adobe CC is not open on weekends? We all sit and wait for these people to return to work to help us to fix their JUNK?

    If you go to the forum to your specific program and ask a question, with all the relevant details, someone may be able to help

    Forum of https://forums.adobe.com/thread/1929760 to find a forum for your program list

    -or directly to the https://forums.adobe.com/welcome Forum Index

  • Please help improve the JavaScript script

    Please help improve the JavaScript scriptA.JPG

    Hello

    to increase or decrease the height of a subform, you use the following syntax in the click of + and - button

    cmdAdd::JavaScript

    _Row1.addInstance (1);

    var b is parseFloat (Subform3.h) - 6.5;.

    If (b<>

    b = 0;

    }

    Subform3.h = b + "mm";

    cmdRemove::JavaScript

    If (_Row1.count > 1) {}

    var b is parseFloat (Subform3.h) + 6.5.;

    Subform3.h = b + "mm";

    _Row1.removeInstance (this.parent.index);

    }

    This should do the trick, I hope this will help you

  • I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.

    I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.  I am a novice using Javascript, so what am I doing wrong?

    Cannot use either addWatermarkFromFile or addWatermarkFromText methods of document with player as shown in the documentation. You can hide/display the form fields and the existing layers, so consider this approach.

  • JavaScripts stop working on another computer

    Recently purchased Acrobat DC through my school. I was with Acrobat X to create everything. Writing javascripts (and even received help here before), and it worked fine.

    Needed to update a PDF Kit we use regularly. It uses form fields in duplicate, document level scripts and scripts of computation of field.

    Kit #1 - still works. No problem there.

    Kit #2 - uses the same scripts. Not working no javascripts.

    script hide/show-2 radio buttons has been added.

    -I used the new feature to hide and show fields under mouse actions first. When this does not work, I went to a javascript.

    -Kits were created on my computer at home. (I better work from home and have more time. In addition, they don't give me the full version to work. "This is the military, long story.)

    -He sent to my work computer, bam, nothing works.

    Here, is the fun part; It works fine on my home computer. While at work the oldest kit still works, so that the new work not at all. As a reminder, the scripts are the same. Acrobat says he's able to be read by all versions at a time.

    DC Pro: Build 006.30174

    Drive home: XI player

    Drive to work: DC

    So, what do you think? I'm puzzled.

    Yes. Work email has been stripping on the javascript. It is the question. Almost a whole week of crazy and it's something simple.

  • Simple Script to Calc custom, returning the odd value

    Hi all

    I'm not really familiar with Javascript and I'm checking here something simple.

    ----------

    Event.Value = (this.getField("Applicant_1").value + this.getField("Bonuses").value + this.getField("Commissions").value + this.getField("Dividends_Interest").value + this.getField("Net_Rental_Income").value + this.getField("OtherBefore_1").value + this.getField("OtherBefore_10").value + this.getField("OtherBefore_4").value + this.getField("OtherBefore_7").value + this.getField("Overtime").value)

    ------


    As long as I put a value in all the fields, it works very well. If I leave a field in the empty middle, my return value is really wide. By example, if I provide the value of '1' for overtime, bonuses and commissions, and leave the rest blank, my returned value will be 111.

    Any help on this would be greatly appreciated. Thank you!

    The reason for that is what happens when you get the value of an empty field, it returns an empty string. The operator '+' is used in JavaScript for digital addition and string concatenation, please make sure to ecxplicitly to convert the field value to numbers before adding them together. IF the script could be modified to:

    (function () {}

    Get the field values as numbers

    var v1 = + getField("Applicant_1").value;

    var v2 = + getField("Bonuses").value;

    var v3 = + getField("Commissions").value;

    var v4 = + getField("Dividends_Interest").value;

    V5 var = + getField("Net_Rental_Income").value;

    var V6 = + getField("OtherBefore_1").value;

    v7 var = + getField("OtherBefore_10").value;

    var V8 = + getField("OtherBefore_4").value;

    var = v9 + getField("OtherBefore_7").value;

    V10 var = + getField("Overtime").value;

    Calculate the sum

    Event.Value = v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8 + v9 + v10;

    })();

  • FINSObj_Mgr component to show something weird.

    Hello
    I already install the server, the gateway and the DB, including the configuration. After the final step in applying the SWSE, I try to log into the Login Page, but I encounter error
    on my IE display
    The server you are trying to access is either busy or are experiencing difficulties. Please close the Web browser, open a new browser and try to connect again. [19: 59:40]
    I know that the Web server is running already, and the DB is too, could Tnsping, ODBCSQL and srvrmgr. When I look in the logfile FINSObj_Mgr I found this error. I already check the fins.cfg files and the eapps for something weird. But no result.
    Here is the FINSObj_Mgr file.

    Thanks in advance

    ===========================================================================================================
    MessageFlow MsgFlowDetail 4 000000134fa3101b:0     2012-05-04 20:08:08 15: SessionHandleMsg (2) call for task 12582922, pErrStack = 0x00fa4c18
    Info ObjMgrMemProfileLog 4 000000134fa3101b:0     2012-05-04 20:08:08 waiting: initialized.
    ScfEventLog SubEvtFacInfo 3 000000134fa3101b:0     2012-05-04 20:08:08 user task set event triggered task 12582922
    Retail ObjMgrLog 4 000000134fa3101b:0     2012-05-04 20:08:08 reading since the name server .cfg file.
    SecAdptLog API Trace 4 000000134fa3101b:0     2012-05-04 20:08:20 DB initialize security card.
    SecAdptLog API Trace 4 000000134fa3101b:0     2012-05-04 20:08:20 DB SecurityLogin with username = SADMIN, parameters = 3835508.
    Error ObjMgrLog 1 000000134fa3101b:0     2012-05-04 20:08:21 (oracon.cpp (3211)) SBL-DBC-00107: year Oracle database Error error occurred.

    If please continue or ask your system administrator to verify the configuration of your application if the problem persists.
    SecAdptLog API Trace 4 000000134fa3101b:0     2012-05-04 20:08:21 DB user security to connect to SBLPERFET_DSN DB with username = SADMIN returns err 7733355 and 39cf040 connection.
    SecAdptLog API Trace 4 000000134fa3101b:0     2012-05-04 20:08:21 DB user security remove DB connectoin 39cf040
    GenericError 1 000000134fa3101b:0 GenericLog     2012-05-04 20:08:21 (secmgr.cpp (2679) err = 4597538 sys = 0) SBL-SEC-10018: year Oracle database Error error occurred.

    If please continue or ask your system administrator to verify the configuration of your application if the problem persists. (SBL-DBC-00107)
    ORA-12154: TNS: could not resolve the connect identifier specified


    GenericError 1 000000134fa3101b:0 GenericLog     2012-05-04 20:08:21 (secmgr.cpp (2751) err = 4597521 sys = 0) SBL-SEC-10001: an internal error occurred in the Siebel application authentication subsystem. Please contact your system administrator for assistance.
    Error ObjMgrSessionLog 1 000000134fa3101b:0     2012-05-04 20:08:21 (physmod.cpp (9330)) SBL-DAT-00565: an internal error occurred in the Siebel application authentication subsystem. Please contact your system administrator for assistance.
    Error ObjMgrSessionLog 1 000000134fa3101b:0     2012-05-04 20:08:21 (model.cpp (5890)) SBL-DAT-00565: an internal error occurred in the Siebel application authentication subsystem. Please contact your system administrator for assistance.
    ObjMgrSessionLog ObjMgrLogin 3 000000134fa3101b:0     2012-05-04 20:08:21 connection failed for login name: SADMIN
    ObjMgrBusServiceLog create 4 000000134fa3101b:0     2012-05-04 20:08:22 business Service "Execution of Script Smart cleaning" was created at a 3, 48368
    ObjMgrBusServiceLog create 4 000000134fa3101b:0     2012-05-04 20:08:22 business Service "Execution of Script Smart cleaning" (address: '3a 48368') has been registered in the model "1055eb8" session "
    InvokeMethod 4 000000134fa3101b:0 ObjMgrBusServiceLog     2012-05-04 20:08:22 start: Business Service 'Execution of Script Smart cleanup' call the method: 'Cleaning' to 3a 48368
    InvokeMethod 4 000000134fa3101b:0 ObjMgrBusServiceLog     2012-05-04 20:08:22 business Service "Execution of Script Smart cleaning" method 'Clean' Execute call time: 0.000 seconds.
    InvokeMethod 4 000000134fa3101b:0 ObjMgrBusServiceLog     2012-05-04 20:08:22 end: Business Service 'Execution of Script Smart cleanup' call the method: 'Cleaning' to 3a 48368
    Delete ObjMgrBusServiceLog 4 000000134fa3101b:0     2012-05-04 20:08:22 business Service "Execution of Script Smart cleaning" (address: '3a 48368') has been unregsitered to the model "1055eb8" session "
    Delete ObjMgrBusServiceLog 4 000000134fa3101b:0     2012-05-04 20:08:22 business Service "Execution of Script Smart cleaning" has been deleted to 3a 48368
    Error ObjMgrCTLog 1 000000134fa3101b:0     2012-05-04 20:08:22 (ctxtmgr.cpp (4504)) SBL-SVC-00208: Please first login.
    ObjMgrSessionLog ObjMgrLogin 3 000000134fa3101b:0     2012-05-04 20:08:22 [logout] TriggerCTEvents - Timeout event has failed with error = 10879184
    Delete ObjMgrBusServiceLog 4 000000134fa3101b:0     2012-05-04 20:08:22 business Service "has been deleted at f74fdc38
    Info ObjMgrLog 3 000000134fa3101b:0     2012-05-04 20:08:22 (modpref.cpp (949)) SBL-DAT-50806: SavePreferences: / dbzp/siebel/uniperf02/siebsrvr/bin/Siebel Financial Services.spf: Save is not necessary. Preferences are not dirty.
    Delete ObjMgrBusServiceLog 4 000000134fa3101b:0     2012-05-04 20:08:22 business Service "has been deleted at f74fddb8
    MessageFlow MsgFlowDetail 4 000000134fa3101b:0     2012-05-04 20:08:22 15: back from SessionHandleMsg (2) for the task 12582922, pErrStack = 0x00fa4c18
    MessageFlow MsgFlowDetail 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: worker ProcessMessage() will cover 0x00f5b800, pErrStack = 0x00fa4c18
    TaskEvents SessionClose 3 000000164fa32fb5:0     2012-05-04 20:08:22 customer closed session (taskId = 12582922)
    MessageFlow MsgFlowDetail 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: SessionCloseReq (3) received for task 12582922, call SessionCleanup() (pErrStack = 0x00fa4c18)
    MessageFlow MsgFlowDetail 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: SessionCloseAck (3) Envoy for task 12582922 (pErrStack = 0x00fa4c18)
    MessageFlow MsgFlowDetail 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: call SessionCleanup for task 12582922, pErrStack = 0x00fa4c18
    MessageFlow MsgFlowDetail 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: back from SessionCleanup for the task 12582922, pErrStack = 0x00fa4c18
    Trace SmiLayerLog 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: CleanupTask (0, < NULL >, true)
    TaskCounters TaskCountInfo 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: DecRunningTasks() nRunning = 0, m_mLowThresh = 0, m_nRunning = 0
    TaskCounters TaskCountInfo 4 000000164fa32fb5:0     2012-05-04 20:08:22 15: DecActiveTasks() nActive = 0


    ============================================================================================================

    Joey,

    Weird error in fact, it may be a discrepancy between the information contained in the customer oracle and siebel. Here are a few files, you can check:

    tnsnames.ora
    . ODBC.ini (folder/dbzp/siebel/uniperf02/siebsrvr/sys)
    file siebns.dat

    If you can't find something wrong, send the following:

    -Architecture and operating system version
    Siebel - version
    -Version of the oracle client
    -Version of the oracle DB server
    -odbcsql output (hide the password)
    -srvrmgr output (hide the password)
    -output of env
    -content of the. odbc.ini file
    -content of the tnsnames.ora
    -output of command srvrmgr: DSConnectstring param for subsystem named serverdatasrc the list

    Thank you

    Wilson

    Edited by: WSiebel may 4, 2012 09:52

    Edited by: WSiebel may 4, 2012 09:52

  • TCL Script work until it gets recorded

    Hello!

    I'm fumbling my way through TCLtrying to meet a need.

    I had an EEM script that would daily pull into a file via TFTP and apply the content of this file. It's the different ACL update daily automatically. It worked well except that every day, he created a version of config, meaing my off the Strip frames and my LMS withdrew in a new copy of the configuration of all day even when nothing has really changed, but the ACL file has been updated. The most effective use of resources.

    I created a TCL script that does the following. Takes an argument passed, uses to create a path, and download a Flash file.

    He MD5s queue and compares it to the eve of the downloaded file's MD5. If the MD5s are equal, does nothing and quit unexpectedly. If they are different, the commands in the file are applied and removed in flash.

    The script works very well using tclsh:

    VID - RTR # tcltest.tcl VID - ACL.txt
    VID - ACL.txt

    VID - RTR #.
    23507465: 16:55:12.669 on April 26: signature of downloaded file ACL is identical to the previous. No changes. Deletion of source file

    I'm trying to save the script and most of the commands does not work. More specifically, the exec commands. I managed to get the hourly part of it worked to test, I used this:

    : cisco::eem:event_register_none

    What I've read, to do with the script being not approved and running in Safe-TCL mode. I ask for help. How can I convert this script in a script which will be executed via cron per day and get the same results?

    Define ACLFile «»
    Set oldmd5 «»

    If {$: argc > 0} {d
    Set ACLFile $argv
    } else {}
    does 'No success of ACL, outgoing Filename'
    breaking
    }

    puts $argv

    exec "enable."
    exec ' copy tftp://192.168.101.179/$ACLFile flash:

    If {[file exists "flash: $ACLFile ']} {}

    } else {}
    puts "file not downloaded, an abortion!"
    breaking
    }

    If {!} [There is file 'flash: md5old.txt']} {}
    Define sysout [open "syslog:" 'w']
    puts $sysout {file not found, variable settting = 0}
    close $sysout
    Set oldmd5 "0".
    } else {}
    set fin [open "flash: md5old.txt' 'r']
    Set oldmd52 [read $fIN]
    Set oldmd5 [string trim $oldmd52]
    close $fIN
    }

    the value fo [open "flash: md5old.txt' 'w']
    adjust the input setting [exec "check /md5 flash: $ACLFile ']
    All RegExp - nocase {= ([a-f0-9] {32})} $input matched md5
    #puts ' NewMD5: ^ $md5 ^ '.
    puts $fo $md5
    close $fo

    If {[string equal $oldmd5 $md5]}}
    Define sysout [open "syslog:" 'w']
    puts $sysout {ACL downloaded signature file is the same as the previous one.} No changes. Deletion of source file}
    close $sysout
    exec "delete flash: $ACLFile.
    } else {}
    Define sysout [open "syslog:" 'w']
    puts $sysout {file ACL found updates. Applying the config and removing the file source...}
    exec ' copy flash: running-config $ACLFile.
    exec "copy run start".
    close $sysout
    exec "delete flash: $ACLFile.
    }

    This command is interactive.  Then you need to either set "fast file calm" or interact with the guests using cli_read_pattern and cli_write.

    cli_write $cli (fd) ' copy tftp://192.168.101.179/$ACLFile flash:

    cli_read_pattern $cli (fd) '192.168.101.179 '.

    cli_write $cli (fd) '\r '.

    ...

    Essentially, repeat using cli_write and cli_read_pattern on the lookout for trends in the guests that you get by doing the command manually until you return to the EXEC prompt IOS.

  • I opened PS3 and see a window "license for this product has stopped working". Help!

    I have the PS3.  A few months ago, I had an iMac 27 "10.11.2 opportunity and transferred my PS3 (plus any creative suite 3) top.  There was a window that says please register in 5 days or it will be inactive (or something like that). I did what I was supposed to do and have appreciated the help of PS3 on this new iMac.  Everything worked very well. Last night I shut down my computer before a separate software has been updated done and makes the iMac not able to start.  The only option I found was to erase the hard drive and install using Time Machine. (I use the bad terminalogy)   I did and everything was successful until I opened PS3 and see a window "license for this product has stopped working".  Help!  It is said one solution is to uninstall. When I went to the Adobe Uninstaller I saw NO PS3, but see icon with "Add or remove Adobe Creative Suite 3 Production Premium" with a small arrow, that I have the means to think his alias and I don't know where he lives. Can someone help me get back my PS3?  Thank you!

    Please stay on point and help me with my problem of PS3 and not encourage me to upgrade to what is current.  I have SP6 here, but want to keep the PS3 will.

    Thank you.

    Debbie

    Whenever you retrieve from a backup Time Machine, you will break licenses and need to run a repair. I know. I did it twice. As the instructions given in the doc to Adobe using own isn't enough for someone new to the procedure, I set up a screenshot guide.  Layout error 150:30 opening Photoshop cs4 on Macbook Pro

    If you go through this guide to screenshot and do exactly as indicated, you won't make those mistakes. Perhaps it would be good to read first. I carefully put in place this guide, my instructions are good in their current form, do not do anything else.

    In the first post #11, I forget to add a space after "sudo python" before you drag the licenserecovery.py to the command line, and I never load any type of break line or before you drag the script.

    Second: In #15 if you simply slide the script into the window, it will be on the same line.  What you see is the packing of command to work around the size of the window, but it is always on the same line and will run when you enter your password.

    You will also see that there is a space between "python" and the script in the screenshot.

    Again, if you are new to this, read first.

    Gene

  • If the State shows red and javascript script does not

    I am just learning Javascript and I can't believe, I have problems with that simple statement, but alas I am.

    Any help would be appreciated.

    The script is a script of learning:

    JavaScript document

    var crust = prompt ("what kind of crust do you want - thin or regular?'");

    If (== crust "thin"). (crust is 'regular')) {

    var cheese is prompt ("choose your cheese?");.

    {Switch (Cheese)}

    case "mozarella":

    case 'feta ':

    "parmesan" case

    case "cheddar":

    break;

    by default:

    Alert ("sorry we not that kind of cheese.");

    break;

    }

    } else {}

    Alert ("sorry we don't serve that kind of crust here.'");

    }

    Line no 4 and 19 shows red and the script does not run.  Help, please.  I created a similar script with numbers and it works fine but as soon as I put channels in I get errors.

    I tried to rewrite these lines so many times in so many different ways.

    I use Dreamweaver CC 2015, I Am studying an old version of Javascript?

    Any help would be appreciated.

    Thank you

    Try to run your code through this online validation tool.

    JavaScript - http://www.jslint.com/



    Nancy O.

  • JavaScript not work in flash

    Hi all

    I have a few simple JavaScript that works when I saw as html5 (F11), but do nothing when I saw in the browser (F12), or when I saw the project (F4)

    The JavaScript is

    CP. Show ("SmartShape_1");

    I am trying to dyunamically some forms are displayed when you click a button.

    Here, any help would be great.

    Thank you

    Luke

    Don't know the JavaScript method. But this can be achieved by using advanced and variable actions.

    Increment the value of the custom variable, say attempts, by 1 whenever the user clicks on the button. Use conditional action ahead, where you can specify,

    If the retry value = 1, see the SmartShape_1

    If the retry value = 2, see the SmartShape_2 and so on.

    Not sure why you want to set the properties of size and location by using a script. You can place the right size to the required default position smartshapes.

    Anthony

  • Why won't this script work?

    Well so yesterday I posted a question I had with join InDesign files, I thought that I had found a solution and I was wrong. Nothing is as humbling as script... anyway the gist of what I'm trying to do is trying to combine a lot of InDesign files in a single large document. The problem I encounter is that InDesign crashes. What is strange to me is that a single iteration of this script works oddly, however when I try to do with multiple InDesign files * the bed.

    Any help on the figure, it would be much appreciated.

    System: WIndows 7

    Indy Version: CS5

    (1) selecting a folder.

    (2) get the files.

    (3) open one at a time, and duplicate pages in another document. (Which I call OCD because I basically that is what I want to do with the giant document.)

    (4) close the source file without saving the changes. Pages should not change, but better safe than sorry.

    (5) close the (TOC) destination file and save it with the new pages to this subject.

    inDesign #target

    File = Folder.selectDialog ();

    files = folder.getFiles ("*.") INDD");

    for (var i = 0; i < files.length; i ++) {}

    source_doc = app.open (files [i]);

    destination_doc = app.open (file ("c: / / users//user//desktop//TOC.indd"))

    REST();

    }

    function rest() {}

    sourcePages = source_doc.pages.itemByRange (0, -1);

    sourcePages.duplicate (LocationOptions.AFTER, destination_doc.pages.item(-1));

    source_doc. Close (SaveOptions.no);

    destination_doc. Close (SaveOptions.YES, "c://users//user//desktop//TOC.indd");

    }

    Couple of thoughts: the code is kind of a mess. I don't understand why you are opening and closing of your doc of destination with each iteration, or why you have stuff separated in another function, or why you have not any vars. As a general rule, I try to work on spreads rather than pages where possible. I avoid also itemByRange() because of the strange plural object that it returns. Here's one (in my opinion, in any case) cleaned script:

    var folder = Folder.selectDialog(),
        files = folder.getFiles("*.INDD"),
        destination_doc = app.open(new File("c://users//user//desktop//TOC.indd")),
        source_doc, i, j;
    
    for (i = 0; i < files.length; i++) {
        source_doc = app.open(files[i]);
        for (j = 0; j < source_doc.spreads.length; j++) {
            source_doc.spreads[j].duplicate(LocationOptions.AT_END, destination_doc);
        }
        source_doc.close(SaveOptions.NO);
    }
    
    destination_doc.close(SaveOptions.YES);
    

    See if you have better luck with it.

    Jeff

Maybe you are looking for

  • Firefox is available for the live HTC?

    Firefox does not list the bright HTC phone as a product that is compatible with Firefox.Is it?

  • Remove iCloud locally cached document reader

    Hello. I want to remove some documents offline cached locally to my iCloud drive app iPhone, without deleting icloud. How can I do? Thank you.

  • Compaq presario cq61: hp compaq presario cq61

    I went to turn on my laptop after that do not use because maybe 3 months, I made it charged a bit first. As I pressed the button power the power led lights up and the button next to him turned orange but the screen remained black. the caps lock light

  • How to restore a laptop without cd

    I have a HP pavilion zv6000 series 2005. I need to completely erase the HD and restore the operating system (windows XP). I can't find the original recovery disks. How can I do this?

  • User cannot make a sh run command

    Hello Recently, we have configured a version 4.2 GANYMEDE. and I create profile readonly to a group with the privilege level in the 5. now, users are unable to issue a command "sh run". except that the user is able to run all show commands. Someone h