Using bash to import/export from qt

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

Have you tried using Applications -> Automator -> Record and then let Automator record steps you want to do. If that works, it would be the easiest way to automate this.
If you want to invoke the Automator script you can use the open command from within bash
If Automator -> Record does not work for you needs, then an Applescript is the next thing you should try. If you want to invoke this from bash use the osascript command.
Applescript questions would be best asked in the Apple Applescript forum <http://discussions.apple.com/forum.jspa?forumID=724>
If you want/need more bash shell script questions answered, the Apple Unix forum would be the best bet <http://discussions.apple.com/forum.jspa?forumID=735>
And while I'm mentioning the open command, you can start *QuickTime Player* with a specific file usng open
open -a /Applications/QuickTime Player.app file.jpg
Where file.jpg could be any file that *QuickTime Player* knows how to handle.
Steps 2, 3, & 4 are operations that would be better handled via Automator or Applescript.

Similar Messages

  • Using automator to import/export from qt

    i have an operation i perform repeatedly and would like to write
    an automator 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 automator?
    can anyone point me to some info on passing parameters to qtplayer via automator?
    thanks,
    BabaG

    I would dearly like to know if there is a solution to this as well.
    Trying to bash out a Cleaner watch folder template where
    1) OSX will constantly monitor a drop folder
    2) wrap any image sequences up as Quicktimes
    3) send the Quicktime to a new folder for Cleaner to take over

  • Memory Limit for "IMPORT/EXPORT from MEMORY ID" statement

    Hi All,
    Can anyone tell me whether there is any memory limit exists for "IMPORT/EXPORT from MEMORY ID" statement.
    Like may be we can transfer xx MB of data via this......or it is open, we can transfer any amount of data to ABAP memory via this.
    Regards
    Munish Garg

    1. Each user sessions have external sessions and each external sessions have internal sessions.
    2. The programs being executed in the internal sessions can access ABAP memory
    3.ABAP memory is a storage area for internal program variables like fields, structures, internal tables,,They can be passed  between internal sessions of an external session.
    4. you can transfer data through ABAp memory using IMPORT and EXPORT statements
    5. after IMPORT FROM MEMORY ID <id> , you can use sy-subrc to check the existance of the cluster ID. here sy-subrc is not used to check whether the Import was successful or not.

  • When using Iphoto to import photo from existing folder, what happens if I delete the photo in Iphoto ? Will the original file in the folder be deleted too?

    When using Iphoto to import photo from existing folder to iphoto, what happens if:
    1. I delete that photo in iphoto? will the original file in the folder be deleted too ?
    2.  when importing, does the hard disk store 2 versions of the photo, hence occupying additional space in the harddisk?

    1 - no  --  iPhoto only manages fiel within the iPhoto library - it does not ever do anything with files outside the library
    2 - No idea what you are asking - by default (and strongly recommended) iPhoto copies the original to the iPhoto library and you delete the source file outside the iPhoto library - iPhoto alwasy has at least two versions of every photo and some times three - it always have the original, a thumbnail and once a photo is modified a preview - this is not optional - if it is not what you want then iPhoto is not the correct progrtam to be using for phopto management
    LN

  • How to import/export   from d2k

    hi
    hi please could you help me in how to import/export from d2k.
    M.P.Kiran Kumar

    FUNCTION open_ldr RETURN varchar2 IS
    out_file Text_io.File_Type;
         v_filename varchar2(255);                              
    Begin
    out_file := Text_IO.Fopen('C:sqlldr.ini', 'R'); /* create a file so that u can store sqlldr path first time it wont be there so write the path after verifying */
    text_io.get_line(out_file,v_filename);
    --message(v_filename);
    return(v_filename);
    Exception when others then
         --message('Check For Sqlldr73.exe or Sqlldr*.exe');
    v_filename := get_file_name(File_Filter=>'sqlldr Files (*.exe)|*.exe|');
    out_file := Text_IO.Fopen('C:\sqlldr.ini', 'W');     
         Text_IO.Put(out_file,v_filename);
    Text_IO.Fclose (out_file);
    if v_filename is null then
         Message('Please Select The Sqlldr Path ');
         Message('Please Select The Sqlldr Path ');
         raise form_trigger_failure;
    end if;
    return(v_filename);
    End;
         Declare
              The_userid varchar2(100):='';
              The_Password varchar2(100):='';
              The_connectstring varchar2(100):='';
              Con_Info varchar2(100):='';
              the_command varchar2(200):='';
              v_filename varchar2(100);
              cursor c1 is select tname from <table_name > /* create a table in ur schema and put all the tables which u want to export */ where tabtype = 'MASTER';
         Begin
              v_filename:=open_ldr;
         The_userid := Get_Application_Property(UserName);
                   The_Password := Get_Application_Property(Password);
                   The_connectstring := Get_Application_Property(Connect_String);
                   Con_Info := The_userid||'/'||The_Password||'@'||The_connectstring;
                   for c1rec in c1 loop
                   C2K_TRUNC_HLL_MASTERS(c1rec.tname);
                   the_command := v_filename||' Control=c:\'||c1rec.tname||'.ctl userid='||Con_Info; -- Change This According To The Path
                   -- message(the_command);message(the_command);
    Host(the_command);
                   End Loop;
                   the_command := v_filename||' Control=c:\control'||'.ctl userid='||Con_Info; -- Change This According To The Path
                   host(the_command);
                   Exception When Others Then
                        Message('Error'||' '||sqlerrm);
                        Message('Error'||' '||sqlerrm);
         End;
    If u have any problems please contact me on [email protected]
    furnish the details properly .
         

  • I've used iPhoto to import photos from my camera.HOW and WHEN can I safely disconnect my camera for the mac mini.

    I've connected my digital camera to my 2013 mac mini and used iPhoto to import photos from the camera.
    HOW and WHEN can I safely remove the camera please?

    Dismount the camera by clicking on the unmount icon on the right in the iPhoto source pane. Once it is unmounted remove it
    LN

  • Possible to use JavaScript to Import Data from XML file to pre-fill fields?

    Hi,
    I have a dynamic fill-in PDF that I want to "pre-fill" internally in my company before sending out to users who will change any pre-filled fields necessary and answer questions we did not already answer.
    We do not have LiveCycle Reader Extensions, but we can use Acrobat to import data from an XML document to pre-fill the named fields.  Is it possibly to do this task using folder-level Javascript or some other method?  I can look into this, and post my findings, but I'd like to know if it's possible or if I need to use a different programming language.

    Hi,
    I am afraid that solution was for a specific client and I can't share it. If I get a chance I will mock up an example, but this wont be for a while. From memory it was just a straight importData method. This would normally fail silently in a non-certified form, but when the form is digitally signed/certified, it works without a hitch.
    Good luck,
    Niall

  • IMPORT & EXPORT from/to compressed files directly...

    for newbies a tip to import(export) directly to(from) compressed files using pipes . Its for Unix based systems only, as I am not aware of any pipe type functionality in Windows. The biggest advantage is that you can save lots of space as uncompressing a file makes it almost 5 times or more. (Suppose you are uncompressing a file of 20 GB, it will make 100 GB) As a newbie I faced this problem, so thought about writing a post.
    Lets talk about export first. The method used is that create a pipe, write to a pipe(ie the file in exp command is the pipe we created), side by side read the contents of pipe, compress(in the background) and redirect to a file. Here is the script that achieves this:
    export ORACLE_SID=MYDB
    rm -f ?/myexport.pipe
    mkfifo ?/myexport.pipe
    cat ?/myexport.pipe |compress > ?/myexport.dmp.Z &
    sleep 5
    exp file=?/myexport.pipe full=Y log=myexport.logSame way for import, we create a pipe, zcat from the dmp.Z file, redirect it to the pipe and then read from pipe:
    export ORACLE_SID=MYDB
    rm -f ?/myimport.pipe
    mkfifo ?/myimport.pipe
    zcat ?/myexport.dmp.Z > ?/myimport.pipe &
    sleep 5
    imp file=myimport.pipe full=Y show=Y log=?/myimport.logIn case there is any issue with the script, do let me know :)
    Experts, please have a look...is it fine ? (Actually I dont have Oracle installed on my laptop(though have Fedora 6) so couldnt test the scripts)
    I posted the same on my blog too. just for bookmark ;)
    Sidhu
    http://amardeepsidhu.blogspot.com

    actually, only the compression thing runs in the background. rest proceeds like normal only. just instead of giving normal file we use pipe as a file.
    nice article about named pipes
    Sidhu

  • Import/Export from Memory ID

    hie guys
    im in a program that is importing values from a memory id however there are no values being imported and thus i want to find out wer the memory id is being given data. i tryd the wer used list and it dd not give me anything, please assist

    I managed to find the program where the export statement for the memory ID was and also where the import statement was and managed to resolve my error.
    many thanks.

  • Arabic support in isqlplus after import export from 7.3.4 to 10.2.0.3

    CANNOT DISPLAY ARABIC IN ISQL*PLUS(JUNK). APPLICATION WORKS FINE WITH ARABIC
    with Taret DB char set to US7ASCII the data is always junk old data +new inserted arabic data inserted thro isqlplus or sqlplus.
    with AR8MSWIN1256 the old data(imported in to new db from old 7.3.4 db export dump) is displayed as junk (what ever in the db) and after creating a new table data inserted, the arabic display is fine.
    How to overcome the problem of displaying old data? we have lots of data for migration.
    Thanks

    Small correction
    In DB with Char set to AR8MSWIN1256.......
    Old data exported from 7.3.4 and imported in new 10.2.0.3 db is showing arabic char as junk
    But new table created and data inserted as arabic is displaying properly.
    What has to be done such that old imported data displays arabic.
    We are using isqlplus and sqlplus to query the data
    Thanks

  • Import/Export from Access MDB to Oracle DB

    Dear Friends,
    I need to import a huge table from access to Oracle. I tried to export the file from MS Access to Oracle, it is giving error. I tried another way of doing , i first exported the data to SQL server and then using Export/Import utility of SQL Server, it has imported succesfully. I am not sure which is the best way to import data from ACCESS to Oracle.
    Kindly suggest,
    Regards,
    Vinay

    Another approach you might try goes something like this:
    1. In Access, link the destination Oracle table (for example, via File, Get External Data, Link Tables...).
    2. In Access, create an Append Query to select rows from your Access table and insert them in to the linked Oracle table.

  • IGES or VDA-FS import/export from DIADEM to/from CATIA

    We need to import/export data in either IGES or VDA-FS file format with DIADEM to/from CATIA. The data is a three dimensional array of coordinates representing the contour of a automotive seat.
    Does anyone know where to get or have such a file filter?
    Waldemar Hersacher
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

    Dear Otmar,
    I'm investigating this for a new customer project.
    IGES is a standard file format used to excange data between CAD systems.
    VDA-FS is a file format which is standardized by the german automotive industry consortium.
    Currently I have no description for the file formats nor any data files.
    I will make a new comment within 6 weeks if I need more help from you.
    Thanks Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Using HTTPService to import data from a XML file

    Hello there!
    I'm having some problem's with this import... If anyone can
    help, I would appreciate it!
    I'm using this type of information as data source:
    public var dataCollection:ArrayCollection =
    new ArrayCollection([
    { id: "P1", name: "Porto", type: "team", children: [
    { id: "R1", name: "Dr Silva", location: "Bloco 1", type:
    "member" },
    { id: "R2", name: "Dra Neto", location: "Gabinete", type:
    "member"
    { id: "P2", name: "Braga", type: "team", children: [
    { id: "R3", name: "Dr Santos", location: "Bloco 2", type:
    "member" },
    { id: "R4", name: "Dra Sonia", location: "Piso 1", type:
    "member"
    But I want to import it from a XML file like this:
    <?xml version="1.0" encoding="utf-8"?>
    <items>
    <item id="P1" name="Porto" type="team">
    <children id="R1" name="Dr Silva" location="Bloco 1"
    type="member" />
    <children id="R2" name="Dra Neto" location="Gabinete"
    type="member" />
    </item>
    <item id="P2" name="Braga" type="team">
    <children id="R3" name="Dr Santos" location="Bloco 2"
    type="member" />
    <children id="R4" name="Dra Sonia" location="Piso 1"
    type="member" />
    </item>
    </items>
    I already import the file, but can not translate the data
    into a array collection.
    private function initApp():void {
    var httpService:HTTPService = new HTTPService();
    httpService.url = "dataprovider.xml";
    httpService.resultFormat = "e4x";
    httpService.addEventListener(FaultEvent.FAULT,
    onFaultHttpService);
    httpService.addEventListener(ResultEvent.RESULT,
    onResultHttpService);
    httpService.send();
    private function onFaultHttpService(e:FaultEvent):void
    Alert.show("Error reading data file.");
    private function onResultHttpService(e:ResultEvent):void
    //Convert the xml data to a array collection
    Thank you

    Hello Peter, and thank you for your reply's.
    My problem is that I'm receiving the data from the external
    file and I don't know how to get the children in place... I mean, I
    also have some data being received form a file that I can convert
    into an array collection, but the thing is, that file doesn't have
    children structure...
    It's something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <items>
    <item id="T1" resourceId="R1" name="Cardiologia"
    startTime="25-3-09 8:0:0" endTime="25-3-09 8:30:0" />
    <item id="T2" resourceId="R2" name="Raio-X"
    startTime="25-3-09 9:0:0" endTime="25-3-09 9:15:0" />
    <item id="T3" resourceId="R3" name="Analises"
    startTime="25-3-09 12:0:0" endTime="25-3-09 12:45:0" />
    <item id="T4" resourceId="R4" name="Consulta"
    startTime="26-3-09 8:0:0" endTime="26-3-09 9:0:0" />
    </items>
    And I solve it with this (don't know if is the best):
    private function onResultHttpServiceTask(e:ResultEvent):void
    var a:Array = xmlListToObjectArray(e.result.item);
    tasks = new ArrayCollection(a);
    protected function
    xmlListToObjectArray(xmlList:XMLList):Array
    var a:Array = new Array();
    for each(var xml:XML in xmlList)
    var attributes:XMLList = xml.attributes();
    var o:Object = new Object();
    for each (var attribute:XML in attributes)
    var nodeName:String = attribute.name().toString();
    var value:*;
    value = attribute.toString();
    o[nodeName] = value;
    a.push(new ObjectProxy(o));
    return a;
    But when the children "enter in action" I don't know how to
    bring them to the array...
    This code you send it's preaty much the thing I need, but the
    thing is that I don't know how to call the children with data as
    e:ResultEvent...
    If you can help a bit more, I would really appreciate...
    Thank You

  • Using Oracle Forms Importing Data From SQL Server into Oracle Tables.

    Dear All,
    We are using Oracle Forms 10g in windows XP and having OAS 10g and Oracle database 9i.
    How can we import data from SQL Server 2005 into Oracle tables using Oracle Forms?
    Thanks & Regards
    Eidy

    I have no idea what "Oracle Hetrogenius Services" is, so I can't help you with that, sorry.
    SQL Developer might also assist you. SQL Developer can connect to SQL Server as well as Oracle and has some tools for migration. See the documentation for details:
    http://download.oracle.com/docs/cd/E12151_01/doc.150/e12156/toc.htm
    For additional help on using SQL Developer for this task, please consult Support or the SQL Developer forum: SQL Developer
    Hope this helps,
    Jacob

  • IMPORT/EXPORT FROM DATA BUFFER

    Hi,
    I have some code like this:
    DATA: b type xstring.
    DATA: a type xstirng.
    EXPORT '1234' TO DATA BUFFER b.
    IMPORT a FROM DATA BUFFER b.
    for some reason a does not get set to the value that I assigned to b.
    However, this code works:
    DATA: b type xstring.
    DATA: a type xstirng.
    EXPORT some_internal_table TO DATA BUFFER b.
    IMPORT a FROM DATA BUFFER b.
    Does anybody know why internal tables work but other data types do not?
    Thank you.

    EXPORT '1234' TO DATA BUFFER b, not working because, you did not assign a variable name to '1234' to be stored as in data buffer B.
    Change the code to:
    DATA: b type xstring.
    DATA: a(4) type c.
    EXPORT a = '1234' TO DATA BUFFER b.
    IMPORT a FROM DATA BUFFER b.
    It's working in the second case because, some_internal_table  is the name of the variable in databuffer B and you are importing into the same variable in IMPORT
    Regards
    Sridhar

Maybe you are looking for