[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] macperl::DoAppleScript Doesn't



Bart Lateur wrote:
>If CodeWarrior isn't running, or it is running but the name isn't exact,
>then AS won't find it. So compilation fails.
this is inaccurate - apple script will prompt with a selection window if it can't find the app

you should change the order of these elements:

tell application "CodeWarrior IDE 4.0" #<---- here you select the app
display dialog "here2" #<-----you tell it to do something
activate #<-----then you activate it

this is like asking a question and then phoning the person you wanted to ask expecting the answer, which of course they can't give cos they didn't hear the question.


try this:
tell application "CodeWarrior IDE 4.0" #<---- here you select the app
activate #<-----you activate it
display dialog "here2" #<-----then you tell it to do something