launch tFile with tApp

Klaus major-k klaus at major-k.de
Mon Apr 4 12:06:24 EDT 2022



> Am 04.04.2022 um 17:45 schrieb Klaus major-k <klaus at major-k.de>:
> 
> Hi friends,
> 
> macOS 10.3, LC 9.6.7

sorry, I mean macOS 12.3
> 
> I have e.g. a MP3 file and want to open it with "Quicktime Player.app":
> ...
> ## tPrompt contains a localized string, of course
> answer file tPrompt with specialfolderpath("apps") with type "|app|"
> put it into tApp
> ## I select QTPLayer.app
> if the result = "cancel" then
> exit to top
> end if
> ## tDatei holds the complete path to the MP3
> ## tApp the path to QTPlayer.app
> launch tDatei with tApp
> put the result
> ...
> 
> It will open the MP3 with QTPlayer as desired BUT
> it also opens the file with "iTunes/Music" additionally!?
> And I don't want that! :-D
> 
> The result is EMPTY.
> 
> Bug or feature?
> And can I avoid to also open the file with "Music"?
> 
> Thanks in advance!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> klaus at major-k.de



More information about the use-livecode mailing list