QuickTimeX in Applescript / Scripting Bridge

I would like to be able to grab the metadata of the currently playing file in Quicktime X using ScriptingBridge and Ruby, so far I have the following code

require 'osx/cocoa'
OSX.require_framework 'ScriptingBridge'

@app = OSX::SBApplication.applicationWithBundleIdentifier("com.apple.QuickTimePlayerX")

@app.documents.each do |movie|
  # What now?!
end

      

But I can't find any functionality in the QuickTime X Application Dictionary to get the metadata from an object document

(same data you can see in QT's Show Movie Inspector) - does anyone have any ideas?

+2


a source to share


2 answers


How about downloading QuickTime Player 7 and using that instead? It will not replace QuickTime Player X and has many features that X does not (although you will need the pro serial number to access some features from the GUI). Apple is still making this version available for a good reason!



Alternatively, if you have specified some Obj-C code, you can go ahead and access the metadata directly, as shown in the picture here .

0


a source


A quick inspection of objects can be done with the Looksee gem - it tells you what methods are available on a ruby ​​object. I don't know if it will work correctly with ScriptingBridge, but it tries quickly.



0


a source







All Articles