Get current location in QT movie

I wrote a script that gets the current time of a Quicktime movie and displays a dialog that tells you where in the movie you are.
I ran the script on another movie and got a different result as to where the script thought the movie was stopped on. Why would this happen. I went to 1 minute at each movie, 1 movie yielded 36000, the other yielded 60000. Why would they be different. How can I get an absolute time as to where in the Quicktime movie I am at.
thanks for any help in solving this one.
tell application "QuickTime Player 7"
          set x to current time of document 1
          set y to x / 36000 -- 36000 ticks in a minute
          set y to round ((y * 100) / 100) rounding to nearest
end tell

figured it out, dont ask me why you divide by 60 but no matter what movie you are playing, this code will give you the location in minutes in the movie.
tell application "QuickTime Player 7"
          set x to (current time of document 1) -- / (time scale of document 1)
          set y to time scale of document 1 --         looney=1000        bugs life=600
          (x / y) / 60
end tell

Similar Messages

  • Get current LOCATION in ProcessFlow (PF) or Mapping

    How can I get current LOCATION from running PF or Mapping?
    I need to run PF.
    Name of PF passing via parameter of PF.
    I know about wb_rt_api_exec.run_task, but first parameter is LOCATION.

    It is possible to get location from ALL_RT_AUDIT_EXECUTIONS OWB public view (column OBJECT_LOCATION_NAME),
    if I understand your requirements properly.
    Filter rows from ALL_RT_AUDIT_EXECUTIONS via execution_audit_id, in processflow you can use predefined variable AUDIT_ID for currently running processflow audit id
    Regards,
    Oleg

  • How to get Current Location in a Android Emulator using Flex

    Hi
    In the following code I am able to plot the Location using Latitude and Longitude but the requirement is
    in an Android Emulator on launch of the application I need google map to display the users current location,
    How can this be achieved ??? I tried to get the Latitude and Longitude of the current position using
    geoLocation class by I am not able to get that working,
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="Home">
        <s:layout>
            <s:VerticalLayout />
        </s:layout>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.google.maps.LatLng;
                import com.google.maps.MapEvent;
                import com.google.maps.MapType;
                import com.google.maps.controls.PositionControl;
                import com.google.maps.controls.ZoomControl;
                import flash.sensors.Geolocation;
                private var myGeo:Geolocation;
                protected function showBtn_clickHandler(event:MouseEvent):void
                    if(Geolocation.isSupported == 'true')
                        myGeo = new Geolocation();
                        myGeo.setRequestedUpdateInterval(100);
                        myGeo.addEventListener(GeolocationEvent.UPDATE, onUpdate);
                    else
                        myTextArea.text = "Device Not Supported";
                private function onUpdate(event:GeolocationEvent):void
                    myTextArea.text += "Hi"+ "/n"+ event.latitude.toString() + "/n" +
                        event.longitude.toString();
                protected function myMap_mapevent_mapreadyHandler(event:MapEvent):void
                    myMap.setCenter(new LatLng(24,58),9,MapType.NORMAL_MAP_TYPE);
                    myMap.addControl(new ZoomControl);
                    myMap.addControl(new PositionControl);
            ]]>
        </fx:Script>
        <s:Button id="showBtn" label="Show" click="showBtn_clickHandler(event)"/>
        <s:TextArea id="myTextArea" width="100%" height="50%" />
        <maps:Map id="myMap" width="100%" height="50%"
                  xmlns:maps="com.google.maps.*"
                  sensor="true"
                  key="ABQIAAAA2Fwy6HLBheYSAWRBEZKwEhRLum8XdHegG17d4EymNgK0o7h2qRRWVBVQywiGHEiGtKahjfGW8xxc RA"
                  mapevent_mapready="myMap_mapevent_mapreadyHandler(event)"
                  url="http://www.xyz.com"/>
    </s:View>

    Geolocation isn't supported in the Emulator. You'll have to set up a test case that gives the geolocation without relying on the Emulator.

  • How do i get Current location price(currency) in my application ?

    Hello I am using in app purchase and in this i want to use local curency using Itunes.
    So is there any idea ? or Other option to do this?

    Specifically what subdirectory are you looking for. I'd suggest your issue may be with using Open Office, have you attempted any help forums from that app?

  • How do I move a picture so that it can be used in multiple projects without removing it from current location

    I am organizing several hockey pictures and I am trying to make various projects from the pictures and sometimes I want the same picture in more than one project/album/etc.. Each time I duplicate the version in attempts to move just one of the versios, both are moved to new location and removed from current location. I would greatly appreciate help. Thank you

    Piling on  :  read this.  And then read this.
    Think this:
    Projects are _storage_ containers.
    Albums are _viewing_ containers.
    (In mind keep this:  The naming of "Projects" is the worst interface decision made by Aperture's designers.)
    The Image that is created when you import a digicam file is _stored_ in one and in only one container.
    You can _view_ the Image in as many viewing containers as you want.
    Store them by shoot unless you have a better, complete, workflow.  Don't ever move them from their storage container, except to delete them.
    View them by _output project (small "p")_.  Create as many of these as you need.

  • I'm having trouble with "maps" on Macbook Pro, iPad and iPhone.  It shows my current location and hour away from where I am.  As soon as a move iPhone away from my wifi at home to cellular it shows my correct location.  No help from Time Warner.

    What can I do to get "maps" to work on my Macbook Pro, iPad and iPhone when connected to wifi at home.  iPhone "maps" work fine when connected to cellular service. Maps on wifi shows me about 55 minutes away from my current location.  Very frustrating.  I called Time Warne,r my service provider, but they had no answers since they were not knowledgeable of this situation.  Anyone else having problem?  I just updated all devices to newest update.  Is that the problem.

    Did you bring your wireless router with you? If so, it's possible the iPad is getting its location through the router and the router still "thinks" it's where you used to live.
    Try taking your iPad to another location where there is wifi (such as a coffee shop). Then, try an app that uses location services. If it's accurate at another location, then the source of your problem is your router.
    ~Lyssa

  • How to get the name of the city and state of the current location of the user

    Hi all
             i need to get the name of the city and state (full address) of the current location of the user.
    need help.

    The best way to do this is to put the monitor name as a property bag in the script and pass that to your event details. Otherwise, we're looking at querying the database each time the monitor generates an event, and this is overhead that is really not
    necessary. The other option, which is just even worse in terms of performance, is to use powershell to query the SDK for the monitor name. Both of these options are not going to be a good solution, because now you need to implement action accounts that can
    either query the database or the sdk.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • How to get the current location text in JTextPane

    hi
    i want to get the current location text in JTextPane ...iam useing
    caretPos = jtpMain.getCaretPosition();
    iam geting the current Locations at the same time i want to read the entery current line
    i used like this
    StartPos=jtpMain.getText();
    but iam geting entry data in JTextPane ... how can get current Locatin data ...
    pls help me

    If I understood your request, what you would like to do is to be able to retrieve Start and End Positions of a given line (a line and NOT the whole content of the JTextPane).
    JTextPane is a graphical component that is bound to a logical document. Documents are structured in elements. What defines an element is up to you to decide if you extend your own document but elements are by default paragraphs (runs of text ended by a carriage return '\n' character). So, I think that what you want to do is to retrieve the Start and End positions of the
    paragraph over which the caret is currently positionned. Then I think you have got to do the following :
    int intStartPos;
    int intEndPos;
    int intCaretPos;
    javax.swing.text.StyledDocument docStyledDoc;
    javax.wing.text.Element eleParagraph;
    intCaretPos = jtpMain.getCaretPosition( );
    //Get a reference to the default styled document bound to the JTextPane component
    docStyledDoc = jtpMain.getStyledDocument( );
    //Get the paragraph element from the document over which the caret is positionned
    eleParagraph = docStyledDoc.getParagraphElement(intCaretPos);
    //Get paragraph's offsets
    intStartPos = eleParagraph.getStartOffset( );
    intEndPos = eleParagraph.getEndOffset( );
    hi
    i want to get the current location text in JTextPane
    ...iam useing
    caretPos = jtpMain.getCaretPosition();
    iam geting the current Locations at the same time i
    want to read the entery current line
    i used like this
    StartPos=jtpMain.getText();
    but iam geting entry data in JTextPane ... how can
    get current Locatin data ...
    pls help me

  • Get Current File Location in ADOBE form

    Hi All
    I need to get the location and file name of current file upon http submit in the form.
    How can we get current file location in abobe form.
    I am trying to use JavaScript var path = window.location.pathname;
    Also tried app.activeDocument.path property. But this does not work either.
    Any inputs will be really helpful
    Thanks
    Kaushal

    Hi Suhail,
    You can query the runtime on this, and these are some examples on how to get this:
    You will need to find the correct location:
    select location_name
    from all_rt_locations
    where location_type = 'File System'
    You will also need the path:
    select PARAMETER_VALUE from ALL_RT_LOCATION_PARAMETERS
    where location_name = 'SRC_FILES_LOC'
    and PARAMETER_NAME = 'RootPath'
    Do NOTE that the location type and RootPath things are case sensitive.
    For the file name..., I think you will have to dig around in the mapping. I don't have an exact example but this is in the direction you will need to be looking if you want to select this from the repository:
    -- This script selects all mappings, its operators and the binding to the repository objects
    -- You can use this to assess the impact of a change to a repository object to your mappings
    -- The script will ask for a parameter specifying the project name. Note that this is case sensitive
    set pages 999
    col PROJECT format a20
    col MODULE format a20
    col MAPPING format a25
    col OPERATOR format a20
    col OP_TYPE format a15
    col REP_OBJECT format a30
    select mod.project_name PROJECT
    , map.information_system_name MODULE
    , map.map_name MAPPING
    , cmp.map_component_name OPERATOR
    , cmp.operator_type OP_TYPE
    , nvl(cmp.data_entity_name
    , '-- No Value --'
    ) REP_OBJECT
    from all_iv_xform_maps map
    , all_iv_modules mod
    , all_iv_xform_map_components cmp
    where mod.information_system_id = map.information_system_id
    and map.map_id = cmp.map_id
    and mod.project_name = '&Project'
    order by 1,2,3,4
    Hope that this is something that you can take and solve your problem with...
    JP

  • IOS Maps cannot get my current location?

    Wondering if anyone can help...I got a new internet modem last week..as my other modem stopped working properly. Beforehand, I was able to get my current location no problem. Since I got the new modem..my iPod Touch (5th Gen) cannot get my current location. All it says "Cannot Determine Location"
    I ask Siri a question about my current location and it can't find my current location either, give me near businesses that I would like to go to e.g A Restuarant or give me local weather.
    Any thoughts on what should I do...I have tried resetting the network settings and my last resort would be to restore my iPod as everything else on it is working perfectly.
    My home address is not fully correct but worked with the last modem I had, and thought it might work with this new internet modem (WiFi) from the same company. Should I change it to the correct address as it should be or leave it alone?
    Any suggestions or advice would be greatly appreciated on how to fix this problem. It's preety annoying 
    Thanks so much.

    For location the iPod uses the location of nearby wifi routers that are in Apple's database. You do not have to be connected to the network/router to use that router's location. Thus, it appears that the iPod can't see a nearby router that is in Apple's database. Apple continuously updated their database based on info they obtain from iPhones. No one has been able to find a way to inform Apple of a router or correct is location.
    You can confirm that by going to place with a know located router like Starbucks or McDonalds
    Make sure someone with an iPhone comes over and uses wifi at your house.

  • HT1657 I can't locate my rental movies. Where does it get stored?

    I can't locate my rental movies. Where does it get stored?

    If you've rented and downloaded it directly on your iPad then it should be in the Videos app :
    Is it in there ?

  • Does anyone know Hyperion Enterprise Reporting 6.4.1.1? This was installed before i got to my current location. When I try to start it I get an error "repeng32.dll" error.

    This was installed before i got to my current location. When I try to start it I get an error "repeng32.dll" error.

    Sounds like an issue with the current installation.  May need to uninstall/reinstall.  Hyperion Enterprise Reporting has a seperate installer than that for just Hyperion Enterprise so it's possible that the reporting component isn't even installed.

  • JSplitPane getting Divider Location after Move

    How can I get the location of the divider after the user moves it. The code below is 1 move behind.
       final BasicSplitPaneUI paneUi = (BasicSplitPaneUI) questionsSplitPane.getUI();
        paneUi.getDivider().addMouseListener(new MouseAdapter()
          public void mouseReleased(MouseEvent e)
            questionsChartDividerLocation = paneUi.getDividerLocation(questionsSplitPane);
        });Use Case:
    Starting location = 60;
    User Moves to 90;
    questionsChartDividerLocation = 60;
    User Moves to 70;
    questionsChartDividerLocation = 90;

    How can I get the location of the divider after the user moves it.The divider location can also move when the user resizes the frame. If the size of the split pane is changed the the size of each component added to the split pane may change depending on how the "resize weight" property of the split pane is set, which in turn will cause the divider to change location.
    So if you want to know about any change in location of the divider then you should probably be using a PropertyChangeListener (not a MouseListener) and handle the "dividerLocation" property change event. Using this approach you won't need to worry about using the invokeLater() method.
    Also, why do you you use the UI to get the divider locaton? The split pane has a method for this.

  • Any way of getting your current location in Numbers for iOS

    I was looking for a way to get geographic location information from the iPad Core Location API from within Numbers and based on the iPad's location, a cell's value would change based on the location.
    Does anyone know if Numbers supports location information or any way for numbers to ascertain the location of the iPad?
    Thank you.
    Steve

    Nice folks there. I met a few of them last night at the NYC InDesign user group meeting.
    If they can help, that's great.
    Bob

  • I cannot get my current location o.O

    Hiya all...
    I have a 2G Iphone and i recently updated it to 3.1.2 OS
    It was 3.0 before that and i could easily locate my current location on wifi and all the applications that needed to locate me could do it.
    Now after i upgraded to 3.1.2, i cant do it anymore
    none of my application can locate my phone nor can i locate myself on the map
    I have the location service in my settings on so i really donno what to do now..
    Thanks in advance.
    Rami

    It doesn't have a GPS chip but it does have the Location Services feature and calculates it's location based upon known cellular tower and wifi locations.

Maybe you are looking for

  • Another connection problem (with a lot of solution advices tried o

    hi everybody, since yesterday i'm a proud owner (more or less) of a zen x-fi. the only thing that dri'ves me crazy is that i can't get it working with windows. first of all the system config: Desktop PC (P4 on 95P Express chipset) Windows XP Pro SP3

  • How do I change the name of my movies in Apple TV from Unknown Genre

    I assume I would change it in iTunes?  When I go to Computers on Apple TV, I get Music, Movies etc., but my movies are listed under "Unknown Genre" Thanks for your help Cheers

  • SQL 2008 R2 SP3 ugrade failure

    SQL 2008 R2 SP3 upgrade failure Current Version: Microsoft SQL Server 2008 R2 (SP2) - 10.50.4305.0 (X64) Apr 3 2014 17:55:58 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <x64>(Build 7601: Service Pack 1) (Hypervis

  • 'Photoshop' missing

    Hey there, I am a former Bridge CS6 Mac user who has upgraded to CC recently. I've noticed that CC does not have "Tools - Photoshop - Image Processor" menu item anymore - the entire 'Photoshop' menu is gone. I did some forum search, and have seen peo

  • I can't access .psd file as my trial has Expied!

    I'm completely new to Photoshop. I started with a free trial and learned to create some graphics. When I saved the files it saved it as a .psd file. My trial ended so I signed up for an account and I picked the one for $9.99. I tried to access my wor