diff --git a/modules/gui/macosx/os-integration/applescript.m b/modules/gui/macosx/os-integration/applescript.m index 120d81bb8fcdd53f0916cc57e039704aa948b6f0..7260ab6308059b850ca6799063fa7f693982abba 100644 --- a/modules/gui/macosx/os-integration/applescript.m +++ b/modules/gui/macosx/os-integration/applescript.m @@ -70,8 +70,8 @@ - (id)performDefaultImplementation { - VLCPlaylistController *playlistController; - VLCPlayerController *playerController; + VLCPlaylistController *playlistController = [[VLCMain sharedInstance] playlistController]; + VLCPlayerController *playerController = [playlistController playerController]; NSString *commandString = [[self commandDescription] commandName]; NSString *parameterString = [self directParameter];