Update send to feature to send to TV app on 10.15.

This commit is contained in:
Damiano Galassi committed 2019-10-15 08:34:35 +02:00
1 parent 6bb26182ba
commit dbe5080541
9 files changed
+112 -77

No files matched your search

+7 -3
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.68" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.68"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15504"/>
</dependencies> </dependencies>
<objects> <objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication"> <customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -498,7 +498,11 @@
<point key="canvasLocation" x="-244" y="-303"/> <point key="canvasLocation" x="-244" y="-303"/>
</menu> </menu>
<customObject id="419" customClass="NSFontManager"/> <customObject id="419" customClass="NSFontManager"/>
<customObject id="449" userLabel="AppDelegate" customClass="AppDelegate" customModule="Subler" customModuleProvider="target"/> <customObject id="449" userLabel="AppDelegate" customClass="AppDelegate" customModule="Subler" customModuleProvider="target">
<connections>
<outlet property="sendToExternalApp" destination="597" id="Kz4-8d-I4D"/>
</connections>
</customObject>
<customObject id="530" customClass="SPUStandardUpdaterController"/> <customObject id="530" customClass="SPUStandardUpdaterController"/>
</objects> </objects>
</document> </document>
+28 -27
View File
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14868" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14868"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController"> <customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
<connections> <connections>
<outlet property="destButton" destination="86l-GG-SpO" id="F1P-Kx-280"/> <outlet property="destButton" destination="86l-GG-SpO" id="F1P-Kx-280"/>
<outlet property="sendToExternalApp" destination="zVi-vU-sh2" id="blI-Vu-abD"/>
<outlet property="view" destination="UlG-O3-eNc" id="hzl-ex-WZi"/> <outlet property="view" destination="UlG-O3-eNc" id="hzl-ex-WZi"/>
</connections> </connections>
</customObject> </customObject>
@@ -22,7 +23,7 @@
<rect key="frame" x="110" y="71" width="69" height="18"/> <rect key="frame" x="110" y="71" width="69" height="18"/>
<buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nig-pN-efw"> <buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nig-pN-efw">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.optimize" id="2oW-EB-1dq"> <binding destination="-2" name="value" keyPath="self.options.optimize" id="2oW-EB-1dq">
@@ -36,7 +37,7 @@
<rect key="frame" x="110" y="498" width="146" height="18"/> <rect key="frame" x="110" y="498" width="146" height="18"/>
<buttonCell key="cell" type="check" title="Clear existing metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ"> <buttonCell key="cell" type="check" title="Clear existing metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.clearExistingMetadata" id="PhG-DP-JFS"> <binding destination="-2" name="value" keyPath="self.options.clearExistingMetadata" id="PhG-DP-JFS">
@@ -50,7 +51,7 @@
<rect key="frame" x="110" y="25" width="134" height="18"/> <rect key="frame" x="110" y="25" width="134" height="18"/>
<buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA"> <buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.autoStart" id="ag1-8O-XDb"> <binding destination="-2" name="value" keyPath="self.options.autoStart" id="ag1-8O-XDb">
@@ -64,7 +65,7 @@
<rect key="frame" x="110" y="335" width="111" height="18"/> <rect key="frame" x="110" y="335" width="111" height="18"/>
<buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="240-c7-2UW"> <buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="240-c7-2UW">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.organize" id="phH-MF-SOh"> <binding destination="-2" name="value" keyPath="self.options.organize" id="phH-MF-SOh">
@@ -78,7 +79,7 @@
<rect key="frame" x="110" y="299" width="142" height="18"/> <rect key="frame" x="110" y="299" width="142" height="18"/>
<buttonCell key="cell" type="check" title="Load external subtitles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="59T-kp-mV1"> <buttonCell key="cell" type="check" title="Load external subtitles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="59T-kp-mV1">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.subtitles" id="BZp-nF-g91"> <binding destination="-2" name="value" keyPath="self.options.subtitles" id="BZp-nF-g91">
@@ -92,7 +93,7 @@
<rect key="frame" x="176" y="113" width="128" height="17"/> <rect key="frame" x="176" y="113" width="128" height="17"/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="6jC-r9-LzT" id="8bb-Gy-KAS"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="6jC-r9-LzT" id="8bb-Gy-KAS">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" autoenablesItems="NO" id="BBw-yf-xUC"> <menu key="menu" title="OtherViews" autoenablesItems="NO" id="BBw-yf-xUC">
<items> <items>
<menuItem isSeparatorItem="YES" state="on" id="6jC-r9-LzT"/> <menuItem isSeparatorItem="YES" state="on" id="6jC-r9-LzT"/>
@@ -129,7 +130,7 @@
</constraints> </constraints>
<popUpButtonCell key="cell" type="roundRect" title="mp4" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="10" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="iXb-rA-1f3" id="Tgc-fW-mN5"> <popUpButtonCell key="cell" type="roundRect" title="mp4" bezelStyle="roundedRect" imagePosition="left" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="10" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="iXb-rA-1f3" id="Tgc-fW-mN5">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" autoenablesItems="NO" id="PLh-aR-2Pj"> <menu key="menu" title="OtherViews" autoenablesItems="NO" id="PLh-aR-2Pj">
<items> <items>
<menuItem title="mp4" state="on" tag="10" id="iXb-rA-1f3"/> <menuItem title="mp4" state="on" tag="10" id="iXb-rA-1f3"/>
@@ -200,7 +201,7 @@
<rect key="frame" x="176" y="133" width="128" height="17"/> <rect key="frame" x="176" y="133" width="128" height="17"/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="4en-ZA-qlS"/> <menu key="menu" title="OtherViews" id="4en-ZA-qlS"/>
</popUpButtonCell> </popUpButtonCell>
<connections> <connections>
@@ -232,7 +233,7 @@
</constraints> </constraints>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CbR-eu-sGI"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CbR-eu-sGI">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="ptP-wd-Rxc"/> <menu key="menu" title="OtherViews" id="ptP-wd-Rxc"/>
</popUpButtonCell> </popUpButtonCell>
<connections> <connections>
@@ -256,7 +257,7 @@
<rect key="frame" x="192" y="412" width="111" height="17"/> <rect key="frame" x="192" y="412" width="111" height="17"/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UOb-Qe-IPw"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="UOb-Qe-IPw">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="ytE-Us-3gv"/> <menu key="menu" title="OtherViews" id="ytE-Us-3gv"/>
</popUpButtonCell> </popUpButtonCell>
<connections> <connections>
@@ -302,7 +303,7 @@
<rect key="frame" x="202" y="392" width="111" height="17"/> <rect key="frame" x="202" y="392" width="111" height="17"/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nqF-p0-mT7"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="nqF-p0-mT7">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="U0q-ED-kQf"/> <menu key="menu" title="OtherViews" id="U0q-ED-kQf"/>
</popUpButtonCell> </popUpButtonCell>
<connections> <connections>
@@ -338,7 +339,7 @@
<rect key="frame" x="202" y="438" width="111" height="17"/> <rect key="frame" x="202" y="438" width="111" height="17"/>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gZb-sF-UQs"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gZb-sF-UQs">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="0QM-sv-vRX"/> <menu key="menu" title="OtherViews" id="0QM-sv-vRX"/>
</popUpButtonCell> </popUpButtonCell>
<connections> <connections>
@@ -363,7 +364,7 @@
<rect key="frame" x="110" y="317" width="119" height="18"/> <rect key="frame" x="110" y="317" width="119" height="18"/>
<buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI"> <buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.fixFallbacks" id="W1e-uB-NXG"> <binding destination="-2" name="value" keyPath="self.options.fixFallbacks" id="W1e-uB-NXG">
@@ -377,7 +378,7 @@
<rect key="frame" x="110" y="227" width="160" height="18"/> <rect key="frame" x="110" y="227" width="160" height="18"/>
<buttonCell key="cell" type="check" title="Complete tracks language" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="cxz-2q-RIP"> <buttonCell key="cell" type="check" title="Complete tracks language" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="cxz-2q-RIP">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.fixTrackLanguage" id="deV-oB-IXG"> <binding destination="-2" name="value" keyPath="self.options.fixTrackLanguage" id="deV-oB-IXG">
@@ -405,7 +406,7 @@
</constraints> </constraints>
<popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kEh-SN-iHZ"> <popUpButtonCell key="cell" type="roundRect" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kEh-SN-iHZ">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="LfV-JG-4EY"/> <menu key="menu" title="OtherViews" id="LfV-JG-4EY"/>
</popUpButtonCell> </popUpButtonCell>
<connections> <connections>
@@ -430,7 +431,7 @@
<rect key="frame" x="110" y="7" width="179" height="18"/> <rect key="frame" x="110" y="7" width="179" height="18"/>
<buttonCell key="cell" type="check" title="Show Notification When Done" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="n6P-IC-SEp"> <buttonCell key="cell" type="check" title="Show Notification When Done" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="n6P-IC-SEp">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.showDoneNotification" id="5Am-9x-0Yu"> <binding destination="-2" name="value" keyPath="self.options.showDoneNotification" id="5Am-9x-0Yu">
@@ -444,7 +445,7 @@
<rect key="frame" x="110" y="281" width="123" height="18"/> <rect key="frame" x="110" y="281" width="123" height="18"/>
<buttonCell key="cell" type="check" title="Clear tracks names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="mtK-5C-Pzh"> <buttonCell key="cell" type="check" title="Clear tracks names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="mtK-5C-Pzh">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.clearTrackName" id="C0n-Hb-80l"> <binding destination="-2" name="value" keyPath="self.options.clearTrackName" id="C0n-Hb-80l">
@@ -458,7 +459,7 @@
<rect key="frame" x="110" y="263" width="160" height="18"/> <rect key="frame" x="110" y="263" width="160" height="18"/>
<buttonCell key="cell" type="check" title="Prettify audio track names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="akF-dR-OPB" userLabel="Prettify audio track names"> <buttonCell key="cell" type="check" title="Prettify audio track names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="akF-dR-OPB" userLabel="Prettify audio track names">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.prettifyAudioTrackName" id="KdC-0J-tcK"> <binding destination="-2" name="value" keyPath="self.options.prettifyAudioTrackName" id="KdC-0J-tcK">
@@ -472,7 +473,7 @@
<rect key="frame" x="110" y="245" width="143" height="18"/> <rect key="frame" x="110" y="245" width="143" height="18"/>
<buttonCell key="cell" type="check" title="Rename chapters titles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="yFm-Nq-s66" userLabel="Prettify audio track names"> <buttonCell key="cell" type="check" title="Rename chapters titles" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="yFm-Nq-s66" userLabel="Prettify audio track names">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.renameChapters" id="v5q-TA-ZZi"> <binding destination="-2" name="value" keyPath="self.options.renameChapters" id="v5q-TA-ZZi">
@@ -486,7 +487,7 @@
<rect key="frame" x="183" y="364" width="76" height="17"/> <rect key="frame" x="183" y="364" width="76" height="17"/>
<popUpButtonCell key="cell" type="roundRect" title="Poster" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="YjX-6f-SPu" id="1t8-o9-ckI"> <popUpButtonCell key="cell" type="roundRect" title="Poster" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="YjX-6f-SPu" id="1t8-o9-ckI">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="0zS-9Z-m6I"> <menu key="menu" title="OtherViews" id="0zS-9Z-m6I">
<items> <items>
<menuItem title="Poster" state="on" id="YjX-6f-SPu"> <menuItem title="Poster" state="on" id="YjX-6f-SPu">
@@ -523,7 +524,7 @@
<rect key="frame" x="110" y="191" width="116" height="18"/> <rect key="frame" x="110" y="191" width="116" height="18"/>
<buttonCell key="cell" type="check" title="Apply color space" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="0By-RQ-4mS"> <buttonCell key="cell" type="check" title="Apply color space" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="0By-RQ-4mS">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.applyColorSpace" id="jug-JB-zTC"> <binding destination="-2" name="value" keyPath="self.options.applyColorSpace" id="jug-JB-zTC">
@@ -551,7 +552,7 @@
</constraints> </constraints>
<popUpButtonCell key="cell" type="roundRect" title="Implicit" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="psY-0V-t0k" id="QT5-Bh-4Hc"> <popUpButtonCell key="cell" type="roundRect" title="Implicit" bezelStyle="roundedRect" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="psY-0V-t0k" id="QT5-Bh-4Hc">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
<menu key="menu" title="OtherViews" id="t0P-DA-u8W"> <menu key="menu" title="OtherViews" id="t0P-DA-u8W">
<items> <items>
<menuItem title="Implicit" state="on" tag="1" id="psY-0V-t0k"/> <menuItem title="Implicit" state="on" tag="1" id="psY-0V-t0k"/>
@@ -573,7 +574,7 @@
<rect key="frame" x="110" y="155" width="125" height="18"/> <rect key="frame" x="110" y="155" width="125" height="18"/>
<buttonCell key="cell" type="check" title="Set output filename" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="Qld-0F-DsX"> <buttonCell key="cell" type="check" title="Set output filename" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="Qld-0F-DsX">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.setOutputFilename" id="THt-yK-839"/> <binding destination="-2" name="value" keyPath="self.options.setOutputFilename" id="THt-yK-839"/>
@@ -583,7 +584,7 @@
<rect key="frame" x="110" y="480" width="105" height="18"/> <rect key="frame" x="110" y="480" width="105" height="18"/>
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="h5x-un-6cJ"> <buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="h5x-un-6cJ">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.searchMetadata" id="IjF-Yf-poW"> <binding destination="-2" name="value" keyPath="self.options.searchMetadata" id="IjF-Yf-poW">
@@ -597,7 +598,7 @@
<rect key="frame" x="110" y="53" width="100" height="18"/> <rect key="frame" x="110" y="53" width="100" height="18"/>
<buttonCell key="cell" type="check" title="Send to iTunes" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="4an-VK-S2u"> <buttonCell key="cell" type="check" title="Send to iTunes" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="4an-VK-S2u">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/> <font key="font" metaFont="menu" size="11"/>
</buttonCell> </buttonCell>
<connections> <connections>
<binding destination="-2" name="value" keyPath="self.options.sendToiTunes" id="NBZ-1e-YyZ"> <binding destination="-2" name="value" keyPath="self.options.sendToiTunes" id="NBZ-1e-YyZ">
+6
View File
@@ -38,6 +38,8 @@ final class DocumentController : NSDocumentController {
@NSApplicationMain @NSApplicationMain
final class AppDelegate: NSObject, NSApplicationDelegate { final class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var sendToExternalApp: NSMenuItem!
private static func appSupportURL() -> URL { private static func appSupportURL() -> URL {
let fileManager = FileManager.default let fileManager = FileManager.default
if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask) if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask)
@@ -156,6 +158,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
if UserDefaults.standard.bool(forKey: "SBShowQueueWindow") { if UserDefaults.standard.bool(forKey: "SBShowQueueWindow") {
QueueController.shared.showWindow(self) QueueController.shared.showWindow(self)
} }
if #available(macOS 10.15, *) {
sendToExternalApp.title = NSLocalizedString("Send to TV", comment: "Send to tv app menu item")
}
} }
func applicationDidFinishLaunching(_ notification: Notification) { func applicationDidFinishLaunching(_ notification: Notification) {
+2 -10
View File
@@ -254,16 +254,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
// MARK: Actions // MARK: Actions
@IBAction func sendToExternalApp(_ sender: Any) { @IBAction func sendToExternalApp(_ sender: Any) {
if let fileURL = doc.fileURL {
if let filePath = doc.fileURL?.path, let script = NSAppleScript(source: """ _ = sendToFileExternalApp(fileURL: fileURL)
tell application "iTunes" to add (POSIX file "\(filePath)")
""") {
let result = automationConsent(bundleIdentifier: "com.apple.iTunes", promptIfNeeded: true)
if result == .granted {
var error: NSDictionary?
script.executeAndReturnError(&error)
}
} }
} }
+23 -10
View File
@@ -138,16 +138,29 @@ final public class TheTVDBService {
public var languages: [String] { public var languages: [String] {
get { get {
if let result = savedLanguages, result.data.isEmpty == false { return ["en",
return result.data "sv",
} "no",
else if let result = fetchLanguages() { "da",
savedLanguages = result "fi",
UserDefaults.standard.set(result.data, forKey: "SBTheTVBDLanguagesArray") "nl",
UserDefaults.standard.set(result.timestamp, forKey: "SBTheTVBDLanguagesArrayTimestamp") "de",
return result.data "it",
} "es",
return ["en"] "fr",
"pl",
"hu",
"el",
"tr",
"ru",
"he",
"ja",
"pt",
"zh",
"cs",
"sl",
"hr",
"ko"]
} }
} }
+4 -13
View File
@@ -10,6 +10,7 @@ import MP42Foundation
final class OptionsViewController: NSViewController, NSMenuItemValidation { final class OptionsViewController: NSViewController, NSMenuItemValidation {
@IBOutlet weak var sendToExternalApp: NSButton!
@IBOutlet var destButton: NSPopUpButton! @IBOutlet var destButton: NSPopUpButton!
@objc private dynamic let options: QueuePreferences @objc private dynamic let options: QueuePreferences
@@ -59,19 +60,9 @@ final class OptionsViewController: NSViewController, NSMenuItemValidation {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
// Hack to fix crappy anti-aliasing on Yosemite if #available(macOS 10.15, *) {
// unfortunately it fixes the checkboxes anti-aliasing, sendToExternalApp.title = NSLocalizedString("Send to TV", comment: "Send to tv app menu item")
// but break the popup buttons one…
view.wantsLayer = true
for subview in view.subviews {
if let button = subview as? NSButton {
button.attributedTitle = NSAttributedString(string: button.title,
attributes: [NSAttributedString.Key.foregroundColor: NSColor.labelColor,
NSAttributedString.Key.font: NSFont.labelFont(ofSize: 11)])
}
} }
// Observe the providers changes // Observe the providers changes
+1 -14
View File
@@ -593,20 +593,7 @@ class QueueSendToiTunesAction: NSObject, QueueActionProtocol {
override init() {} override init() {}
func runAction(_ item: QueueItem) -> Bool { func runAction(_ item: QueueItem) -> Bool {
return sendToFileExternalApp(fileURL: item.destURL)
if let script = NSAppleScript(source: """
tell application "iTunes" to add (POSIX file "\(item.destURL.path)")
""") {
let result = automationConsent(bundleIdentifier: "com.apple.iTunes", promptIfNeeded: true)
if result == .granted {
var error: NSDictionary?
script.executeAndReturnError(&error)
return true
}
}
return false
} }
func encode(with aCoder: NSCoder) {} func encode(with aCoder: NSCoder) {}
+37
View File
@@ -28,6 +28,11 @@ func automationConsent(bundleIdentifier: String, promptIfNeeded: Bool) -> Privac
if #available(macOS 10.14, *) { if #available(macOS 10.14, *) {
bundleIdentifier.withCString { (identifier) in bundleIdentifier.withCString { (identifier) in
var addressDesc = AEAddressDesc() var addressDesc = AEAddressDesc()
// Mare sure the target is running, if not the consent alert will not be shown.
NSWorkspace.shared.launchApplication(withBundleIdentifier: bundleIdentifier, options: [],
additionalEventParamDescriptor: nil, launchIdentifier: nil)
let createDescResult = AECreateDesc(typeApplicationBundleID, identifier, strlen(identifier), &addressDesc) let createDescResult = AECreateDesc(typeApplicationBundleID, identifier, strlen(identifier), &addressDesc)
if createDescResult == noErr { if createDescResult == noErr {
let appleScriptPermission = AEDeterminePermissionToAutomateTarget(&addressDesc, typeWildCard, typeWildCard, promptIfNeeded) let appleScriptPermission = AEDeterminePermissionToAutomateTarget(&addressDesc, typeWildCard, typeWildCard, promptIfNeeded)
@@ -52,3 +57,35 @@ func automationConsent(bundleIdentifier: String, promptIfNeeded: Bool) -> Privac
return .granted return .granted
} }
} }
func sendToFileExternalApp(fileURL: URL) -> Bool {
let filePath = fileURL.path
if #available(macOS 10.15, *) {
if let script = NSAppleScript(source: """
tell application "TV" to add (POSIX file "\(filePath)")
""") {
let result = automationConsent(bundleIdentifier: "com.apple.TV", promptIfNeeded: true)
if result == .granted {
var error: NSDictionary?
script.executeAndReturnError(&error)
return error != nil
}
}
} else {
if let script = NSAppleScript(source: """
tell application "iTunes" to add (POSIX file "\(filePath)")
""") {
let result = automationConsent(bundleIdentifier: "com.apple.iTunes", promptIfNeeded: true)
if result == .granted {
var error: NSDictionary?
script.executeAndReturnError(&error)
return error != nil
}
}
}
return false
}
+4
View File
@@ -1419,6 +1419,7 @@
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.5.18;
DEVELOPMENT_TEAM = 5X9DE89KYV; DEVELOPMENT_TEAM = 5X9DE89KYV;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@@ -1437,6 +1438,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
LIBRARY_SEARCH_PATHS = "$(inherited)"; LIBRARY_SEARCH_PATHS = "$(inherited)";
MARKETING_VERSION = 1.5.18;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";
@@ -1460,6 +1462,7 @@
CODE_SIGN_ENTITLEMENTS = Subler.entitlements; CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.5.18;
DEVELOPMENT_TEAM = 5X9DE89KYV; DEVELOPMENT_TEAM = 5X9DE89KYV;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@@ -1477,6 +1480,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
LIBRARY_SEARCH_PATHS = "$(inherited)"; LIBRARY_SEARCH_PATHS = "$(inherited)";
MARKETING_VERSION = 1.5.18;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";