New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Applescript help please - Mpeg Streamclip (GUI)

Post Reply New Thread Subscribe

Thread Tools

Member Since: Mar 15, 2012
Posts: 1
mikmik000 is on a distinguished road

mikmik000 is offline
Hey ^-^

I'm trying to write a script for auto conversion of a selected file in the finder to .mov (DV-pal), using Mpeg Streamclip. the specific conversion settings I'm looking for are:
Quicktime movie (this will be done through the "Convert to other formats" option, since the convert to quicktime movie has some bugs) > mov dv-pal, highest quality, 25 fps, de-interlaced.
Since mpeg streamclip is not apple-scriptable, I'm writing this as a GUI script.

This is what Iv'e got so far-

---This makes the script run on the selected file in finder

tell application "Finder"
	open selection using application file "MPEG" of folder "Applications" of startup disk
end tell

set appName to "MPEG Streamclip"

	---This runs the app
	tell application appName
	end tell
	tell application "System Events"
		delay 0.2
		---This is file>export to other formats
		click menu item "Export to Other Formats…" of menu "File" of menu bar item "File" of menu bar 1 of application process "MPEG Streamclip" of application "System Events"
		delay 0.1

		---This is entering the Options window
		tell window "MPEG Streamclip - Other Formats"
			click button "Options..." of window "MPEG Streamclip - Other Formats" of application process "MPEG Streamclip" of application "System Events"
		end tell
		---This is to press "Settings" > This is where the problem is.
		tell window "Movie Settings"
			click button "Settings…" of group 1 of window "Movie Settings" of application process "MPEG Streamclip" of application "System Events"
		end tell
	end tell -- tell application "System Events"
end try

It all seems to work fine, up until the "Settings" button part.
I tried writing this line with and with out the "group 1" part (I thought this might be the problem since this window has 2 different buttons called "Settings...", one for audio and one for video - I'm looking for the video one).
If you want, I can make a screen shot of the specific window and button I'm trying to press.

I'm pretty new to apple scripting, this is just what I picked up over the last couple of days.. But I really need some help with this. Having a script like this one will save me a lot of time spent putting in the same settings over and over again.

I already know how to put in the rest of the settings I need, so I just need help with this one thing for the script to work.

QUOTE Thanks
Mark FX

Mark FX's Avatar
Member Since: Aug 13, 2011
Location: West Sussex, UK
Posts: 180
Mark FX has a spectacular aura about

Mark FX is offline
UI scripting can get a bit complex, I dont like to steer people away from the great Mac Forums, but you
need expert Applescript help with this one, so I would suggest you visit the MacScripter forums at the lnk
below, there are some really smart Applescripters over their, but do come back and visit here with more
general Applescript questions.


Regards Mark
QUOTE Thanks

Post Reply New Thread Subscribe

« make ERROR on Mac OS 10.6.8 | Shutdown/Logout script »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Problems with MPEG Streamclip 1.9.3b4 Ike Movies and Video 2 06-25-2011 11:05 AM
*.avi file won't play audio in MPEG Streamclip nor Quicktime vesselofclay Movies and Video 11 05-22-2011 01:52 AM
MPEG Streamclip to convert DVD to FCE bionicbobt Movies and Video 0 04-15-2010 06:37 PM
Logic Express and Applescript via GUI Scripting albertaurus Music, Audio, and Podcasting 0 04-09-2009 01:13 PM
MPEG Streamclip stlboi OS X - Apps and Games 1 01-15-2007 04:49 PM

All times are GMT -4. The time now is 08:11 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?