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

Andre.Bisseret Andre.Bisseret at inria.fr
Thu Jun 17 08:03:18 EDT 2010


Guten tag Klaus,

Le 17 juin 10 à 13:20, Klaus on-rev a écrit :

> Bonjour, Andre.Bisseret:
>
>> Bonjour,
>>
>> If I put the following handler in the script of a button:
>>
>> on mouseUp
>>  launch "/Applications/Microsoft Office 2008/Microsoft Word/"
>>  answer the result
>> end mouseUp
>>
>> I get "no such program"
>
> You supply a path to a FOLDER here, is that correct?

Microsoft Office 2008 is a folder in which there is among others the  
app Microsoft Word

> Shouldn't it be:
> ...
> launch "/Applications/Microsoft Office 2008/Microsoft Word.app"
> ...
> ?
You are right (not a surprise ;-)); adding ".app" was what I was  
missing!
(I would have swear that in older versions it used to work without .app)

Danke sehr for your so quick and efficient help :-))

André


>
>> I was quite sure that I had have this working well before  
>> (Actually, I just replace 2004 with 2008 in an old handler which  
>> used to work)
>> I get the same result with rev 4.0 and rev 4.5 dp 3
>> Did not find any insight in the archives.
>> What am I missing?
>> Thanks a lot in advance
>>
>> Best regards from Grenoble
>>
>> André
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.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






More information about the use-livecode mailing list