Splasm Software Discussions

a user community for the betterment of Splasmkind
It is currently Wed Apr 24, 2024 5:09 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun May 05, 2013 5:28 am 
Offline

Joined: Sun May 05, 2013 5:17 am
Posts: 1
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
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


Top
 Profile  
Reply with quote  
PostPosted: Mon May 06, 2013 10:17 am 
Offline
Administrator
Administrator
User avatar

Joined: Tue Dec 06, 2011 5:25 pm
Posts: 786
In the past, another user wrote Apple-scripting for doing something just like you're looking to do. Here's a link to an old post about that: viewtopic.php?f=13&t=654&p=2040&hilit=audiobook+batch+script#p2040

Perhaps you could take a look at what thorix did and use that as a starting point or just try out his existing methods.

_________________
Allan Woodall
Phosphorescent Phage
Splasm Software
http://www.splasm.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group


Home | Products | Support | Forum | Store | Contact | News | Privacy
Copyright © 2002- Splasm Software, Inc.