Re : Re: How to determine what application to launch?
Re : Re: How to determine what application to launch?
- Subject: Re : Re: How to determine what application to launch?
- From: Oleg Lodygensky <email@hidden>
- Date: Wed, 26 Sep 2001 15:42:33 +0200
Thanks, but finally this doesn't answer since there still is name
application hardcoded :(
I tried the two followings; none works
--*************************************************************************
--*************************************************************************
--*************************************************************************
tell application "Finder"
set myappname to name of application file id "CWIE" as text
end tell
tell application myappname
Get Preferences from panel "Source Trees"
end tell
--
-- said something like 'don t understand from panel'
--
--*************************************************************************
--************ or ***************
--*************************************************************************
tell application "Finder"
set myappname to name of application file id "CWIE" as text
end tell
using terms from application myappname
tell application myappname
Get Preferences from panel "Source Trees"
end tell
end using terms from
--
-- said something like 'data unexpected type'
--
--*************************************************************************
--*************************************************************************
--*************************************************************************
any other idea?
thanks again...
Oleg.
On 9/25/2001 2:41 AM, "Jolly Roger" <email@hidden> wrote:
On 9/25/2001 2:41 AM, "Oleg Lodygensky" <email@hidden> wrote:
>
Hi,
>
is there any way to launch an application whatever its name is?
>
>
In my case, CodeWarrior 6.0 provides "CodeWarrior IDE 4.0" but name changes
>
to "CodeWarrior IDE 4.0.1.3" if user has installed patches; how to manage
>
this whithout any OsaXen?
You can open it by creator:
-- begin script
tell application "Finder" to set cwApp to application file id "CWIE" as text
using terms from application "CodeWarrior IDE 4.2.5"
tell application cwApp to launch
end using terms from
-- end script