Q7

select-item command to use with get-item

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.3
  • Fix Version/s: 1.2.4
  • Component/s: ECL, Runtime
  • Labels:
    None
  • Test Mode:
    Q7
  • Q7 test:
    SelectiveProjectsRemoval

Activity

Hide
komaz added a comment - 09/Aug/12 5:27 PM

Done, here's a sample script which removes all projects from workspace except for the project named 'ew':

with [get-view "Q7 Explorer" | get-tree] {
collapse-all
get-items | foreach {
if [get-property caption -raw | not-eq "ew" ] {
select-item
get-menu Delete | click
with [get-window "Delete Resources"] { get-button "Delete project contents on disk (cannot be undone)" | click get-button OK | click }
}
}
}

Show
komaz added a comment - 09/Aug/12 5:27 PM Done, here's a sample script which removes all projects from workspace except for the project named 'ew': with [get-view "Q7 Explorer" | get-tree] { collapse-all get-items | foreach { if [get-property caption -raw | not-eq "ew" ] { select-item get-menu Delete | click with [get-window "Delete Resources"] { get-button "Delete project contents on disk (cannot be undone)" | click get-button OK | click } } } }

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    09/Aug/12 3:36 PM
    Updated:
    10/Aug/12 1:49 PM
    Resolved:
    09/Aug/12 5:27 PM