How to launch an application (like "word" from a stack?

Andre.Bisseret Andre.Bisseret at inria.fr
Sat Jun 19 04:39:15 EDT 2010


Bonjour Peter,
Le 18 juin 10 à 14:46, Peter Brigham MD a écrit :

> Hmm... On my system (MacBook, OSX 10.5.8, Rev Studio 4.0.0-gm-1,  
> build 950) the following works fine:
>   launch "/Applications/Microsoft Office 2008/Microsoft Word"
> whereas
>   launch "/Applications/Microsoft Office 2008/Microsoft Word.app"
> does not work.
I have the same system (Mac OSX 10.5.8) and Rev Enterprise 4.0-gm-1 (I  
tried also several other version: 2.8.1, 3.5 gm-1 and 4.5-dp-3)
Always getting the inverse result (works with .app, doesn't work  
without .app) bizarre isn't it!

> In the Finder on my Mac, the MSWord application does not have the  
> ".app" suffix, so I would have been surprised if using "/Microsoft  
> Word.app" had worked, since it doesn't correspond to an identifiable  
> file on my drive.
Jacque is right (as usual ;-)):

Using the recent suggestion from Bernd on this thread:
-------
select the file/application you want to address in the finder, command- 
C or copy it and paste it into the
Rev field/script to get the full path pasted.
-------
I get the same path with the suffix ".app" in any case: either  
choosing "extensions hidden" or "shown" in the finder prefs.

Now, seems unlikely it be a difference between Enterprise and Studio?

Well, wait and see ;-))

Best regards

André

> But you're correct that
>   launch "/Applications/Microsoft Office 2008/Microsoft Word/"
> also works, though strictly speaking it should be ungrammatical in  
> RevTalk.
>
> Is this a Mac vs Windows thing? A Leopard vs Snow Leopard thing? A  
> Rev 4.0 vs 4.5 thing?
>
> -- Peter
>
> Peter M. Brigham
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig
>
>
> On Jun 18, 2010, at 4:30 AM, Andre.Bisseret wrote:
>
>>
>> Le 17 juin 10 à 15:22, Peter Brigham MD a écrit :
>>
>>> I suspect the problem was more related to the final slash in your  
>>> original script, so a folder was specified rather than a file.  
>>> Does it work using ".../Microsoft Word" without the ".app" but  
>>> also without the final slash?
>>>
>>> -- Peter
>>
>> Bonjour Peter,
>>
>> No, it does not work without ".app", either with the final slash or  
>> without it.
>>
>> launch "/Applications/Microsoft Office 2008/Microsoft Word/" --  
>> does not work
>> launch "/Applications/Microsoft Office 2008/Microsoft Word" -- does  
>> not work
>>
>> while it works as soon as one adds the ".app", with or without a  
>> final slash:
>>
>> launch "/Applications/Microsoft Office 2008/Microsoft Word.app" --  
>> works
>> launch "/Applications/Microsoft Office 2008/Microsoft Word.app/" --  
>> works
>>
>> Thank you much for your reply and suggestion
>>
>> Best regards from Grenoble
>>
>> André
>>
>>>
>>> Peter M. Brigham
>>> pmbrig at gmail.com
>>> http://home.comcast.net/~pmbrig
>>>
>>>
>>> On Jun 17, 2010, at 8:27 AM, Andre.Bisseret wrote:
>>>
>>>> Danke shön! Bernd for your prompt reply
>>>> Klaus was the winner ;-))) with the same suggestion
>>>>
>>>> works fine now with .app
>>>>
>>>> Guten nachmittag!
>>>>
>>>> André
>>>>
>>>>
>>>> Le 17 juin 10 à 13:49, BNig a écrit :
>>>>
>>>>>
>>>>> André,
>>>>>
>>>>> on mouseUp
>>>>> launch "/Applications/Microsoft Office 2008/Microsoft Word.app"
>>>>> if the result is not empty then answer the result
>>>>> end mouseUp
>>>>>
>>>>> works for me.
>>>>> regards
>>>>> Bernd
>>>>> -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-launch-an-application-like-word-from-a-stack-tp2258617p2258653.html
>>>>> Sent from the Revolution - User mailing list archive at  
>>>>> Nabble.com.
>>>>> _______________________________________________
>>>>> use-revolution mailing list
>>>>> use-revolution at lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your  
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> use-revolution mailing list
>>>> use-revolution at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your  
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your  
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution






More information about the use-livecode mailing list