All,
I am currently working on a way to script audiobook builder for batch tasking.
Now I am stuck at the point where I have to pass a file to AB for processing and don't know how to proceed here.
This is the part of the builder where I am stuck:
Attachment:
dragdrop.jpg [ 36.98 KiB | Viewed 11813 times ]
relevant part of my code looks as:
Code:
tell application "System Events"
tell process "Audiobook Builder"
-- create new project
tell window 1
click button 1
delay 1
end tell
-- name project
tell window 1
set value of text field 1 to Filename
delay 1
click button 4
end tell
-- name author
tell window 1
set value of combo box 2 to vAuthor
tell radio group 1
click radio button 2
end tell
end tell
-- add file
tell window 1
-- >here I want to pass the file stored in aFile
tell radio group 1
click radio button 3
end tell
end tell
tell window 1
click button 4
end tell
tell window 1
click button 1
end tell
end tell
end tell
Thanks for any advice,
Stefan