using bash to import/export from qt

Discussion in 'Mac Programming' started by BabaG, Nov 26, 2008.

  1. BabaG macrumors member

    Joined:
    Jan 5, 2007
    #1
    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
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    Does it need to be bash? I bet AppleScript would be easier.

    -Lee
     
  3. BabaG thread starter macrumors member

    Joined:
    Jan 5, 2007
    #3
    i've just used bash a bunch and applescript never.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    You need AppleScript's UI scripting to do this. Bash can call AppleScript commands btw. Check out "man osascript".
     
  5. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #5
    Yep, very powerful combo. I used Bash + Applescript to generate some Doxygen Xcode docsets for a library I'm writing. Works well.
     

Share This Page