I am trying to save a file once a Statement is reconciled . The following script takes me to a drop down box in QuickBooks.
[appleScript]
activate application “QuickBooks 2019”
tell application “System Events”
tell process “QuickBooks” --In Reconcile & Reconciliation complete
click button “Reconcile” of window “Reconcile”
delay 1
click radio button “Enter a bill for payment later” of radio group 1 of sheet 1 of window “Reconcile”
delay 0.5
click button “OK” of sheet 1 of window “Reconcile”
delay 0.5
click button “Done” of sheet 1 of window “Reconcile”
delay 0.5
click button 9 of toolbar 1 of window “Reconciliation Summary”
click checkbox “Shrink report to fit page width” of tab group 1 of sheet 1 of window “Reconciliation Summary”
click menu button “PDF” of sheet 1 of window “Reconciliation Summary”
click menu item “Save As PDF” of menu of menu button “PDF” of sheet 1 of window “Reconciliation Summary”
end tell
end tell
[/appleScript]
I am using UI Browser to get the GUI scripting but I cannot get it to access the drop down with QB or Finder.
Tried a few variations of the following script
activate application "QuickBooks 2019"
tell application "System Events"
tell process "QuickBooks"
click button "save" of sheet 1 of window "Reconciliation Summary" of window 1
end tell
end tell[/AppleScript]
The routine needs to change the path and file name which I would normally do with "keystroke "G" {command down, shift down}" but does not work and then save the result.
Thanks for looking at it Peter