Re: Calling Applications
Re: Calling Applications
- Subject: Re: Calling Applications
- From: julifos <email@hidden>
- Date: Sun, 02 Feb 2003 21:56:04 +0100
>
On or about 2/1/03 9:29 PM, Paul Medland wrote:
>
>
> tell application "Finder"
>
> set Quark to name of application file id "XPR3"
>
> end tell
>
>
>
> --"QuarkXpress 4.1"
>
> tell application Quark
>
...
>
> end tell
>
>
>
> Is there something I'm missing here? When I first saw this I thought it
>
> might be too good to be true.
>
>
Sort of too good to be true. The truth is, not all applications will
>
respond to the 'tell ...' this way. I don't know why that is, but it's been
>
discussed here previously (see appox. 2 months back in archive...many
>
methods related to this...good stuff).
Apps will respond *good* to apple events, but you must hardcode them as raw
events, since you can't compile specific app commands out a expressly tell
block... There are many tricks to do this. Eg, if you're ussing Script
Debugger, you can use Quark's command & classes by defining Quark as
"Default Target Application". Smile has a similar feature (look under menu
"Script > tell...").
Also, there was a freeware solution which was installed as a "component",
whose name I can't remember, and its function was the same.
Or you can enclose your command into a:
using terms from application "QuarkXPress"
...
end
Finish scripting, then close script, then rename Quark as "komodo", open
script, choose any app to impost Quark, remove "using terms", rename Quark
to its original name.
JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.