Skip to content

Instantly share code, notes, and snippets.

@agorman
Created February 27, 2015 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agorman/8d63f989871b6ea79693 to your computer and use it in GitHub Desktop.
Save agorman/8d63f989871b6ea79693 to your computer and use it in GitHub Desktop.
ExtendScript Method Reflection 2
var obj = app.project;
var props = obj.reflect.methods;
$.writeln();
$.writeln('----------------');
for (var index in props) {
var prop = props[index];
$.write(prop.name + '(');
var signature = [];
var args = prop.arguments;
for (var j in args) {
var arg = args[j];
signature.push(arg.dataType + ' ' + arg.name);
}
$.write(signature.join(', ') + ')');
$.writeln(prop.description);
}
----------------
bind(string eventName, any function)
unbind(string eventName)
setTimeout(string eventName, any function, number milliseconds)
openSequence(string sequenceID)
importFiles(any arg1)
importSequences(any arg1)
createNewSequence(string sequenceName, string placeholderID)
deleteSequence(Sequence sequence)
exportFinalCutProXML(string exportPath, number suppressUI)
exportTimeline(string exportControllerName)
exportOMF(Sequence sequence, string filePath, string OMFTitle, number sampleRate, number bitsPerSample, number audioEncapsulated, number audioFileFormat, number trimAudioFiles, number handleFrames, number includePan)
saveAs(string saveAsPath)
save()
pauseGrowing(number pausedOrNot)
closeDocument()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment