View Single Post
  #7  
Old October 22nd, 2005, 08:27 PM
eliezer eliezer is offline
Registered User
 
Join Date: May 2005
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
eliezer is on a distinguished road
thanks a lot for your help. i really appreciate it.

this is what i have so far:

Code:
tell application "ffmpegX"
	if the title of window 1 is "Please register" then
		perform action button 1 of window 1
	end if
	tell the content view of window 1
		set the string value of text field 5 to "/Location/To/The/File/To/Convert.avi"
		set the string value of text field 2 to "/Users/admin/Desktop/XYZ.mov"
		perform action button "Encode"
	end tell
end tell
What i want to do next is:
1) Make the file to be converted be the file that i drop onto the script icon.
2) Tell ffmpegX the settings for the target format. (I know you told me create a Preset format but i had trouble loading it)
3) I need to do something about what the file will be saved as. I want the file to be saved to the desktop, but I don't want the file to be saved as XYZ.mov. I want each file to be saved as something else.

If you don't know how to do this stuff, or if it's not possible, it's not a problem, you've helped me enough already. thanks


Also, i didn't quite understand this bit:
So, let's say [return every button of the result]. You'll get a bunch of cryptic descriptions of buttons like button id 29 of window id 7 of application "ffmpegX". So which one is the 'Try for free' button? To find that out, replace this line with [return the title of every button of the result]. That returns a much easier to read list: {"Try for free", "Enter code", "Register"}. 'Try for free' is the first button in that list. That means we can refer to it as "button 1".
Where do i type in the stuff in the square brackets?


Thanks Mikuro
__________________
1.6 ghz G5, 80GB hard disk, 512mb RAM, 17 inch moniter, os x 10.4.4

dual 2 ghz G5, 19 inch moniter, os x 10.4.4
Reply With Quote