Final cut pro custom shares to my scriptable application which is not responded

120 views Asked by At

I'm trying to develop osx application that is respond final cut pro custom share.

final cut pro custom share to my application

I have been looking for references a lot for 2 weeks. And I did followings.

<key>NSAppleScriptEnabled</key>
<true/>
<key>OSAScriptingDefinition</key>
<string>pairs.sdef</string>
<key>NSAppleEventsUsageDescription</key>
<string>hello</string>
<key>com.apple.proapps.MediaAssetProtocol</key>
<dict>
</dict>
  • Implemented everything need and passed test apple script code from editor
tell application "My Application"
    make new asset with properties ¬
        {name:"MyNewAsset", |metadata|:{|com.apple.proapps.share.episodeID|:"MyNewEpisode"}, dataoptions:{|availableMetadataSets|:{"Camera View", "General View"}}}
    set newAsset to result
    set theLocation to location info of newAsset
end tell

Result : 
{folder:file "Macintosh HD:Users:handsome:Documents:gemiso"}

Then, I added custom share destination in final cut pro and point to my application enter image description here

I executed my application with xcode debug mode.

I click Final Cut Pro > File > Share > 'my application'

But my application didn't respond.

I lost way. please help me

1

There are 1 answers

0
muyoungko On

I found way.

Reason why my application did not respond is because of 2 conditions.

  1. packaged and provisioning should be above at least Developer ID(Distribute directly to customers)

  2. It should be in application folder