I should be able to figure out the rest of the program, but I am having an error when trying to open the File>Import>From IIF Files… dialog box. Here is the script I am using:
tell application "QuickBooks 2009"
activate
end tell
tell application "System Events"
tell process "QuickBooks"
tell menu bar 1
tell menu bar item "File"
tell menu item "Import"
tell menu item "From IIF Files..."
click menu item "From IIF Files..."
end tell
end tell
end tell
end tell
end tell
end tell
This is the error I get:
System Events got an error: Can’t get menu item “Import” of menu bar item “File” of menu bar 1 of process “QuickBooks”.
This is the even log:
tell application “System Events”
click menu item “From IIF Files…” of menu item “From IIF Files…” of menu item “Import” of menu bar item “File” of menu bar 1 of process “QuickBooks”
“System Events got an error: Can’t get menu item "Import" of menu bar item "File" of menu bar 1 of process "QuickBooks".”
I am sure I am making some minor error. Any help would be greatly appreciated.
Model: iMac
AppleScript: 2.2.1
Browser: Safari 525.20.1
Operating System: Mac OS X (10.5)