TextCleanup script in IndyCS2 gives error

Hi, I'm running IndyCS2 ver. 4.0.5 on Mac OS X 10.4.10. I've loaded the "TextCleanup" script, along with its companion text file, "ASFindChangeList.txt". (have not tampered with either file.) The script starts out normally, but towards the end (20 lines from the bottom) generates an error at the following point:
set myScript to "tell application \"Adobe InDesign CS2\"" & return & "set properties of find preferences to " & myFindString & return & "end tell" & return
do script myScript language applescript language
It says, "doesn't understand the do script."
Try as I might, I can't understand why it's tripping right there. Thanks in advance for your kind help.

Hi Gary,
It sounds as if something is going wrong with the routine that reads the text file. It's most likely that the contents of "myFindString" is not something that InDesign understands. You can add the following line:
display dialog myFindString
Just before the line you started with above ("set myScript to..."). When you run the script, it'll display a dialog with the contents of the find string--and I'm betting it's either gibberish or empty.
Have you tried the JavaScript version? If your interest is simply in getting the thing running, that might be the quickest solution.
Thanks,
Ole

Similar Messages

  • Testing discovery script in Powershell gives error on $api.CreateDiscoveryData(0, $sourceId, $managedEntityId)

    Hello,
    I'm currently starting to develop management packs for SCOM, i understand the basics and can build a simple management pack using powershell.
    During testing i'm running into a problem, when running the powershell script directly it gives an error. If i use the discovery script in a management pack everything works ok.
    The error is:
    Exception calling "CreateDiscoveryData" with "3" argument(s): "Ongeldige klassereeks (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))"
    Part of it is in dutch but it means something like invalid class.
    I tried to run the script on one of our management servers but it also gives this error.
    It's very frustrating because i want to test the discovery scripts first before building the complete management pack.
    Thanks for your help!

    Something along these lines should work for you:
    .\DiscoveryTest.ps1 -sourceID ([guid]::NewGuid().ToString("B")) -managedEntityID ([guid]::NewGuid().ToString("B"))
    Of course your parameter names and numbers may differ.
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • Want to tweak an apps script, but it gives error when try to save - help!

    so I have a neat app that when used, will send an image it takes to your email address of choice. It uses "Mail" as the default mail app, but I only use Entourage as my mail app.
    Opening the package contents of the app, I found the Applescript that controls this function.. see it below
    on sendemail(emailto) --
    -- set email_to to "[email protected]" --
    -- set email_from to "[email protected]" --
    set image_name to "Snapshot.jpg"
    set image_path to ((path to home folder) as string) & image_name
    set image_file to image_path as alias
    tell application "Mail"
    activate
    set new_message to make new outgoing message with properties {subject:"Here is Your Snapshot"}
    tell new_message
    -- set visible to true --
    -- set sender to email_from --
    make new to recipient at end of to recipients with properties {address:email_to}
    make new attachment with properties {file name:image_file} at after the last paragraph
    -- activate --
    end tell
    send new_message
    end tell
    tell application "Finder"
    -- delete image_path --
    end tell
    end send_email
    it seems easy enough tweak to me.. see bold text above, but just change the line _tell application "Mail"_ to _tell application "Microsoft Entourage"_ and save the Applescript and viola.. BUT it does not work as once I make that weak & try to save the Applescript I get this error "*Syntax Error Expected “:”, etc. but found property*" and highlights just the word name which is followed by an existing ":". If I change it back to "Mail" it saves just fine... what gives?

    I took a different tact that is getting me closer, the Entourage dictionary helped...
    set thesubject to "here is your proof!"
    set theBody to "here is your visual proof."
    set theAttachment_name to "Default.jpg"
    set theAttachment_path to ((path to home folder) as string) & theAttachment_name
    set theAttachment_file to theAttachment_path as alias
    tell application "Microsoft Entourage"
    set theRecipients to {{address:{display name:"Contact 1", address:"[email protected]"}, recipient type:to recipient}, {address:{display name:"Contact 2", address:"[email protected]"}, recipient type:cc recipient}}
    set theMessage to make new outgoing message with properties {recipient:theRecipients, subject:thesubject, content:theBody, attachment:theAttachment_file}
    open theMessage
    end tell
    tell application "Microsoft Entourage"
    send theMessage
    end tell
    now.. I have the email composed, the attachment is found in proper 'home' folder and correctly placed/attached, subject line set, contact addresses set.. BUT my final issue seems to be just getting the email to send. it creates and composes the email, but is waiting for it to manually be sent as it seems my final "tell" is not sending the email automatically like it should. I have used the Entourage script dictionary, but I am failing to see how to get the script syntax that finishes it off by sending the email automatically.
    tell application "Microsoft Entourage"
    send theMessage
    end tell
    this above tell is not working... any ideas?

  • "generate subset" in script gives error if even number

    I am try to generate with a scipt using a PXI6551.  In the generate subset command if it is a EVEN number such as below (gree) subset(0,17) it gives the error below (red).  If it is an ODD number it works.  Is this a bug, normally you would need an even number of samples to be able to generate but with the script it seems to give the error if there is an even number?
    Thanks,
    Brian
    script myScript
       repeat 1
          Generate PRBS
       end repeat
       Generate PRBS subset(0,17) <-gives error   (0,18) does not give error
    script
    Error -1074115617 occurred at niHSDIO Write Script.vi
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA4BDF) DAQmx Error -200032 occurred:
    Subset length specified is not valid.
    Change the subset length to be longer than zero samples and a multiple of the alignment quantum.
    Line Number: 5
    Position in Line: 18
    Subset Length: 17
    Alignment Quantum: 2
    Status Code: -200032
    Message Edited by BrianPack on 09-29-2005 04:29 PM

    Brian,
    The format (x,y) means y samples starting at position X and therefore when you specify (0,17) you would still generate 17 samples but starting at position 0. Whereas when specifying (1,17) you would generate STILL 17 samples but starting at position 1.  Therefore, in either case, you are still asking to generate an odd number of samples. Hope this helps.
    Ayman K

  • ASMCA gives error

    Oracle 11.2.0.2
    Standlone database with ASM. Grid infrastructure is installed.
    While trying to create ASM instance with the help of asmca in grid home it gives error and generates below log file.
    ORA_CRS_HOME is set equivalent to the gird installation directory.
    Error in the log file is
    [main] [ 2012-10-12 12:55:27.471 EDT ] [RuntimeExec.runCommand:161] RunTimeExec: output>
    [main] [ 2012-10-12 12:55:27.472 EDT ] [RuntimeExec.runCommand:164] /oracle/app/11.2.0/grid
    [main] [ 2012-10-12 12:55:27.472 EDT ] [RuntimeExec.runCommand:170] RunTimeExec: error>
    [main] [ 2012-10-12 12:55:27.473 EDT ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand
    [main] [ 2012-10-12 12:55:27.473 EDT ] [HAUtils.getCRSHome:546] Configured CRS/HAS home = /oracle/app/11.2.0/grid
    [main] [ 2012-10-12 12:55:28.312 EDT ] [UsmcaLogger.logInfo:141] Can't exec "/oracle/app/11.2.0/grid/bin/clsecho": No such file or directory at /oracle/app/11.2.0/grid/lib/acfslib.pm line 937.
    [main] [ 2012-10-12 12:55:28.370 EDT ] [RuntimeExec.runCommand:170] RunTimeExec: error>
    [main] [ 2012-10-12 12:55:28.371 EDT ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand
    [main] [ 2012-10-12 12:55:28.371 EDT ] [HAUtils.getCRSHome:546] Configured CRS/HAS home = /oracle/app/11.2.0/grid
    [main] [ 2012-10-12 12:55:28.372 EDT ] [HAUtils.getHASHome:613] returning configured HAS Home: /oracle/app/11.2.0/grid
    [main] [ 2012-10-12 12:55:28.372 EDT ] [Version.isPre:274] version to be checked 11.2.0.1.0 major version to check against10
    Edited by: 965132 on Oct 13, 2012 5:06 AM

    Did you configured and activated Oracle Restart?
    If not... To activate it follow this tasks:
    Run the roothas.pl script from Grid_home as root user using the following syntax:
    Grid_home/perl/bin/perl -I Grid_home/perl/lib -I Grid_home/crs/install  Grid_home/crs/install/roothas.pl
    ## For example, if your Oracle Grid Infrastructure home is /app/11.2.0/grid, then run the following script:
    $ /app/11.2.0/grid/perl/bin/perl -I /app/11.2.0/grid/perl/lib -I /app/11.2.0/grid/crs/install /app/11.2.0/grid/crs/install/roothas.plhttp://docs.oracle.com/cd/E11882_01/install.112/e24321/oraclerestart.htm

  • Shell Script: Timeout and return error if Sqlplus hangs

    Shell Script: Timeout and return error if Sqlplus hangs
    Dear all,
    This morning, our production database hung with lots of ORA-600 and 7445. The issue has been escalated to Oracle Tech support but my monitoring script which tries to make a connection every 5 mins to the database to see if its up, did not alert me. The reason is that, it connected to the database and hung, never came out to report an error and so I never got alerted until a user called me.
    Can any one tell me how I can exit from the sqlplus block if I dont get a response in x seconds? This sqlplus block is being called with in a shell script.
    Any help is highly apprciated.

    I don't know of anything built into any shell scripting language that would do this, no. I'm not a Perl programmer, but I have a vague recollection that Perl may have something useful here.
    From the "separate thread" part of my comment, though, you could certainly spawn a separate thread (thread 2), have thread 2 wait a period of time, then look for a message from thread 1 and throw an error if the message hadn't been sent. I don't know that I'd be for writing multi-threaded shell scripts, though. The heartbeat also gives you a layer of redundancy so that something is monitoring the monitor in case that process stops working.
    Justin

  • Sampsperchantoacquire =1 gives error -200077

    using either DAQmxCfgSampClkTiming or DAQmxCfgImplicitTiming and setting SampsPerChantoAcquire to 1 gives error code -200077
    I want to sample 6 channels exactly once as fast as possible - how should I do this?
    Thanks!

    Hello Britt,
    You can use the basic structure of OneSample as a guideline and simply add on however many more channels you require (in this case 5 more). You would do this using the DAQmxCreateAIVoltageChan() function. The NI-DAQmx C Reference Help describes this function as follows:
    DAQmxCreateAIVoltageChan
    int32 DAQmxCreateAIVoltageChan (TaskHandle taskHandle, const
    char physicalChannel[], const char nameToAssignToChannel[], int32
    terminalConfig, float64 minVal, float64 maxVal, int32 units, const char
    customScaleName[]);
    Purpose
    Creates channel(s) to measure voltage and adds the channel(s) to the task
    you specify with taskHandle. If your measurement requires the
    use of internal excitation or you need the voltage to be scaled by excitation,
    call DAQmxCreateAIVoltageChanWithExcit.
    You would simply call this function with the same taskHandle you are already using and list whatever channels you want as the physicalChannel[] input parameter. Also, as noted in the NI-DAQmx Help, the physical channel syntax can be used for a single channel or a range of channels. As described in this manual:
    Physical Channel Syntax
    <script type="text/javascript">
    </script>
    Use this syntax to refer to physical channels and groups of
    physical channels in NI-DAQmx.
    Physical Channel Names
    Physical channel names consist of a device identifier and a slash
    (/) followed by a channel identifier. For example, if the physical channel is
    Dev0/ai1, the device identifier is Dev0, and the channel identifier is ai1. MAX assigns device identifiers to devices in the
    order they are installed in the system, such as Dev0 and Dev1. You also can
    assign arbitrary device identifiers with MAX.
    For analog I/O and counter I/O, channel identifiers combine the
    type of the channel, such as analog input (ai), analog output (ao), and counter
    (ctr), with a channel number such as the following:
    ai1
    ctr0
    For digital I/O, channel identifiers specify a port, which
    includes all lines within a port:
    port0
    Or, the channel identifier can specify a line within a port:
    port0/line1
    All lines have a unique identifier. Therefore, you can use lines
    without specifying which port they belong to. For example, line31—is equivalent to port3/line7 on a device with four 8-bit ports.
    Physical Channel Ranges
    To specify a range of physical channels, use a colon between two
    channel numbers or two physical channel names:
    Dev0/ai0:4
    For digital I/O, you can specify a range of ports with a colon
    between two port numbers:
    Dev0/port0:1
    You also can specify a range of lines:
    Dev0/port0/line0:4
    Dev0/line0:31
    You can specify channel ranges in reverse order:
    Dev0/ai4:0
    Dev0/port1/line3:0
    Physical Channel Lists
    Use commas to separate physical channel names and ranges in a list
    as follows:
    Dev0/ai0, Dev0/ai3:6
    Dev0/port0, Dev0/port1/line0:2
    The implementation in which you specify 2 samples per channel in DAQmxCfgSampleClkTiming is probably not the best implementation. If you continue to specify 2 samples to read and then only pull 1 sample from the buffer in DAQmxReadAnalogF64 you will eventually overflow the buffer on the device. Also, you will not "lose" data, but I don't think you are getting the data you expect. The DAQmxReadAnalogF64 function will read the oldest available sample from the device; this isn't a problem when you are reading all the data that is in the buffer every time. However, in your implementation, you will be getting old data when you expect more recent. The figure below should demonstrate the problem with this scheme. The arrows represent the data that you are reading with the DAQmxReadAnalogF64.
    This behavior is the default setting for the NI-DAQmx driver, but you can change it using the RelativeTo property. The description of this property is as follows:
    RelativeTo
    Data Type:
    int32
    Description:
    Specifies the point in the buffer at which to begin a read operation. If you
    also specify an offset with Offset, the read
    operation begins at that offset relative to the point you select with this
    property. The default value is DAQmx_Val_CurrReadPos unless you configure a Reference Trigger for the task. If you configure a Reference Trigger, the default
    value is DAQmx_Val_FirstPretrigSamp.
    Valid values
    DAQmx_Val_FirstSample
    10424
    Start reading samples relative to the first sample
    acquired.
    DAQmx_Val_CurrReadPos
    10425
    Start reading samples relative to the last sample returned by
    the previous read. For the first read operation, this position is the first
    sample acquired or the first pretrigger sample if you configured a reference
    trigger for the task.
    DAQmx_Val_RefTrig
    10426
    Start reading samples relative to the first sample after the
    reference trigger occurred.
    DAQmx_Val_FirstPretrigSamp
    10427
    Start reading samples relative to the first pretrigger
    sample. You specify the number of pretrigger samples to acquire when you
    configure a reference trigger.
    DAQmx_Val_MostRecentSamp
    10428
    Start reading samples relative to the next sample acquired.
    For example, use this value and set Offset to -1 to
    read the last sample acquired.
    You can get/set/reset this property using:
      DAQmxGetReadRelativeTo
      DAQmxSetReadRelativeTo
      DAQmxResetReadRelativeTo
    However, in your implementation, you would still face problems with overflowing the buffer. Instead, I would recommend that you read all available samples and either average the data or just discard the samples that are not applicable.
    Finally, to address your question regarding the sample rate in DAQmxCfgSampClkTiming, the sample rate is accurate down to the specifications of the device you are using. The USB-6008/6009 User Guide here provides the following specification:
    Timing accuracy..................................... 100 ppm of actual sample rate
    The NI USB-621x Specifications here indicates:
    Timing accuracy..................................... 100 ppm of actual sample rate
    Message Edited by Matt A on 07-11-2007 10:39 AM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    Dev Range Reverse.JPG ‏2 KB
    DAQmx Read.JPG ‏13 KB
    Dev Range.JPG ‏3 KB

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • ITunes new version doesn't open at all. Gives error message

    I downloaded 7.4.3 version of iTunes and it doesn't open at all. Gives error message. "iTunes has encountered a problem and needs to close."
    I have previous version of iTunes in my spare HD, in the same computer, and it works perfectly fine.
    I have unistalled and re-installed again and again many times including with the help of Apple Support help in the phone and came up with no clues of what's going on.
    How can I get a previous version of iTunes to download to my PC? I have looking for a place on Apple's website where I could probably have my issue resolved, but I found nothing.
    Thank you.

    Thanks to Jim Zack, the problem is solved.
    If you're having this problem, go find the solution at the following page and read Jim's suggestion.
    http://discussions.apple.com/thread.jspa?threadID=1155613

  • Report server gives error

    i have installed oracle 9i AS (EE)on NT,
    Now i want to display reports in pdf/HTML on web broswer. For that i am trying to run report tester page given through broswer it is showing one page having Button(run report), when i click on that, it gives error unable to connected to database, and request rejected by report server. WHY ???
    i want to display reports through JSP How it can be done? Does anybody knows it?
    Naresh
    null

    Please check at http://<server>/dev60html/runrep.htm for follwings :
    01. your test.rdf must be in report60 folder
    02. your db must contain scott user
    03. connect string must be tested and give the same inplace of test
    04. your webhost may contain a dot, please check this should be the same as yours
    hope this will help
    bye !

  • Report builder error after applying sql server 2008R2 SP3 when click on report builder gives error like 'Application validation did not succeed. Unable to continue.

    Hi All,
    I applied SQL server 2008 R2 SP3 recently but report builder doesn't work since then
    When click on report builder gives error like 'Application validation did not succeed. Unable to continue.
    and when I try to see details the error summary like following:
    +File, Microsfot.ReportingServices.ComponentLibrary.Controls.dll, has a different computed hash than specified in manifest.
    this is urgent.
    Please reply me asap.
    thanks a lot in advance.
    Regards,
    Nik
    Regards, Naman

    Hi nikp11,
    According to your description, you recently updated SQL Server 2008 R2 to SP3, Report Builder doesn’t work since then the error occurs: "Application validation did not succeed. Unable to continue".
    This is an known issue in SSRS 2008 R2 SP3 that Microsoft has published an article addressing this issue. It is not planning to release a fix for this issue. But we could implement one of the following workarounds:
    Install and run Report Builder 3.0 of SQL Server 2008 R2 RTM.
    Install and run Report Builder of SQL Server 2014.
    Uninstall Service Pack 3 then uninstall Service Pack 2 and then reinstall Service Pack 3.
    Reference:
    Report Builder of SQL Server 2008 R2 Service Pack 3 does not launch
    Thank you for your understanding.
    Best Regards,
    Wendy Fu

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • After upgrading to Lion Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    After upgrading to Lion, Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    Ouch, if it is indeed damaged, then sadly you need to restore the whole danged huge OS!
    Didn't used to be this way before Lion/10.7.
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to Update a clob column..it gives error string literal too long

    I am trying to update a clob column of a table but it gives error string literal too long plz tell me what's the issue
    ORA-01704: string literal too long

    Peeyush wrote:
    I am trying to update a clob column of a table but it gives error string literal too long plz tell me what's the issue
    ORA-01704: string literal too longThere's a problem with my car. It won't start. Why won't it start? Please tell me!
    Oh wait, you can't, because I haven't given you nearly enough information...
    In other words, if you would like help in trying to work out where you've gone wrong, you should provide a small enough example of your code that demonstrates the error. We might then actually stand a chance of being able to help you!

Maybe you are looking for