Coded UI test script works in VS2010 but not in VS2012.

I have a test script for an application that adds 3 part numbers (i.e., rows) to a table displayed on the AUT web page.  Each row in the table also contains an
HTMLInputButton called View Audit Trail.  The purpose of the test script is to select the correct button, which then calls up the
Audit Details page for the selected part number.  The code used in the test script driver is as follows (the same code is used for clicking on either an action button or a hyperlink contained within a table):
case "ClickTableItem":
// Note: An input example would be
03-0024-0-0001:Button>View Audit Trail
string[] keys = action[key].Split(':');
string cellvalue = keys[0].CheckGlobalValue(global);  // The key data identifying which table row.
string[] objtypeANDobj = keys[1].Split('>');  // Data consists of the Object Type, and the Object to be clicked.
// Identify the table...  (The name of the table from outside the
Switch statement.)
HtmlTable actionTable = (HtmlTable)map.GetType().GetProperty(key.FieldName).GetValue(map, null);
// Identify the individual table cell containing the key identifier...
HtmlCell cell = new HtmlCell(actionTable);
cell.SearchProperties.Add("ClassName", "HtmlTableCell");
cell.SearchProperties.Add("InnerText", cellvalue, PropertyExpressionOperator.Contains);
UITestControlCollection tablecells = cell.FindMatchingControls();
// Set the row index...
HtmlCell myhtmlcell = (HtmlCell)tablecells[0];
int myrow = myhtmlcell.RowIndex;
string smyrow = myrow.ToString();
HtmlCell myCell = new HtmlCell(actionTable);
myCell.SearchProperties.Add("RowIndex", smyrow);
#region Click on Hyperlink
if (objtypeANDobj[0] == "Hyperlink")
myCell.SearchProperties.Add("FriendlyName", objtypeANDobj[1], PropertyExpressionOperator.Contains);
UITestControlCollection testclickobjects = myCell.FindMatchingControls();
UITestControl tableclickobject = testclickobjects[0];
HtmlHyperlink myClicklink = new HtmlHyperlink(tableclickobject);
Mouse.Click(myClicklink);
                        logger.Write("    Action", "Table Select - Row: '" + cellvalue + "': Hyperlink '" + objtypeANDobj[1] + "' selected");
#endregion
#region Click on Button
else if (objtypeANDobj[0] == "Button")
// Search child level...
UITestControlCollection testclickobjects = myCell.FindMatchingControls();
UITestControl tableclickobject = testclickobjects.Where(btnCell => btnCell.GetChildren().Any(btnChild => btnChild is HtmlInputButton && btnChild.FriendlyName == objtypeANDobj[1])).First();
HtmlInputButton myClickbtn = tableclickobject.GetChildren().Where(btnChild => btnChild is HtmlInputButton).First() as HtmlInputButton;
Mouse.Click(myClickbtn);
                        logger.Write("    Action", "Table Select - Row: '" + cellvalue + "': Action Button '" + objtypeANDobj[1] + "' selected");
#endregion
break;
In VS2010, the correct button is always selected, and the correct audit page always appears.  In VS2012, though, the correct button is always selected, but the green progress bar speeds across the screen and the test crashes, even though the message
log records the correct action.  (It crashes because it can't find the verification information that the correct page was displayed, seeing as the correct page doesn't appear.)  If I manually re-open the application, the table containing the added
part numbers is still displayed, and I can click on the appropriate View Audit Trail button and go to the correct audit page.  
What really has me stymied, though, is that the script actually passed twice.  Both times, though, either VS, the test script, or the app itself hiccupped, and only added 2 of the 3 part numbers to the table.  As always, the correct button was
selected, but in these two cases the audit screen actually appeared, so the rest of the test passed successfully.
I've tried removing one of the part numbers, but the script still failed despite once again selecting the correct button.  The first thing I thought of was re-mapping the web page objects using VS2012, but it turned out that they have the same properties
as with VS2010.  Unfortunately, it didn't help.  I've also tried changing the following parameters:
HtmlInputButton to HtmlButton
<PropertyCondition Name="ControlType">Button</PropertyCondition> to
btn
<PropertyCondition Name="Type">button</PropertyCondition> to
submit
<PropertyCondition Name="Class">PageButton</PropertyCondition> to
Button or btn
The only other thing unique is that the AUT for the VS2010 test script uses a different login screen than the AUT for VS2012 (different URLs for the login screens).  Other than that, though, once the login screens are passed, the web pages accessed
are identical (i.e., the same URL).
Has anyone else run into a similar situation?  

Hi Jack,
Here is the applicable part of the error log.  Unfortunately, it doesn't explain why the Audit page doesn't appear when you click on the View Audit Trail button.  It only fails because it can't find the Return To Search button (which makes sense,
because the page wasn't opened).  As you can see, I stuck a 60-second Wait step (Step 14) to see if the page would eventually appear, but it didn't.
Processing Step 12:
     Data Entry: Selected radio button 'ActionTypeRadioInquiry': 'ON'
     Data Entry: Entered 'AircraftTailNumber': '0201'
     Action: 'Search' selected
Processing Step 13:
     Action: Table Select - Row: '03-0024-0-0001': Action Button 'View Audit Trail' selected
Processing Step 14:
     Action: 'Wait': System test paused for 60 seconds...
Processing Step 15:
Logging Entry Type: Error
Logging Entry Type: FailureAudit
System.String: <string>    *** FAILED Step 15 ACTION: 'ReturnToSearch' Error 'The playback failed to find the control with the given search properties. Additional Details:
TechnologyName:  'Web'
ControlType:  'Button'
TagName:  'INPUT'
Id:  'ctl00_ContentPlaceHolder1_btnReturnToResults'
Name:  'ctl00$ContentPlaceHolder1$btnReturnToResults'
 Failed to find any control that matched the value ctl00_ContentPlaceHolder1_btnReturnToResults for the search property Id.'</string>
 System.String:     *** FAILED Step 15 ACTION: 'ReturnToSearch' Error 'The playback failed to find the control with the given search properties. Additional Details:
TechnologyName:  'Web'
ControlType:  'Button'
TagName:  'INPUT'
Id:  'ctl00_ContentPlaceHolder1_btnReturnToResults'
Name:  'ctl00$ContentPlaceHolder1$btnReturnToResults'
 Failed to find any control that matched the value ctl00_ContentPlaceHolder1_btnReturnToResults for the search property Id.'
Logging Entry Type: Error
System.Exception: <Exception><HelpLink /><Source /></Exception>
 System.Exception: System.Exception: Exception in Step #15 from the 'PerformAction' module... ---> Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException:   Step 15 ACTION: 'ReturnToSearch' error 'The playback failed
to find the control with the given search properties. Additional Details:
TechnologyName:  'Web'
ControlType:  'Button'
TagName:  'INPUT'
Id:  'ctl00_ContentPlaceHolder1_btnReturnToResults'
Name:  'ctl00$ContentPlaceHolder1$btnReturnToResults'
 Failed to find any control that matched the value ctl00_ContentPlaceHolder1_btnReturnToResults for the search property Id.'
   at WS.Tests.DataEntryUtil.PerformAction(Dictionary`2 action, Object map, Dictionary`2 global, Int32 stepNumber, LoggingProvider logger) in c:\Source\QMOTestUtilities\WS\WS\Tests\WSAutomation\DataEntryUtil.cs:line 1964
   at WS.Tests.WSTest.ScepTest() in c:\Source\QMOTestUtilities\WS\WS\Tests\WSAutomation\WSTest.cs:line 193
   --- End of inner exception stack trace ---
Logging Entry Type: Error
System.Exception: <Exception><HelpLink /><Source /></Exception>
 System.Exception: System.Exception: DataDriven Test Execution Exception Caught ---> System.Exception: Caught Exception in Step #15 from the 'PerformAction' module... ---> Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException:  
Step 15 ACTION: 'ReturnToSearch' error 'The playback failed to find the control with the given search properties. Additional Details:
TechnologyName:  'Web'
ControlType:  'Button'
TagName:  'INPUT'
Id:  'ctl00_ContentPlaceHolder1_btnReturnToResults'
Name:  'ctl00$ContentPlaceHolder1$btnReturnToResults'
 Failed to find any control that matched the value ctl00_ContentPlaceHolder1_btnReturnToResults for the search property Id.'
   at WS.Tests.DataEntryUtil.PerformAction(Dictionary`2 action, Object map, Dictionary`2 global, Int32 stepNumber, LoggingProvider logger) in c:\Source\QMOTestUtilities\WS\WS\Tests\WSAutomation\DataEntryUtil.cs:line 1964
   at WS.Tests.WSTest.ScepTest() in c:\Source\QMOTestUtilities\WS\WS\Tests\WSAutomation\WSTest.cs:line 193
   --- End of inner exception stack trace ---
   at WS.Tests.WSTest.ScepTest() in c:\Source\QMOTestUtilities\WS\WS\Tests\WSAutomation\WSTest.cs:line 213
   --- End of inner exception stack trace ---
 Test Script Status:  FAILED 'Test_Click_Table_Item':   Execution Time: 00:02:03.7293717
The calling page is given a specific key value (M&E Part Number) which identifies the table row containing the correct
View Audit Trail button to select.  The key for this test is
03-0024-0-0001, indicating that the test is to select the
View Audit Trail button in the third row of the table.
Without fail, the correct button is selected.  Selecting this action button is
supposed to call the appropriate Audit page.
While there have been several test runs where the correct audit page does get displayed, most of the test runs will
not display the page, even though a significant Wait period has been inserted to allow the application additional time to process the page request.
I tried to attach the screen shots of the two pages in question, but wasn't allowed to because apparently my account hasn't been verified.  If I can upload them or email them somewhere else, let me know and I'll give it a shot.

Similar Messages

  • Batch PDF script works in ID4 but not in ID5.5

    this script worked flawlessly in ID4, but doesn't work in 5.5....It's a script that converts all open indd files to pdf.
    This is the error...
    AppleScript Error!
    Error Number: -2741
    Error String: Expected "," but found application constant or consideration.
    Engine: Default
    File: Users/AM/Library/Preferences/Adobe Indesign/Version 7.5/en_US/Scripts/Scripts Panel/PDFer.applescript
    Anyone know what's wrong with the script?
    This is the script:
    property convertSpotToProcess : false
    my main()
    on main()
      tell application "Adobe InDesign CS5.5"
      set alleExportFormater to name of every PDF export preset
      set alleDok to name of every document
      tell document 1
      set valgtExportFormat to (choose from list alleExportFormater with prompt "Choose PDF Setting")
      if valgtExportFormat = false then error number -128
      set targetmappe to my velgmappe()
      end tell -- doknavn
      set valgtExportFormat to PDF export preset (valgtExportFormat as text)
      repeat with ggg in alleDok
      set doknavn to ggg as text
      tell PDF export preferences
      set page range to all pages
      end tell
      set filnavn to doknavn
      if filnavn ends with ".indd" then set filnavn to text 1 thru -6 of filnavn
      set filnavn to filnavn & ".pdf"
      tell document doknavn
      if convertSpotToProcess then set convert to process of (every ink whose is process ink is false) to true
      set targetfil to (targetmappe & filnavn) as string
      with timeout of 40 * 60 seconds
      export format PDF type to targetfil using valgtExportFormat without showing options
      end timeout
      delay 1
      end tell
      end repeat
      say "Your PDFs are ready. "
      end tell
    end main
    on velgmappe()
      try
      tell me to activate
      end try
      return (choose folder with prompt "Choose Folder")
    end velgmappe

    Hi,
    Use the ready made script was developed by Peter.  It's one of the good resources, find in the following links.
    http://www.kahrel.plus.com/indesign/batch_convert_cs3.html

  • GPRM Button scripts work in Simulate, but not after burning

    Hello everyone:
    I have a question regarding GPRM-based buttons and scripting menu navigation. My scripts work perfectly in DVD Studio Pro's simulate mode, but after building and formatting a DVD, the scripts do not function properly on a set top box, in Apple DVD Player, or when playing from the Video TS folder. The scripts were based off of a tutorial by Hal MacLean at dvdstudiopro.co.uk.
    Essentially, I have one track which is accessed via a Main Menu or a Chapters Menu. There is an animation that plays at the head of each menu, so menu has a loop point. The user should return to the correct screen, the correct button should be highlighted, and the menu should jump to the loop point. All of these things happen in simulate mode, but after burning, the loop point is ignored: The correct menu and buttons are highlighted, but the menu plays from the beginning. Here is how the project is laid out:
    From the main menu, if the user chooses Play Movie, the following script plays:
    mov GPRM 0, 1
    Jump Feature
    From the main menu, if the user chooses Chapters, the following script plays:
    mov GPRM 0, 0
    Jump Chapters Menu
    Each of the chapter buttons is assigned to the start of a scene. The feature's menu call is assigned to the following script:
    mov GPRM 1, SPRM 8
    div GPRM 1, 1024
    Jump Main Menu(Loop) [GPRM 1] if (GPRM 0 = 1)
    Jump Chapters Menu(Loop) [GPRM 1]
    I was able to make the menus behave properly by writing the scripts this way:
    mov GPRM 1, SPRM 8
    div GPRM 1, 1024
    Jump Main Menu Script [GPRM 1] if (GPRM 0 = 1)
    Jump Chapters Menu Script [GPRM 1]
    Main Menu Script:
    Jump Main Menu(Loop)
    Chapters Menu Script:
    Jump Chapters Menu (Loop)
    But, although the user is returned to the correct menu and the loop point, now only the default button is highlighted.
    Has anyone run into the same issues? Can anyone see any flaws in my scripts, or have any suggests? i would really appreciate any thoughts you all have. Thanks for your time!

    Do you have any pre scripts atached to the menus? I was having the same problems as you and found that pre scripts and GPRMs don't play nice (at least in DSP). Removing the pre scripts solved my issue.
    http://discussions.apple.com/message.jspa?messageID=4643747#4643747
    Good luck!

  • A php script works in IE but not in safari .. please help

    The following php works in internet explorer but not in safari or chrome .
    In IE all files are saved in specified folder .
    But in safari , xml portion works .. that is myxml.xml is saved in 'uploads/'.$temp directory ... but uploaded files are not saved in the given folder ..instead they are saved in 'uploads' folder .... not in 'uploads/'.$temp folder or 'uploads/'.$temp.'/image/' folder ...
    The script is called from flash ...
    I am new to php ... please help ...
    <?php
    session_start();
    $temp=$_SESSION['myfolder'];
    $raw_xml=file_get_contents("php://input");
    if(isset($_FILES['Filedata']['name'])){
    $whichfile=$_FILES['Filedata']['name'];
    $whichextension=substr($whichfile,-3);
    if($whichextension=='flv'||$whichextension=='pdf'||$whichextension=='txt'||$whic hextension=='mp3'){
    move_uploaded_file($_FILES['Filedata']['tmp_name'],'uploads/'.$temp.'/'.basename ($whichfile));
    elseif($whichextension=='jpg'||$whichextension=='png'||$whichextension=='gif'){
    move_uploaded_file($_FILES['Filedata']['tmp_name'],'uploads/'.$temp.'/image/'.ba sename($whichfile));
    elseif($raw_xml!=false){
    $fp=fopen('uploads/'.$temp.'/myxml.xml','w');
    fwrite($fp,$raw_xml);
    fclose($fp);
    else{
    echo "&fname=$temp";
    ?>

    Use this style rule for that image to get that custom cursor:
    <pre><nowiki>cursor: url("dart.cur"), auto;</nowiki></pre>
    See also:
    *https://developer.mozilla.org/en/Using_URL_values_for_the_cursor_property

  • Script Works in Formcalc but not Javascript

    I have two radio button lists laid out in two columns to select garment sizes (small, medium, large). The "M" side is MEN and the "W" side is WOMEN.  The Radio button lists are named MENS and WOMEN respectively.
    ITEM    QTY.       COST       ITEM    QTY.    COST 
    ||MS                          ||WS
    ||MM                          ||WM
    ||ML                          ||WL
    ||NO SELECTION                ||NO SELECTION
                        TOTAL                      TOTAL
    The user selects the size using the radio button, moves into the QTY field to input the quantity and the COST is automatically calculated in a read-only numeric field (the QTY and COST fields are not shown above).
    However, if a radio button (other than "NO SELECTION") is selected in one list and you attempt to select something in the OTHER list, after inputting a quantity a message box will pop up saying:  “Unable to calculate totals.  You have an active selection in the other side.  Please set the other side to 'No Selection' to continue."  The event used for this in the QTY field is "exit".
    Additionally, the fields are reset to zero (0) making the TOTAL zero (0).
    The "NO SELECTION" button of each list has a value of 1.
    I have a formcalc script in each of the QTY fields on the mens side that read:
    if (Women > 1) then
       xfa.host.messageBox("Unable to calculate totals.  You have an active selection in Women.  Please set
       Women to 'No Selection' to continue.")
         MS=0
         MM=0
         ML=0
    endif
    The WOMEN side has a similar formcalc script if something is selected on the MENS side.  It works fine in formcalc.  However, when I try to use Javascript to perform this, the message box does not appear.
    if (Women > 1) {
       xfa.host.messageBox("Unable to calculate totals.  You have an active selection in Women.  Please set
       Women to 'No Selection' to continue.");
          MS=0;
          MM=0;
          ML=0;
    I am teaching myself JS and wanted to put functions into the project since this is all repetitive.  However, I don't understand why it works with formcalc and not JS.  The book I purchased for learning JS was a bad choice (and I won't mention it here).  However, any help would be apppreciated.
    BTW, I used UPPER CASE in this post for emphasis.  The case matches in the actual script.

    Paul, will this script work, instead?
    var brain
    var correctSyntax = "Object.rawValue"
    if (correctSyntax != "Object.rawValue") {
       xfa.host.messageBox("YOU ARE AN IDIOT!);
       brain = ""
    Learning Javascript is gonna be a loooong process for me
    But as they say, if you don't make mistakes, how will you learn?  I'm glad there are guys like you around.
    THANKS, PAUL!

  • Why this script works in indesign but not in illustrator (cs5)?

    Hallo, i would like someone to tell me if it is possible to make a script from indesign ( i am talking about the crop marks script )
    to work in illustrator?
    It is very important to me, to make it work!
    I would appreciate if someone could help me with this?

    ok, thank you!
    So i have to ask from someone who knows scripting, to write it!
    I have seen in many sites, very good scripts doing other thinks, and also i saw one that did exactly what i wanted
    called  " Artboard_coords.app " but saddly was for mac.
    Pleaase if someone has the time to write such a script, i would very much appreciate it, and i think
    that it would be very usefull to many other designers too,  who works with digital printings,
    and have to print cards and other stuff to laser printings.
    Untill now i use the script from indesign.
    i also made an action that almost do the job, but not very handy!

  • Script working fine manually but not in cron

    i have unix script with is running fine & great when i run manually
    is the same is in cron it is not running at the parts where it is interacting with database
    remaining parts of script working fine
    script
    ======
    export ORACLE_SID=TEST
    export TWO_TASK=TEST
    dat=`sqlplus -s / <<END
    set feedback off;
    set heading off;
    select count(*) from
    (SELECT serial,status,date_time
    from ttable
    where STATUS='C'
    order by date_time);
    exit;
    END`
    echo dat value $dat
    echo "hi"> 123.lst
    if [ $dat -gt 0 ]
    then
    sqlplus -s / <<-END >>123.lst
    @/home/scr/pro1.sql
    exit;
    END
    fi
    any help is appreciated
    Thanks in advance

    Bacause cron does not know anything about your enivroment, you need explicitly set all your enviroment (PATH, ORACLE_HOME and so on) in this script.
    Second option is invoke your script using "su - oracle -c </path/to/script_name>"

  • Script works in ISE but not in regular Powershell

    I created a script that will read in files, encrypt them using openssl, and then remove the original. Only downside is that the script only works in ISE and not in powershell.
    On powershell command line the line "remove-item $file" ends up being an entire list of files instead of a single file. While in ISE the command is the single file instead of the list of files.
    Code in question:
    $file= get-content $file
    Foreach ($file in $files)
       $in=$null
       $out=$null
       #set the in and out files
       if ($enc -eq "-e")
          $in = "$file"
          #add .enc to let people know it is encrypted
          $out= "$file" + ".enc"
          }else{
          #we are decrypting
          $in="$file"
          #remove the .enc at the end of the string to restore to normal      
          $out="$in" -replace ".enc"        
        if ($file -eq ".enc")
        break
        $run = $cmd  + " enc" + " -" + $type + " -pass pass:" + $password + " " + $enc + " -in " + $in + " -out " + $out
        invoke-expression $run
        remove-item $file
        $in=$null
        $out=$null
    any help would be wonderful

    Technically it starts with my parameters and setting up the openssl command. Here is the mostly full version - i can give the full full one if you want.
    $files= get-content $files    
    #check the switch to see if we are encrypting or decrypting
    $enc="-e"
    if ( $decrypt)
       $enc="-d"
    Foreach ($file in $files)
       $in=$null
       $out=$null
       #set the in and out files
       if ($enc -eq "-e")
          $in = "$file"
          #add .enc to let people know it is encrypted
          $out= "$file" + ".enc"
          }else{
          #we are decrypting
          $in="$file"
          #remove the .enc at the end of the string to restore to normal      
          $out="$in" -replace ".enc"        
        if ($file -eq ".enc")
        break
        $run = $cmd  + " enc" + " -" + $type + " -pass pass:" + $password + " " + $enc + " -in " + $in + " -out " + $out
        invoke-expression $run
        remove-item $file
        $in=$null
        $out=$null
            

  • Sql script works in mssql but not in mysql

    The following
    SELECT count(*) FROM itemlist WHERE ID like '%a%' or itemDescription like '%a%'
    works in mssql but i get the error "Table 'xxx.itemlist' doesn't exist"
    in mysql. How can I make this work

    works in mssql but i get the error "Table
    'xxx.itemlist' doesn't exist"
    in mysql. How can I make this workCreate a table called itemlist in xxx's user space or schema or whatever it's called. Or create itemlist somewhere else and use the fully qualified whatever.itemlist to refer to it.

  • Bash script working in shell, but not in Automator

    This script works for me in a bash shell, and adds tags to an mp3.
    #!/bin/bash
    for file in *.mp3;
    do
    a=`basename "$file" .mp3 | sed -e 's/.* - //'`
    b=`echo "${file%%-*}"`
    id3tool \
    -t "$a" \
    -r "$b" \
    "$file"
    done
    If I put it into Automator (get selected items-->shell script), it doesn't work...
    it doesn't give errors, it simply doesn't have any effect, why?
    for file in "[email protected]"
    do
    a=`basename "$file" .mp3 | sed -e 's/.* - //'`
    b=`echo "${file%%-*}"`
    /usr/local/bin/id3tool \
    -t "$a" \
    -r "$b" \
    "$file"
    done

    There's a step ahead, apparently the automator script WORKS, the only problem is that the artist name is "/path/to/mp3/ARTISTNAME", while if I run the script in a bash shell, the artist name is correct and it is "ARTISTNAME", how "basename" output suggests, why?
    for file in "[email protected]"
    do
    a=`basename "$file" .mp3 | sed -e 's/.* - //'`
    b=`echo "${file%%-*}"`
    /usr/bin/id3v2 \
    -t "$a" \
    -a "$b" \
    "$file"
    done

  • Exchange 2010 GAL Export script working from EMS but not as a scheduled task

    I have been asked to get a script together to export the GAL on an Exchange 2010 server and then email it to a manager. I have been playing it with days, and have pruned it to the very minimum to at least try and get it working before improving it. At the
    moment I have the text as below:
    Del c:\GALexport.csv
    Get-Recipient -ResultSize unlimited | where {$_.HiddenFromAddressListsEnabled -eq $false} | Select DisplayName,PrimarySMTPAddress,sAMAccountName,alias | Export-Csv "c:\GALexport.csv"
    This works just fine in Exchange Management Shell and deletes the previous report before creating a new one. However, when I set it up as a scheulded task, it does nothing.
    The task is set up as follows:
    Action - Start a Program
    Program/ Script C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe
    Add arguments -version 2.0 -NonInteractive -WindowStyle Hidden -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; d:\Scripts\GalExportReport.ps1"
    This is set to run under my administrator account with the highest privileges and I have the logon as batch right.
    Unfortunately, when I run it as a scheduled task, nothing happens. The last run result is (0x0) and in the history it says 'task completed', but no report is produced. Can anyone advise please?

    Does it delete the c:\GALexport.csv file? If not, then its not even executing the ps1 script...
    - Open cmd prompt and run below command to confirm that there isn't any typo or any other small error...
    C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -version
    2.0 -NonInteractive -WindowStyle Hidden -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; d:\Scripts\GalExportReport.ps1"
    - If above works then something wrong with task scheduler configuration...
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Apple Script: Script works in Editor but not in iTunes

    Ok so I have written/cobbled together other peoples scripts to make my own script but now it will only work in Script Debugger 4.5 or AppleScript Editor??? When I exicute the script in the editors it works perfectly, but when its saved and added to the iTunes script folder it all works except for one part.
    This part is supposed to duplicate the iTunes file then open it back into itunes, so I have two copies of the file (so I can alter one). Now in itunes everything works but it seems to be skiping over the open command??
    any help would be appreciated
    to DuplicateItunesFiles()
        set trackTitleList to ""
        tell application "Finder"
            repeat with i from 1 to the count of the selected_track_files
                set currentFile to item i of selected_track_files
                set currentTitle to item i of track_titles
                set trackTitleList to trackTitleList & ", " & currentTitle
                open (duplicate currentFile to folder of location_file)
            end repeat
            if trackTitleList is "" then
                display dialog "Sorry, couldn't duplicate your tracks."
            end if
        end tell
    end DuplicateItunesFiles

    Ya sorry about that, the script is long and poorly made so I didnt want to scare people of haha.
    Here is a link to the script I am having trouble with (Version 5.2): http://pastebin.com/dGsHifZM
    and I'm not sure if this is helpfull but here is an older version that works...in both the editor and iTunes http://pastebin.com/chb19KNQ
    Errors: I get this error only sometimes:
    Can’t get «class cTrk» 1 of «class pPla» of application "iTunes".
    Edit: Can I not edit my origonal post to add the links into it?

  • CFFORM onSubmit script works in FF but not in IE

    I've got a CFFORM that has an onSubmit additional javascript for  form validation, and while it works in FF, it passes right through in IE and ends up erroring because the mandatory fields aren't there...
    the CFFORM call looks like this
    <cfform name="add_project" method="post" action="xxxxxxx.cfm?view=admin-add-process&entity=project" enctype="multipart/form-data" onsubmit="return checkReq();">
    and the function looks like
    <script language="javascript">
    function checkReq() {
    var valid = true;
    var errMsg = '';
    if (document.add_project.projectreviewer_emails.value.trim() == '') {
    } else {
    </script>
    Any ideas?
    Thanks in advance,
    bw

    There is some doubt regarding the universality of Javascript's trim function among browsers. Is it vital here?  If you leave it out, your code will work across all browsers. Something along the lines of:
    <script type="text/javascript">
    function checkReq() {
        var valid = true;
        var errMsg = '';
        var projectReviewerEmails = document.forms["add_project"]["projectreviewer_emails"].value;
        if (projectReviewerEmails == '') {
            // no no no no no
            return !valid;
        } else {
            // yeah yeah yeah yeah yeah
            return valid;
    </script>
    <cfform name="add_project" method="post" action="test.cfm?view=admin-add-process&entity=project" enctype="multipart/form-data" onsubmit="return checkReq();">
    <cfinput type="file" name="projectreviewer_emails" >
    <cfinput type="submit" name="sbmt" value="Submit">
    </cfform>

  • Script works on workstation but not on server?

    Hi,
    Have a simple little script I put together after googling for examples on how to determine if a file is opened and locked by another process.  I developed it on my Windows 7 Pro workstation and it works fine, however, when I copy it over to the server
    where I want it to run it never sees the file as locked even though I have it open in a text editor.  What gives?
    The server is a Windows Server 2008R2 with File Services role installed.  Here's the script:
    $path
    =
    "C:\MSD\ToMSD\Processed\MSD107078-02262015.csv"
    $oFile
    =
    New-Object
    System.IO.FileInfo
    $path
    try {
    $oStream
    =
    $oFile.Open([System.IO.FileMode]::Open,
    [System.IO.FileAccess]::ReadWrite,
    [System.IO.FileShare]::None)
    if($oStream)
    $oStream.Close()
    "Not Locked"
    catch {
    # file is locked by a process
    "Locked"
    Seems simple enough but it always says the file on the server when opened with a text editor. I did notice, however, that if I open the file
    share from a workstation and open the file with a text editor that it does show the file is locked. What would be the difference to the server between opening the file locally or remotely?
    Any thoughts?
    Thanks in advance,
    Linn

    Hi Gladyston,
    Yes, that restriction I am aware of but it is not the issue.  The script runs, it just doesn't return the correct result.
    Wonder if there is a better way to determine if a document is locked for editing or not.
    Thanks for responding,
    Linn

  • This script works in FP6 but not in FP8

    Hello
    I hava an swf with this code:
    MAIN MOVIE CLIP
    onClipEvent (load) {
    POZ = new Array(0, -1004, -2008, -3012, -3120, -3900, -4680,
    -5460, -6240);
    onClipEvent (enterFrame) {
    r += (rot-r) / 4;
    rectan._x = r;
    LEFT BUTTON
    on (release) {
    x --;
    if (x < 0) {
    x = 0;
    rot = POZ[x];
    RIGHT BUTTON
    on (release) {
    x ++;
    if (x > 8) {
    x = 8;
    rot = POZ[x];
    If I publish it with FP6 it works fine, but I have trouble
    with the fonts.
    If I publish it with FP8 the font looks great, but it doesn't
    work.
    I already checked for case differences.
    Any ideas?
    Thank you
    Roby

    Excellent!
    Thanks a lot ".:}x-=V!P=-x{:."
    May you explain me why it works now?
    What has changed?
    Thanks
    Roby
    ".:}x-=V!P=-x{:." <[email protected]> wrote
    in message
    news:fi1rc2$7jg$[email protected]..
    > this might help, you needed stricter/organized var
    declarations
    >
    > // MAIN MOVIE CLIP
    > onClipEvent (load) {
    > var r:Number = 0;
    > _root.rot = 0;
    > _root.X = 0;
    > _root.POZ = new
    Array(0, -1004, -2008, -3012, -3120, -3900, -4680, -5460,
    > -6240);
    > }
    > onClipEvent (enterFrame) {
    > r += (_root.rot-r)/4;
    > rectan._x = r;
    > }
    >
    > // LEFT BUTTON
    > on (release) {
    > _root.X--;
    > if (_root.X<0) {
    > _root.X = 0;
    > }
    > _root.rot = _root.POZ[_root.X];
    > }
    >
    > // RIGHT BUTTON
    > on (release) {
    > _root.X++;
    > if (_root.X>8) {
    > _root.X = 8;
    > }
    > _root.rot = _root.POZ[_root.X];
    > }
    >

Maybe you are looking for

  • Acrobat 7 Pro Suddenly Printing Gibberish

    Suddenly, Acrobat 7 Pro prints PDF files created in MS WORD as gibberish. I switched printers and got the same results. The files print properly using READER 9.1. Also, the files display properly on the screen in Acrobat 7. It appears to be a corrupt

  • Powerbook G4 as Media/Backup Server

    After a lot of research I still haven't figured out a plan that will suit my needs.  Im hoping someone here may be able to help out.  I have an old Powerbook G4 1Ghz with 1gig RAM running OS 10.3.9.  I don't use this machine currently, though it runs

  • Use of wizard in config

    Hi all,      When do we use wizard in configuration. What is advantage of going with wizard and manually?  Is it possible to use wizard configuration for all scenarios. Till now I have used wizard configuration.  Is there is any scenario where we do

  • How to suppress or modify CRM Billing default Split criterion

    HI, Currently invoices are getting split based on the Incoterms and payment terms but the requirement is that system should not consider or split on incoterms and payment terms. How can i achieve this ? please guide me if u have the solution. Thanks

  • Wow! CS6 let's you click through transparent areas in placed psd's!

    I just noticed this, this is great! If you cut out the background of a photo in PS and then place that in AI, you can now select things behind it as long as you click on a transparent area. Knowhattamean? Before, in CS5, if you clicked there you woul