• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re : Re: How to determine what application to launch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Sorting handler
  • Next by Date: Shell Scripting Reference?
  • Previous by thread: Re: Sorting handler
  • Next by thread: Shell Scripting Reference?
  • Index(es):
    • Date
    • Thread