This request is simple but I am having trouble working out how to do it.
I am running a script that saves a Quickbooks report (had a lot of help getting that to work) now my issue is how to make sure its saved in the correct place .
Once a file has been saved the folder it was saved to remains active. But the 1st time is the issue.
The result of following script in my case is a single folder, but I cannot figure out how to click on the folder programmatically. The alternative before I start is to set the default folder but cannot figure out how to do that either . It seems that you have had to do something with a folder, save a file for it to become the default.
tell application "QuickBooks 2019" to activate
tell application "System Events" to tell process "QuickBooks 2019"
--Enter the search box add name of Folder
set value of text field 3 of sheet 1 of sheet 1 of window "Reconciliation Summary" to "\"etrade 2021\""
click button 1 of text field 3 of sheet 1 of sheet 1 of window "Reconciliation Summary"
end tell