Re: launch tFile with tApp

2022-04-05 Thread Klaus major-k via use-livecode
Hi Andre,

> Am 05.04.2022 um 19:17 schrieb Andre Garzia via use-livecode 
> :
> 
> What about using AppleScript to force it to open with a given app?

please read my last posting, you even quoted it here.
But I will consider this, if it will fail again or better if it will fail 
"reliably". :-D

> Sent from my iPhone
> 
>> On 5 Apr 2022, at 10:08, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi all,
>> 
>>> Am 04.04.2022 um 18:10 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> Hi friends,
>>> 
>>> macOS 12.3, LC 9.6.7
>>> 
>>> 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.
>> 
>> must have been a temporary "glitch" since it did not happen today.
>> 
>> And a HTML file was opened with "TextEdit.app" as expected and did 
>> not start "Safari".
>> 
>> But will keep an eye on this! 8-)

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: launch tFile with tApp

2022-04-05 Thread Andre Garzia via use-livecode
What about using AppleScript to force it to open with a given app?

Sent from my iPhone

> On 5 Apr 2022, at 10:08, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
>> Am 04.04.2022 um 18:10 schrieb Klaus major-k via use-livecode 
>> :
>> 
>> Hi friends,
>> 
>> macOS 12.3, LC 9.6.7
>> 
>> 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.
> 
> must have been a temporary "glitch" since it did not happen today.
> 
> And a HTML file was opened with "TextEdit.app" as expected and did 
> not start "Safari".
> 
> But will keep an eye on this! 8-)
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: launch tFile with tApp

2022-04-05 Thread Klaus major-k via use-livecode
Hi all,

> Am 04.04.2022 um 18:10 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> macOS 12.3, LC 9.6.7
> 
> 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.

must have been a temporary "glitch" since it did not happen today.

And a HTML file was opened with "TextEdit.app" as expected and did 
not start "Safari".

But will keep an eye on this! 8-)


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: launch tFile with tApp

2022-04-04 Thread Klaus major-k via use-livecode



> Am 04.04.2022 um 17:45 schrieb Klaus major-k :
> 
> 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
> kl...@major-k.de

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


launch tFile with tApp

2022-04-04 Thread Klaus major-k via use-livecode
Hi friends,

macOS 10.3, LC 9.6.7

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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode