diff --git a/sk.Players.Mac.AppleMusic/AppleMusicPlayer.cs b/sk.Players.Mac.AppleMusic/AppleMusicPlayer.cs
index 5dd958d..9c5aa1d 100644
--- a/sk.Players.Mac.AppleMusic/AppleMusicPlayer.cs
+++ b/sk.Players.Mac.AppleMusic/AppleMusicPlayer.cs
@@ -76,12 +76,16 @@ private void PullElapsedTime(object? sender, ElapsedEventArgs e)
objc_msgSend_uint(app.Handle, new Selector("propertyWithCode:").Handle, 1884319603)
)!;
}
- this.Position = (int)(NSNumber)this.prop.Get;
+ //Debugger.Break();
+ Console.WriteLine(this.prop);
+ var value = this.prop.Get;
+
+ this.Position = (int)(NSNumber)value;
Console.WriteLine(this.Position);
} catch(Exception err) {
- Console.WriteLine(err.Message);
+ Console.WriteLine("Couldn't PullElapsedTime!!! " + err.ToString());
this.app = null;
this.prop = null;
}
diff --git a/sk.UI.Mac/Entitlements.plist b/sk.UI.Mac/Entitlements.plist
index 3817943..4bd83d9 100644
--- a/sk.UI.Mac/Entitlements.plist
+++ b/sk.UI.Mac/Entitlements.plist
@@ -2,17 +2,18 @@
- com.apple.security.app-sandbox
-
- com.apple.security.automation.apple-events
-
- com.apple.security.cs.allow-jit
-
- com.apple.security.network.client
-
-
+ com.apple.security.app-sandbox
+
+ com.apple.security.automation.apple-events
+
+ com.apple.security.temporary-exception.apple-events
+
+ com.apple.Music
+ com.apple.iTunes
+
+ com.apple.security.cs.allow-jit
+
+ com.apple.security.network.client
+
diff --git a/sk.UI.Mac/Info.plist b/sk.UI.Mac/Info.plist
index c069b7c..9ec8fbe 100644
--- a/sk.UI.Mac/Info.plist
+++ b/sk.UI.Mac/Info.plist
@@ -1,4 +1,4 @@
-
+
@@ -7,9 +7,9 @@
CFBundleIdentifier
dev.foxt.sk.mac
CFBundleShortVersionString
- 1.0
+ 1.0.3
CFBundleVersion
- 1
+ 1.0.3
CFBundleDevelopmentRegion
en
CFBundleInfoDictionaryVersion
@@ -30,5 +30,7 @@
CFBundleIconFile
AppIcon.icns
+ NSAppleEventsUsageDescription
+ sk needs to access your music player to get information about the currently playing track