PDA

View Full Version : using bash to import/export from qt




BabaG
Nov 26, 2008, 05:54 PM
i have an operation i perform repeatedly and would like to write
a bash script to do it automatically.

what i'd like to do is:

1. open an image sequence in qtplayer
2. file--->export
3. set options (like custom size, what codec)
4. save the export as the same filename as the first file of the image sequence

can this be done via bash?
can anyone point me to some info on passing parameters to qtplayer via bash?

thanks,
BabaG



lee1210
Nov 26, 2008, 06:18 PM
Does it need to be bash? I bet AppleScript would be easier.

-Lee

BabaG
Nov 26, 2008, 06:38 PM
i've just used bash a bunch and applescript never.

kainjow
Nov 27, 2008, 12:24 AM
You need AppleScript's UI scripting to do this. Bash can call AppleScript commands btw. Check out "man osascript".

Cromulent
Nov 27, 2008, 01:51 AM
Bash can call AppleScript commands btw. Check out "man osascript".

Yep, very powerful combo. I used Bash + Applescript to generate some Doxygen Xcode docsets for a library I'm writing. Works well.