Re: tell application - without the app's name?
Re: tell application - without the app's name?
- Subject: Re: tell application - without the app's name?
- From: Emmanuel <email@hidden>
- Date: Tue, 4 Mar 2003 11:33:58 +0100
At 9:26 AM +0000 04/03/03, garybi wrote:
I did find something about using raw events (the app needs to be
loaded first) - eg:
=============
set QuarkPage to "HD Black:Desktop Folder:testpage"
try
set creaType to "XPR3"
tell application "FInder" to the first process whose creator type
is (creaType as type class)
set appName to the result as <<class psn >>
tell appName to open QuarkPage
on error errMsg
display dialog (errMsg) as string
end try
==============
If this is the only way to get it to work
Yes and no. If your version of AppleScript includes that feature, you
can use the "using terms" clause. Otherwise, yes.
- how do l find the raw events list from the Quark Dictionary?
Since America is asleep, I'll answer that one: download Smile (for
OS9), fire its on-line help and search for "portability". (I've
understood that the machines concerned are OS9 machines, otherwise
ask me again). Smile includes a mechanism to turn a standard script
into a script with raw events.
Emmanuel
_______________________________________________
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.